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-plus/helix-core/src
Skyler Hawthorne 5b4540fc2d
Auto pairs selection (#1254)
* use auto pairs with selections

Previously, the auto pairs code was converting the user selection into
its cursor form, and setting the transaction's selection to that cursor.
This has the effect of destroying the user's selection if they type a
pair character that gets auto completed.

This fixes the code to work with the user's selection, inserting auto
pairs where appropriate, but either keeping or extending the user's
selection.

* use movement::Direction instead of bool

* assume 0-width cursor is forward
3 years ago
..
increment Remove `Clone` derive 3 years ago
auto_pairs.rs Auto pairs selection (#1254) 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 Apply recent nightly suggestions (#1286) 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 Auto pairs selection (#1254) 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