Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vim: text-object entire #22279

Open
1 task done
thomasheartman opened this issue Dec 20, 2024 · 0 comments
Open
1 task done

Vim: text-object entire #22279

thomasheartman opened this issue Dec 20, 2024 · 0 comments
Labels
enhancement [core label] vim

Comments

@thomasheartman
Copy link

thomasheartman commented Dec 20, 2024

Check for existing issues

  • Completed

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.

      "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"]

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

@thomasheartman thomasheartman added admin read Pending admin review enhancement [core label] triage Maintainer needs to classify the issue labels Dec 20, 2024
@JosephTLyons JosephTLyons added vim and removed triage Maintainer needs to classify the issue admin read Pending admin review labels Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement [core label] vim
Projects
None yet
Development

No branches or pull requests

2 participants