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

Vi mode: support something like yank/cut/delete around class/function, or yank/cut/delete inside class/function #4320

Open
1 task done
WindSoilder opened this issue Nov 29, 2023 · 0 comments
Labels
enhancement [core label] vim

Comments

@WindSoilder
Copy link
Contributor

WindSoilder commented Nov 29, 2023

Check for existing issues

  • Completed

Describe the feature

As title, in neovim, when using tree-sitter, we can use yank/cut/delete around class/function, or yank/cut/delete inside class/function. It's really convenient to copy/paste code.

And these keys can be:

  • yac: yank around class
  • dac: delete around class
  • yaf: yank around function
  • daf: delete around function
  • yic: yank inside class
  • dic: delete inside class
  • yif: yank inside function
  • dif: delete inside function
  • cac: cut around class
  • caf: cut around function
  • cic: cut inside class
  • cif: cut inside function

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

No response

@JosephTLyons JosephTLyons added vim and removed triage labels Nov 29, 2023
@JosephTLyons JosephTLyons transferred this issue from zed-industries/community Jan 24, 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