zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
50.29k stars 3.1k forks source link

Unnamed register and a way to use it as default register for yanking operation #20703

Open aakashsigdel opened 4 days ago

aakashsigdel commented 4 days ago

Check for existing issues

Describe the feature

Currently zed automatically yanks to system clipboard in vim mode when use_system_clipboard is set. The default vim behaviour is to yank it to the unnamed register.

It would be great if we could implement a setting to enable this. Something like:

{
  "vim": {
    "default_yank_register": "system_clip_board" | "unnamed" | "other_options_available"
  }
}

Environment

Zed: v0.161.2 (Zed)
OS: macOS 14.1.0
Memory: 16 GiB
Architecture: aarch64

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

No response

ConradIrwin commented 4 days ago

How is "default_yank_register": "unnamed" different from "use_system_clipboard": "never"?