macvim-dev / macvim-dev/macvim

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

未关闭
#854 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

Feature Request
主要语言
Vim Script
星标
7.9k
派生
691
PR 合并指标
30 天内没有已合并 PR

描述

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.

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先按照列出的步骤在 MacVim 中复现该问题,重点关注底部状态/消息栏中的选择和 CMD+C 处理。跟踪用于该选择的 MacVim 命令和剪贴板路径;完成的标准是复制 “Pattern” 后可以通过 CMD+V 使用它,而不是仍然保留 “Strange”。

由索引模型根据 Issue 内容生成。

评估

技术栈
macos, vim
领域
desktop
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。