You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
helix/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
3 years ago
..
increment Remove `Clone` derive 3 years ago
auto_pairs.rs Add auto pairs for same-char pairs (#1219) 3 years ago
chars.rs Document more of helix-core (#904) 3 years ago
comment.rs Specify capacity on toggle_line_comments 3 years ago
diagnostic.rs Gutter functions 3 years ago
diff.rs Remove ExactSizeIterator requirement on Transaction::change 3 years ago
graphemes.rs Add hyperlinks to fix `cargo doc` warn (#931) 3 years ago
history.rs Add movement shortcut for history (#1088) 3 years ago
indent.rs Use same name used in config files for langs in docs 3 years ago
lib.rs Open files with spaces in filename, allow opening multiple files (#1231) 3 years ago
line_ending.rs Mark a few functions as `const` 3 years ago
macros.rs Split parts of helix-term into helix-view. 4 years ago
match_brackets.rs Jump to end char of surrounding pair from any cursor pos (#1121) 3 years ago
movement.rs Add trim_selections command (#1092) 3 years ago
object.rs select smaller range on some case 3 years ago
path.rs fix: Expand tilde first, then deal with relative paths 3 years ago
position.rs Ensure coords in screen depends on char width (#885) 3 years ago
register.rs Implement black hole register (#1165) 3 years ago
search.rs Switch to a cleaner range-head moving abstraction. 3 years ago
selection.rs Fix surround cursor position calculation (#1183) 3 years ago
shellwords.rs Open files with spaces in filename, allow opening multiple files (#1231) 3 years ago
state.rs Reduce State use a bit further 3 years ago
surround.rs Fix surround cursor position calculation (#1183) 3 years ago
syntax.rs Use same name used in config files for langs in docs 3 years ago
textobject.rs Fix surround cursor position calculation (#1183) 3 years ago
transaction.rs Add auto pairs for same-char pairs (#1219) 3 years ago