alexherbo2 / auto-pairs.kak

Auto-pairing of characters for Kakoune

Home Page:https://kakoune.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using words as autopairs

asyncial opened this issue · comments

Hey,
is it possible to use full strings as autopairs? For example if and fi in shellscripts.
Thanks for providing this useful plug in!

Not at the moment, but patches are welcome.

I have to check the code, but if my memory is good, it could be done by iterating the pairs, testing count H, where count represents the length of the opening pair being iterated, for each selection matching, insert the corresponding closing pair.

Alright, thanks, I will look into it.

That would be a great feature. :)