macvim-dev / macvim-dev/macvim

Copy [CMD]+[C] from command/status bar doesn't copy selected characters into the clipboard.

Open
#854 4 comments 0 reactions 0 assignees View on GitHub

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:

  1. Start mac vim with empty or no file [mvim]
  2. Press i and type some letters f.i.: Strange Issue
  3. Escape out of insert mode.
  4. Double click on the word Strange to select it.
  5. Press CMD+C (Strange is now in the clipboard)
  6. Search for some random characters [/nothing]
  7. mvim will display in bottom most status/message bar: E486: Pattern not found: nothing
  8. Double click on the word Pattern in the status/error bar at the bottom of the screen.
  9. Press CMD+C (Note that the Edit menu flashes)
  10. Press i for insert mode.
  11. Press CMD+V
  12. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.