helix/helix-view/src
Skyler Hawthorne a494f47a5d
Configurable auto pairs (#1624)
* impl auto pairs config

Implements configuration for which pairs of tokens get auto completed.

In order to help with this, the logic for when *not* to auto complete
has been generalized from a specific hardcoded list of characters to
simply testing if the next/prev char is alphanumeric.

It is possible to configure a global list of pairs as well as at the
language level. The language config will take precedence over the
global config.

* rename AutoPair -> Pair

* clean up insert_char command

* remove Rc

* remove some explicit cloning with another impl

* fix lint

* review comments

* global auto-pairs = false takes precedence over language settings

* make clippy happy

* print out editor config on startup

* move auto pairs accessor into Document

* rearrange auto pair doc comment

* use pattern in Froms
2022-02-25 17:36:54 +09:00
..
clipboard.rs log syntax highlighting init errors (#895) 2021-10-23 21:52:18 +09:00
document.rs Configurable auto pairs (#1624) 2022-02-25 17:36:54 +09:00
editor.rs Configurable auto pairs (#1624) 2022-02-25 17:36:54 +09:00
graphics.rs Merge pull request #1154 from sudormrfbin/cursor-shape-new 2022-01-23 16:35:22 +09:00
gutter.rs Merge remote-tracking branch 'origin/master' into debug 2022-02-13 18:31:51 +09:00
info.rs Handle newlines in register infobox 2022-02-10 10:52:06 +09:00
input.rs Extract macro parsing to `helix-view` and add unit tests 2021-12-27 10:13:18 +09:00
keyboard.rs fix: Normalize backtab into shift-tab 2021-12-06 12:25:19 +09:00
lib.rs helix-term/commands: display buffer id in picker 2022-02-17 14:02:42 +09:00
macros.rs Simplify view/doc macros 2021-11-18 14:13:42 +09:00
theme.rs Put some tests behind #[cfg(test)] (#1459) 2022-01-09 00:32:50 +09:00
tree.rs helix-term/commands: implement buffer-close (bc, bclose) (#1035) 2021-11-16 00:30:45 +09:00
view.rs Merge remote-tracking branch 'origin/master' into debug 2022-02-13 18:31:51 +09:00