ohmyzsh/ohmyzsh

vi-mode inner quote motions

godbout opened this issue · 1 comments

If the feature request is for a plugin or theme, specify it here.

vi-mode

If the feature solves a problem you have, specify it here.

would be nice to be able to change/delete/select inner quotes hehe :))

Describe the proposed feature.

like in the command line, just call esc then maybe 0 to get to the beginning of the line then ci" and WOOPS the content between "" is gone and ready to type!

Describe alternatives you've considered

tried a couple of other plugins but they're or too slow or don't work when outside the inner quotes. not like Vim.

Additional context

i'm not sure why this is not available currently. is it a technical issue? i built a macOS app that adds a lots of Vim motions on the whole macOS, so i have a bit of experience. if the issue is not technical but a lack of manpower/interest, then i can have a look at the code and see what i can do :))

Related Issues

No response

of course i felt i needed this for years and decided to post and just found out that it's in zsh source and just need to be explicitly enable lol.

https://sourceforge.net/p/zsh/code/ci/master/tree/Functions/Zle/select-quoted
https://sourceforge.net/p/zsh/code/ci/master/tree/Functions/Zle/select-bracketed

paste in zshrc, uncomment and BOOM. done. super cool.