zed icon indicating copy to clipboard operation
zed copied to clipboard

Linux: Copy/Paste commands don't show expected default key bindings

Open jansol opened this issue 1 year ago • 1 comments

Check for existing issues

  • [X] Completed

Describe the bug / provide steps to reproduce it

In the command palette and the context menu after #11878 the keyboard shortcuts shown are "Ctrl + INSERT" / "Shift + INSERT" instead of the usual "Ctrl + c" / "Ctrl + v"

I personally associate the INSERT bindings with primary selection but there is a lot of inconsistency around that. The clipboard however is quite ubiquitously "Ctrl+c"/"Ctrl+v" so I think it'd be best to show that for clipboard actions.

Environment

Zed: v1.0.0 (Zed Dev f2e7c635ac367e1306df425a46d90401dbe5c573) OS: Linux 1.0.0 Memory: 30.9 GiB Architecture: x86_64

If applicable, add mockups / screenshots to help explain present your vision of the feature

No response

If applicable, attach your ~/Library/Logs/Zed/Zed.log file to this issue.

No response

jansol avatar May 16 '24 13:05 jansol

Seems like Zed picks the last key binding for action. Additional key bindings for Linux were added in this PR. The easiest way to replicate that issue on macOS is to add additional key binding for any action like "Cut" or "Copy" in assets/keymaps/default-macos.json file.

vitallium avatar May 16 '24 14:05 vitallium