alexherbo2 / auto-pairs.kak

Auto-pairing of characters for Kakoune
https://kakoune.org
77 stars 18 forks source link

Maintain append selection #57

Closed jcuffe closed 2 years ago

jcuffe commented 2 years ago

Alters behavior of closing pair auto-insertion: instead of moving the selection to the right, we now use the delete key to remove the character under the cursor if it is the closing pair. The closing pair is now always inserted with hooks.

This has the side effect of preserving the selection when auto-closing during an insert that began with "append"

Asciinemas demonstrating the selection behavior:

jcuffe commented 2 years ago

Noticed after using for a while that my change prevents quotation pairs from auto-closing. Closing this PR 🙈