micro/internal/config
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
..
autosave.go Fix autosave not running by default 2020-10-08 23:33:34 -04:00
colorscheme.go colorscheme: Add capability to include schemes (#2844) 2024-03-21 18:37:51 +01:00
colorscheme_test.go colorscheme: Add capability to include schemes (#2844) 2024-03-21 18:37:51 +01:00
config.go Use filepath.Join more 2020-02-11 13:09:17 -05:00
globals.go Fix internal string binding representation 2020-11-05 15:52:25 -05:00
plugin.go plugins: Add capability to dis-/enable them per buffer (#2836) 2023-06-05 17:38:33 -07:00
plugin_installer.go plugins: Add capability to dis-/enable them per buffer (#2836) 2023-06-05 17:38:33 -07:00
plugin_installer_test.go Add plugin manager 2020-02-01 23:54:38 -05:00
plugin_manager.go Add plugin manager 2020-02-01 23:54:38 -05:00
rtfiles.go Temporarily don't initialize runtime files in buffer test 2024-04-03 04:37:44 +02:00
rtfiles_test.go Ignore user-defined runtime files in buffer test and rtfiles test 2024-04-03 03:44:15 +02:00
settings.go Add matchbraceleft option (#3432) 2024-08-18 21:08:05 +02:00