backdround / neowords.nvim

Flexible and reliable hops by any type of words
MIT License
55 stars 2 forks source link

Support inner/around word #4

Open dlvhdr opened 9 months ago

dlvhdr commented 9 months ago

I would like to use ciw for example to change a part of a camel cased word.

SomeExample ----> |Example
 ^          ciw
backdround commented 9 months ago

It seems a good feature to have, but I don't think it should be in the plugin. Otherwise it won't be so small and simple.

I'm thinking about making a simple plugin that will allow a user to make text objects by user's patterns. Very similar to this plugin.

What do you think? Would this be useful?

dlvhdr commented 9 months ago

Sure I don't mind, I love the idea of neowords but it feels weird to me to think of "words" differently when using ciw vs cw for example.

backdround commented 9 months ago

I understand the confusion, but I still think it's just mnemonics. We have iw, but we don't ie and others. Also we have is but we don't have jumps by sentences (AFAIK).

I want to implement a simple version of targets.vim without default mappings (or complicated documentation) and with the ability to extend based on the user's patterns. And I really don't want to manage two versions of the same code.