noctuid / things.el

Extensions to thingatpt.el
51 stars 0 forks source link

Composite and Remote Motions #9

Open noctuid opened 5 years ago

noctuid commented 5 years ago

This won't require any extra work. It will be as simple as just moving the point to the end of the bounds from things-seeking-bounds, for example. Adjustments would also be supported (e.g. go to the inner end of a paren thing). Same is true for remote motions, but the overlay positions would be the beginning or end after whatever adjustment instead.

Also, it may be useful to differentiate the thingatpt.el compatibility layer from the full-featured functions (e.g. with an explicit -thing postfix for the functions that only support a single thing as an argument).

Some compatibility layer will be necessary for evil, since evil puts the point "on" the end of the end position. Basically, it will be similar to evil-forward-end, but some further thought needs to go into the differences between the point in Emacs vs. the point in evil/vim.