helix-mods/helix-term/src
Skyler Hawthorne 94535fa013
Add auto pairs for same-char pairs (#1219)
* Add auto pairs for same-char pairs

* Add unit tests for all existing functionality
* Add auto pairs for same-char pairs (quotes, etc). Account for
  apostrophe in prose by requiring both sides of the cursor to be
  non-pair chars or whitespace. This also incidentally will work for
  avoiding a double single quote in lifetime annotations, at least until
  <> is added
* Slight factor of moving the cursor transform of the selection to
  inside the hooks. This will enable doing auto pairing with selections,
  and fixing the bug where auto pairs destroy the selection.

Fixes #1014
2021-12-14 00:58:58 +09:00
..
ui Add ui.gutter to theme all gutters (i.e. set bg) 2021-12-14 00:52:15 +09:00
application.rs Load alt default theme if true color is not supported 2021-12-14 00:47:18 +09:00
args.rs Implement hx --tutor and :tutor to load tutor.txt (#898) 2021-10-28 10:23:46 +09:00
commands.rs Add auto pairs for same-char pairs (#1219) 2021-12-14 00:58:58 +09:00
compositor.rs Macros (#1234) 2021-12-12 21:16:48 +09:00
config.rs Launch with defaults upon invalid config/theme (#982) 2021-11-07 00:57:14 +09:00
job.rs Drop some &mut bounds where & would have sufficed 2021-09-06 15:25:46 +09:00
keymap.rs Macros (#1234) 2021-12-12 21:16:48 +09:00
lib.rs Assume true color support on Windows 2021-12-14 00:48:45 +09:00
main.rs revert log truncation (#895) (#1130) 2021-11-19 13:26:39 +09:00