macvim-dev / macvim-dev/macvim
Copy [CMD]+[C] from command/status bar doesn't copy selected characters into the clipboard.
Open
Nobody has claimed this yet.
Feature Request
- Dominant language
- Vim Script
- Stars
- 7.9k
- Forks
- 691
- PR merge metrics
- No merged PRs in 30d
Description
Steps to reproduce:
- Start mac vim with empty or no file [mvim]
- Press i and type some letters f.i.: Strange Issue
- Escape out of insert mode.
- Double click on the word Strange to select it.
- Press CMD+C (Strange is now in the clipboard)
- Search for some random characters [/nothing]
- mvim will display in bottom most status/message bar: E486: Pattern not found: nothing
- Double click on the word Pattern in the status/error bar at the bottom of the screen.
- Press CMD+C (Note that the Edit menu flashes)
- Press i for insert mode.
- Press CMD+V
- Note that mvim pastes "Strange" and not "Pattern"
Expected Behaviour:
It should paste Pattern or better yet, if something is selected on the status bar and the Copy command is given to Mac Os x, the selected characters should be copied to the OS clipboard.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in MacVim using the listed steps, focusing on selection and CMD+C handling in the bottom status/message bar. Trace the MacVim command and clipboard path used for that selection; done means copying “Pattern” makes it available to CMD+V instead of retaining “Strange”.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, vim
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100