Ingo Lohmar
28da270834
harmonize selection display
2025-08-03 18:07:58 +02:00
a5af34e13f
feat: select mode widget style "fancy" or "plain" with descriptor arg
...
"fancy" mode is the previous behaviour and the default. "plain" mode makes the
mode widget use the same styling as other status bar widgets.
Select "plain" mode with a descriptor arg in the config. e.g:
`
bottom_bar "mode:plain file log selection diagnostics keybind branch linenumber clock spacer"
`
2025-08-03 17:53:34 +02:00
Ingo Lohmar
d011294c69
use statusbar.hover style for actual hovering
...
The style was used for regular display of the style_label instead, which
gives the current keymap/mode weird prominence, and which means that
actual (mouse) hovering needed to use the unrelated "selection" style.
This commit uses the hover style for just hovering, or if a mini mode is
used (which, to me, sounds at least plausible).
For modal-workflow users, it may be more helpful to actually highlight
the mode (sometimes?), but I have no experience with that.
2025-08-03 17:53:34 +02:00
0c98460ca8
refactor: remove duplicate style definition in modestate widget
2025-08-03 17:28:37 +02:00
b97b8e8fb7
feat: auto hide tabs widget if there are less than {n} tabs
...
This can be configured via an integer argument in the bar widget descriptor, or
via the tab styles configuration file. A value of 0 will effectively disable
auto hide.
2025-08-03 17:08:53 +02:00
dfcc825e4b
feat: auto hide bars with empty widget layouts
2025-08-03 16:17:05 +02:00
ce204d650a
feat: add WidgetList support for overriding layouts
2025-08-03 16:16:15 +02:00
31e1e5091b
fix: crash in tabs widget when buffers are destroyed during tab switch
2025-08-02 22:50:11 +02:00
8f089672da
feat: collapse whitespace to the right of the cursor in smart_insert_line
2025-08-01 23:29:30 +02:00
7f26b13196
feat: collapse trailing whitespace when leaving a line with smart_insert_line*
2025-08-01 16:30:02 +02:00
146a8e8afb
fix: reduce horizontal space waste in command palette
2025-07-31 14:30:16 +02:00
9793bcdd9a
feat: persist syntax_no_render in editor state
2025-07-31 10:11:53 +02:00
666d30df3b
fix: make unindent_cursor work correctly in indent_mode tabs
2025-07-30 20:04:26 +02:00
ed1fe30e74
feat: make indent_size always equal to tab_width in indent_mode tabs
2025-07-30 20:03:12 +02:00
4100585b03
feat: make smart_insert_line and friends follow indent_mode
2025-07-30 19:37:28 +02:00
3abfd6555e
feat: make indent_cursor follow indent_mode and insert tabs
2025-07-30 19:17:52 +02:00
a74c0ecf46
feat: add indent_mode detection (auto mode)
2025-07-30 19:16:27 +02:00
9774b513d4
fix: update buffer file type in set_type
...
This fixes the buffer file type getting lost when switching buffers
if the file type was set with set_type.
2025-07-30 18:50:42 +02:00
196f516724
feat: save and restore indent_mode to editor state
2025-07-30 18:28:04 +02:00
cf6c9455c7
feat: update git status on focus_in events
2025-07-29 17:24:43 +02:00
6f82b4aaf3
feat: refresh branch status on file state change events
2025-07-29 10:29:06 +02:00
a734a008e1
fix: refresh git branch status on project switch
2025-07-29 10:12:15 +02:00
73d118dcee
refactor: reduce event matching overhead in filestate widget
2025-07-29 10:11:16 +02:00
efdad96054
refactor: improve create pattern to avoid leaks
2025-07-19 00:03:30 +02:00
30c6ac0e82
feat: BREAKING make highlight_columns a list of integers
2025-07-16 19:42:12 +02:00
46dfde7685
refactor: simplify and improve management of config buffers
2025-07-16 19:42:12 +02:00
ada40b989c
feat: add limit_auto_save_file_types config option
...
closes #77
2025-07-16 19:41:35 +02:00
99664742c3
feat: save file if changed if auto save is enabled
2025-07-16 17:22:06 +02:00
35e36089a8
feat: save and restore enable_auto_save in editor state
2025-07-16 16:40:28 +02:00
c5fe992f75
feat: add toggle_auto_save command
2025-07-16 16:40:07 +02:00
c300c4f7f2
feat: add enable_auto_save configuration option
2025-07-16 16:35:03 +02:00
7bdbe60776
fix: restoring of last_find_query from editor state
2025-07-16 16:33:45 +02:00
f8d3bbf643
feat: save and restore enable_format_on_save in editor state
2025-07-16 16:32:37 +02:00
550834a626
feat: add toggle_format_on_save command
2025-07-16 15:38:31 +02:00
bc2fbec083
refactor: clean-up std.StaticStringMap naming
2025-07-15 13:17:04 +02:00
f7cea96844
feat: merge configured and static file type lists
...
This allows adding of new file types by adding config files.
2025-07-14 18:02:24 +02:00
abd1e683a3
refactor: move default file type constants to file_types_config module
2025-07-14 18:02:24 +02:00
2ebd684d29
feat: port file type palette to use configurable file types
2025-07-14 18:02:24 +02:00
bffc56b618
feat: port editor to use configurable file types
2025-07-14 18:02:23 +02:00
a21fd2b397
fix: allow editing the current editor's file type
2025-07-14 18:02:22 +02:00
2897d8d745
feat: add command to edit file type configuration files
2025-07-14 18:02:22 +02:00
e9735d9425
feat: more improvements to panic handling
...
Follow on panics no longer confuse the panic output and the just in
time debugger now works properly on the local tty.
2025-07-14 18:02:21 +02:00
43d6bc66f4
feat: smart delete leading whitespace to indent_size
...
Also and some commentary to the smart_delete_backwards code.
closes #245
2025-07-03 10:26:11 +02:00
c6d59c1472
fix: don't stop unindenting on blank or full unindented lines
...
closes #263
2025-07-03 09:39:03 +02:00
338d7f7bf3
feat: add follow_cursor_on_buffer_switch option (default false)
...
With this option disabled (the default) flow will not change the buffer
position at all when switching active buffers. Enable the option to
return to previous behaviour where the cursor is always scrolled into
view.
closes #271
2025-07-01 21:11:55 +02:00
53ea08a41e
fix: don't truncate scratch buffer names in tabs and terminal title
2025-06-24 12:21:10 +02:00
a33f6c8c2b
feat: add support for ~ expansion to open_file command and file_browser
2025-06-19 16:08:34 +02:00
717bef9c61
build: update to latest libvaxis and zg api
2025-06-04 22:22:52 +02:00
b9fbd6825d
fix: minor home screen fixes
2025-06-03 19:16:22 +02:00
006e1ddb45
fix: remove multithreaded buffer access in project_manager
...
Until we have proper multithreaded buffer lifetime management we should avoid
accessing buffers that may have been deleted already.
2025-06-03 18:14:00 +02:00