Commit graph

143 commits

Author SHA1 Message Date
Igor Támara
7f7f12a441 feat: update vcs changed files info when click on branch status 2025-10-28 22:20:36 +01:00
3e4a604739
refactor: move git status request to project_manager 2025-10-28 21:31:32 +01:00
265bff583b
feat: make tabs draggable 2025-10-25 00:09:35 +02:00
2704c7be07
feat: add place_next_tab and swap_tabs commands 2025-10-24 12:21:48 +02:00
89e9fd7b83
feat: add move_tab_next/_previous commands 2025-10-24 12:19:03 +02:00
25a719382f
fix: store button click locations as signed values 2025-10-10 16:05:50 +02:00
e6cc1c35f9
fix: rendering of tab bar background 2025-10-10 15:38:49 +02:00
00bbeaedf9
feat: if buffer is dirty show save button in tabs instead of close 2025-10-09 21:12:15 +02:00
4e38d15878
feat: close buffer if tab close icon is clicked 2025-10-09 20:52:00 +02:00
ce87dcfa2b
refactor: pass relative click position to button click handlers
This a big refactor just to clean-up type definitions used by Button and Menu.
The goals is to pass the click position as a cursor object.
2025-10-09 19:11:25 +02:00
35ccf7f1df
feat: optionally customize tab clean indicator 2025-10-09 17:11:28 +02:00
52e29b7825
feat: add optional tab padding 2025-10-09 17:11:07 +02:00
94adc72283
feat: render close icon in tabs on hover 2025-10-09 16:50:29 +02:00
e2c0325a7a
fix: incorrect tab width when file type icons are turned on 2025-10-09 15:23:37 +02:00
78b29c321e
fix: don't render color for black or white file type icons in tabs 2025-10-09 14:33:09 +02:00
455565ee26
feat: add file type icons to tabs
Optionally disable icons in tabs with `file_type_icon = false` in `status.tabs.style.config`.
2025-10-09 14:01:49 +02:00
3c55ed876b
refactor: allow mocking of root module functions for easier unittesting 2025-10-08 14:18:03 +02:00
bf0d4402ea
refactor: lots more writergate fixes - first successful build 2025-09-25 22:01:29 +02:00
b043dfe34f
feat: reduce mode indicator clutter 2025-08-15 11:27:08 +02:00
aee7c30c65
feat: display indent mode in status bar 2025-08-08 21:30:42 +02:00
1ebdae310e
feat: save and restore tabbar state 2025-08-08 20:40:00 +02:00
c88e2dd975
fix: don't leak Buffer.file_path 2025-08-05 15:24:18 +02:00
410a6aadce
fix: branch widget: don't call git status if there is no git workspace 2025-08-04 09:47:24 +02:00
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
31e1e5091b
fix: crash in tabs widget when buffers are destroyed during tab switch 2025-08-02 22:50:11 +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
bc2fbec083
refactor: clean-up std.StaticStringMap naming 2025-07-15 13:17:04 +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
980529029f
feat(flicker): avoid triggering initial render from branch widget 2025-04-30 18:51:55 +02:00
df11ec3d5f
fix: re-render on branch widget update 2025-04-30 09:24:35 +02:00
e39d9ed4b3
fix: render control codes in mini buffer input with unicode control code symbols
closes #236
2025-04-28 16:46:36 +02:00
c217db02f2
feat: display mini git status in branch widget 2025-04-23 22:28:48 +02:00
4ecf46b527
refactor: make branch widget a Button 2025-04-23 22:28:48 +02:00
b82c582a83
feat: add some whitespace to branch widget 2025-04-22 21:28:09 +02:00
f76085325a
feat: query project files via git (part 1) 2025-04-21 21:43:29 +02:00
a0d0a8273c
feat: check we have a git repo in the branch widget 2025-04-21 18:13:44 +02:00
45574ff5c5
feat: add git branch widget 2025-04-20 22:51:43 +02:00
d594e42f1a
feat: display pending integer argument in keybind widget 2025-04-08 18:04:02 +02:00
3e8faabd9d
feat: add clock widget digit style parameter
May be ascii, digital, subscript or superscript
2025-03-25 21:05:47 +01:00
aa568dfd5e
feat: add status bar widget parameter support with parameters for linenumber and spacer widgets
linenumber widgets may have three parameters: pad width (int), pad value (space/zero) and
digit style (ascii/digital/subscript/superscript). eg `5,zero,digital`

spacers may have one parameter: width (int)
2025-03-25 20:50:11 +01:00