MissingInActions
MissingInActions copied to clipboard
Move cursor next/prev custom options like we have for delete and backspace. (enhancement)
I'm aware of all the camelhumps modes in IntelliJ where they treat camelcase and snakecase as different words, but hyphen words are always treated as different words and there's currently no way around this AFAIK.
I would like to have a selection mode with the same regex pattern for "next/prev word" so I can use both \w and "-".
Test cases: | = cursor, [is final selection]
|this word test random |thisIsAlsoAWord test random |This_is_a_Word |this_is_a_word |this-word.extension
Becomes:
[this] word test random [thisIsAlsoAWord] test random [This_is_a_Word] [this_is_a_word] [this-word].extension
The options don't have to be so elaborate for this, if you want to just throw in a keymap for:
- "Move caret Next Word (and hyphens)"
- "Move caret Previous Word (and hyphens)"
- "Move caret Next Word (and hyphens) with Selection"
- "Move caret Previous Word (and hyphens) with Selection"
hard coded to work like the examples above, that would be great!
Relates to https://github.com/krasa/StringManipulation/issues/165
The customized word next/prev start/end/ customized does have some flexibility. You can configure them to only treat space delimited ranges as one word but that would include any delimiters other than spaces so abc.def
would also be considered a word.
Adding a regex like the backspace/delete is an idea. I did not include it because I wasn't sure anyone would want to go that far at customizing it.