helix-mods/helix-core/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
..
increment Remove Clone derive 2021-12-05 16:22:58 +08:00
auto_pairs.rs Add auto pairs for same-char pairs (#1219) 2021-12-14 00:58:58 +09:00
chars.rs Document more of helix-core (#904) 2021-10-26 01:02:16 +09:00
comment.rs Specify capacity on toggle_line_comments 2021-11-08 10:03:21 +09:00
diagnostic.rs Gutter functions 2021-11-29 11:00:28 +09:00
diff.rs Remove ExactSizeIterator requirement on Transaction::change 2021-07-19 11:29:51 +09:00
graphemes.rs Add hyperlinks to fix cargo doc warn (#931) 2021-10-29 09:55:15 +09:00
history.rs Add movement shortcut for history (#1088) 2021-11-15 00:16:47 +09:00
indent.rs Use same name used in config files for langs in docs 2021-12-08 10:23:50 +09:00
lib.rs Open files with spaces in filename, allow opening multiple files (#1231) 2021-12-12 21:13:33 +09:00
line_ending.rs Mark a few functions as const 2021-10-24 17:28:29 +09:00
macros.rs Split parts of helix-term into helix-view. 2020-09-21 18:24:16 +09:00
match_brackets.rs Jump to end char of surrounding pair from any cursor pos (#1121) 2021-11-20 23:17:25 +09:00
movement.rs Add trim_selections command (#1092) 2021-11-15 00:16:20 +09:00
object.rs select smaller range on some case 2021-10-29 10:04:12 +09:00
path.rs fix: Expand tilde first, then deal with relative paths 2021-11-19 12:09:17 +09:00
position.rs Ensure coords in screen depends on char width (#885) 2021-11-03 12:02:29 +09:00
register.rs Implement black hole register (#1165) 2021-11-28 10:21:40 +09:00
search.rs Switch to a cleaner range-head moving abstraction. 2021-07-24 07:44:11 -07:00
selection.rs Fix surround cursor position calculation (#1183) 2021-11-29 10:33:53 +09:00
shellwords.rs Open files with spaces in filename, allow opening multiple files (#1231) 2021-12-12 21:13:33 +09:00
state.rs Reduce State use a bit further 2021-08-26 09:21:07 +09:00
surround.rs Fix surround cursor position calculation (#1183) 2021-11-29 10:33:53 +09:00
syntax.rs Use same name used in config files for langs in docs 2021-12-08 10:23:50 +09:00
textobject.rs Fix surround cursor position calculation (#1183) 2021-11-29 10:33:53 +09:00
transaction.rs Add auto pairs for same-char pairs (#1219) 2021-12-14 00:58:58 +09:00