Sublime contains keybindings like this:
{ "keys": ["alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
{ "keys": ["alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
I would like to be able to replicate the same “move… by…” behavior on a single text point, but I don’t know how because I don’t know what “subwords” and “subword_ends” really mean, I just see the observed behavior.
One thing I could do, for example, to load my text point as the single Region of the current view, then run the appropriate command on the view, then reload my old regions, but this seems pretty clunky.
Does anyone know what “subwords” and “subword_ends” mean? Or a pre-existing API call that I can call on a view and a pt?