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

Text-object surround #281

Open
3 tasks done
musjj opened this issue May 17, 2024 · 2 comments
Open
3 tasks done

Text-object surround #281

musjj opened this issue May 17, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@musjj
Copy link

musjj commented May 17, 2024

General information

  • Terminal program: tmux 3.4 (tmux-256color)
  • Operating system: Linux (6.6.28 #1-NixOS SMP PREEMPT_DYNAMIC Wed Apr 17 09:19:38 UTC 2024 x86_64 GNU/Linux)
  • ZSH framework: starship 1.18.2
  • ZSH version: zsh 5.9 (x86_64-pc-linux-gnu)
  • ZVM version: zsh-vi-mode 0.11.0

Basic examination

  • I have read through the README page
  • I have the latest version of zsh-vi-mode
  • I have tested with another terminal program

Problem description

Many implementations of surround plugins in vim/neovim allows you to use surround commands directly with a text object. For example, ysiw" will add quotes to the current word. Currently, you need to use visual mode first, like: viwS". It's not any less efficient, but muscle memory is a hell of a drug :)

@cpakkala
Copy link

cpakkala commented Oct 19, 2024

Agreed; this is the one reason why I'm not using this plugin yet. "ysiw" is the most basic surround sequence, and it's not just a matter of muscle memory; it's a matter of how you think about editing. The power of vim is in the verb->object paradigm; it's how we speak and thus how I think while editing. The select-first approach is the Kakoune method, not the vim way.

@jeffreytse jeffreytse self-assigned this Oct 21, 2024
@jeffreytse jeffreytse added the enhancement New feature or request label Oct 21, 2024
@jeffreytse
Copy link
Owner

Hi @musjj, thanks for your issue about text-object surround, I will try to dive into this ASAP, currently I'm a bit busy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants