helix icon indicating copy to clipboard operation
helix copied to clipboard

Add option to control overtype of closing pairs

Open verte-zerg opened this issue 1 year ago • 2 comments

Changes:

  • added new option auto-closing-overtype to control overtype of closing pairs (default: true)
  • updated documentation

Closes: https://github.com/helix-editor/helix/issues/9595

I've implemented the feature and only then realized that another PR, which is fixing the issue, already exists. However, it looks like there have been no changes for a month.

The PR doesn't break compatibility with old configs.

verte-zerg avatar Jun 03 '24 21:06 verte-zerg

Hi, I basically implemented this same solution when I found your PR. Just a couple of differences:

  • naming the new option auto-pairs-overtype could help consistency
  • swapping the order of tests in next_char == Some(pair.close) && auto_closing_overtype should slightly improve perfomance when this option is off

dlordi avatar Jun 12 '24 20:06 dlordi

The PR was rebased (10.03.25)

verte-zerg avatar Aug 13 '24 21:08 verte-zerg