Hi all,
aim: to delete leading and trailing whitespace chars in an arbitrary selection - not to be confused with unselecting leading/trailing whitespace which is what the _ cmd does.
I can’t figure out how to do this, but the most natural solution that my mind wants to reach for is to enter selection mode and use an equivalent of ^ and $ regex ops but instead of operating on line terminals it would operate on selection terminals (which kak already knows about via the a-; a-: a-S keys). I guess some might frown upon having a kak-specific regex extension but I find myself wishing it existed fairly regularly as it’s a natural concept we use all the time to navigate and extend selections via those keys.
Please let me know if I’ve missed some obvious feature that makes the above a trivial task and/or if there’s an equally powerful primitive available for other use cases… happy to learn!