auto-pairs icon indicating copy to clipboard operation
auto-pairs copied to clipboard

Fast wrap to the left

Open podratz opened this issue 3 years ago • 1 comments

I think it would be nice to have the fast wrap functionality also when you insert a character on the right side of the word by adding shift key to it, and also fast wrapping when the wrapping characters are inserted inside the word.

Or am I missing something and there is this functionality already, or there are reasons it does not make sense?

podratz avatar Mar 31 '21 20:03 podratz

The keybind doesn't make sense.

Take (; it's on shift-8 for me. I physically cannot press shift-shift-8. Might work on certain keyboard layouts, but eventually, some or another character on that keyboard layout is on shift-[other key], making it unpressable. It just isn't portable. Vim also doesn't send raw key events, so it's a baked key event or no dice. if just shift is pressed, we'd never know because we're not notified about it.

And that's before you account for the wonderful world known as terminal input processing; even if you could type shift-<character> for every single pair trigger character, there's no guarantee the terminal is able to distinguish shift-key from just key. gvim has more available keybinds, but the plugin isn't designed purely for GUIs.

Not entirely sure what you're looking for here, though. " when the wrapping characters are inserted inside the word." - what wrapping character?

Unless what you're looking for is basically reverse fast wrap, and you by "adding shift" meant to the default fast wrap keybind?

LunarWatcher avatar Mar 31 '21 21:03 LunarWatcher