micro/internal/action
Dmytro Maluka fd3a00226c
Add matchbraceleft option (#3432)
Add `matchbraceleft` option to allow disabling the default behavior
matching not just the brace under cursor but also the brace to the left
of it (which is arguably convenient, but also ambiguous and
non-intuitive). With `matchbraceleft` disabled, micro will only match
the brace character that is precisely under the cursor, and also when
jumping to the matching brace, will always move cursor precisely to the
matching brace character, not to the character next to it.

Nota bene: historical journey:

- There was already a `matchbraceleft` option introduced in commit
  ea6a87d41a, when this feature (matching brace to the left) was
  introduced first time. That time it was matching _only_ the brace
  to the left, _instead_ of the brace under the cursor, and was
  disabled by default.

- Later this feature was removed during the big refactoring of micro.

- Then this feature was reintroduced again in commit d1e713ce08, in
  its present form (i.e. combined brace matching both under the cursor
  and to the left, simulating I-beam cursor behavior), and it was
  introduced unconditionally, without an option to disable it.

- Since then, multiple users complained about this feature and asked
  for an option to disable it, so now we are reintroducing it as an
  option again (this time enabled by default though).
2024-08-18 21:08:05 +02:00
..
actions.go Add matchbraceleft option (#3432) 2024-08-18 21:08:05 +02:00
actions_other.go Change project layout and use go.mod 2019-12-25 17:05:10 -05:00
actions_posix.go Fix v2 import path for go mod 2020-05-04 10:16:15 -04:00
bindings.go Don't use tcell's Rune() for non-KeyRune events 2024-06-10 02:30:55 +02:00
bufpane.go Merge pull request #3352 from dmaluka/action-return-values 2024-07-20 15:52:18 +02:00
command.go Adding missing deselect when calling RemoveAllMultiCursors (#3428) 2024-08-15 16:06:32 +02:00
defaults.go Update keybinding docs 2020-09-06 17:38:23 -04:00
defaults_darwin.go Add Shift-Page Up/Down keybindings (#3407) 2024-07-31 20:35:09 +02:00
defaults_other.go Add Shift-Page Up/Down keybindings (#3407) 2024-07-31 20:35:09 +02:00
events.go De-duplicate code for KeyEvent creation 2024-06-10 02:54:37 +02:00
globals.go Improve comments 2021-08-21 17:58:30 -04:00
infocomplete.go action: Fix the duplication of the unknown filetype (#3258) 2024-04-19 06:01:27 +02:00
infopane.go De-duplicate code for KeyEvent creation 2024-06-10 02:54:37 +02:00
keytree.go More style improvements 2021-08-21 18:04:08 -04:00
pane.go More style improvements 2021-08-21 18:04:08 -04:00
rawpane.go Update to tcell v2 2020-09-05 14:52:35 -04:00
tab.go Fix termpane not closing automatically after terminal job finished (#3386) 2024-07-15 09:35:50 +02:00
terminal_supported.go Check error in terminal emulator 2020-07-27 17:43:55 -04:00
terminal_unsupported.go Use actual lua functions for callbacks instead of strings 2020-02-08 15:49:41 -05:00
termpane.go Fix termpane not closing automatically after terminal job finished (#3386) 2024-07-15 09:35:50 +02:00