You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wish Vim had a text object for the entire buffer, so that you could yank/delete/change/surround the entire buffer easily. I'm used to kana-textobj-entire in Vim and the same functionality is built into Emacs' evil-mode.
I'd suggest "e" as the character for the shortcut, but this is obviously user-assignable.
Workaround
I tried to set it up the basics using send keystrokes. The good news is that these bindings all worked. The bad news is that they made other bindings using the same operators (e.g. ciw) not work anymore, so I don't think it's a sensible workaround for now.
"y a e": ["workspace::SendKeystrokes", "m z cmd-a y ` z"],
"d a e": ["workspace::SendKeystrokes", "cmd-a d"],
"c a e": ["workspace::SendKeystrokes", "cmd-a c"],
"v a e": ["workspace::SendKeystrokes", "cmd-a"]
Check for existing issues
Describe the feature
I wish Vim had a text object for the entire buffer, so that you could yank/delete/change/surround the entire buffer easily. I'm used to
kana-textobj-entire
in Vim and the same functionality is built into Emacs' evil-mode.I'd suggest "e" as the character for the shortcut, but this is obviously user-assignable.
Workaround
I tried to set it up the basics using send keystrokes. The good news is that these bindings all worked. The bad news is that they made other bindings using the same operators (e.g.
ciw
) not work anymore, so I don't think it's a sensible workaround for now.Zed Version and System Specs
Zed: v0.166.1 (Zed)
OS: macOS 14.6.1
Memory: 16 GiB
Architecture: aarch64
If applicable, add mockups / screenshots to help present your vision of the feature
No response
The text was updated successfully, but these errors were encountered: