juliusHuelsmann / st-history-vim

Development of the "vim patch" and a minimalist "history patch" for the suckless simple terminal (st).
MIT License
49 stars 1 forks source link

Feature: Actions like `i` and `d` for mutable text #2

Open juliusHuelsmann opened 4 years ago

juliusHuelsmann commented 4 years ago

If currently in a mutable chunk of text, use "i" in order to apply the historyPosition to the insertPosition, and continue inserting there. Use motions like "c" and "d" within the mutable chunk.

While the implementation of "c" and "d" and extensions like ci{ diw is straight-forward if it is possible to edit the current mutable chunk of text, the issue might be that the theoretically mutable chunk of text cannot be altered, is only available in a different scope or possibly not available at all. If it's not doable in 10 loc it's probably not worth it.