diff options
| author | Igor Soarez <igor@soarez.org> | 2026-10-05 15:45:17 +0300 |
|---|---|---|
| committer | Igor Soarez <igor@soarez.org> | 2026-10-05 15:45:17 +0300 |
| commit | e953b5c4797e629e92acca7525f40f2ce03ad6e1 (patch) | |
| tree | 3664d0a71ca06f66c771f1cf7bf2b7d38de15f1b /tmuxrdr/config | |
| parent | 9a12d7fb0eae23c016d3e941a16765084fbf0eaa (diff) | |
tmuxrdr: tmux tab row on, session commands in the : prompt
The config turns ui.tab_style = "tmux" on, with the row at the bottom like
tmux's status line. The : prompt takes tmux's session commands, on
workspaces: new-session (-s, -c, -d, -A), switch-client -t/-n/-p/-l,
attach-session -t, list-sessions, kill-session -t, with tmux's messages for
a taken or missing name. test-e2e covers both, prints the config check's
diagnostics when it fails, and finds the tab row wherever it is drawn.
Diffstat (limited to 'tmuxrdr/config')
| -rw-r--r-- | tmuxrdr/config/config.toml | 27 |
1 files changed, 19 insertions, 8 deletions
diff --git a/tmuxrdr/config/config.toml b/tmuxrdr/config/config.toml index 76feb830..82e4bca3 100644 --- a/tmuxrdr/config/config.toml +++ b/tmuxrdr/config/config.toml @@ -336,9 +336,18 @@ copy_on_select = false # default 5". herdr's default is already 3, left explicit. mouse_scroll_lines = 3 -# # tmux's status line sits at the bottom of the screen; herdr draws its tab bar -# # at the top by default. Bottom, like tmux. -# tab_bar_position = "bottom" +# tmux's status line sits at the bottom of the screen; herdr draws its tab bar +# at the top by default. Bottom, like tmux. +tab_bar_position = "bottom" + +# tmux's status line, drawn by tmuxrdr's own ui.tab_style +# (src/client/shell/tabs_tmux.rs): "[session] 1:name* 2:name- 3:name ", +# window-status-format "#I:#W#{?window_flags,#{window_flags}, }", plain text +# one space apart, the session cut to status-left-length 10, tabs nobody named +# called after their pane's directory (this tmux.conf's automatic-rename-format +# '#{b:pane_current_path}'). herdr's own style draws padded blocks, and shows +# a named tab's name without its number. +tab_style = "tmux" # tmux.conf: set-option -g status-right '#h %a %d-%b %H:%M', replaced by # ~/.tmux.conf.local with '%d-%b %H:%M' -- day-month and time at the right edge @@ -356,11 +365,13 @@ prompt_new_tab_name = false # tmux.conf: automatic-rename on, automatic-rename-format # '#{b:pane_current_path}', status-interval 5 -- windows name themselves after -# their pane's directory. herdr names no tab (an unnamed one shows its place -# in the tab bar). tmux-mode's bin/automatic-rename does it, a manual rename -# switching it off for that tab as in tmux, run every 5 s as a tab_bar_right -# command entry that prints nothing. Off while tab_bar_right is commented out -# above; to have it, give tab_bar_right this entry: +# their pane's directory. tab_style = "tmux" above already shows tabs that way, +# in this client. herdr itself names no tab: everywhere else -- the navigator, +# the CLI -- an unnamed tab is its number. tmux-mode's bin/automatic-rename +# gives tabs real names on the server, a manual rename switching it off for +# that tab as in tmux, run every 5 s as a tab_bar_right command entry that +# prints nothing. Not in tab_bar_right above; to have it, add this entry +# there: # { type = "command", command = "sh ~/.local/share/tmuxrdr/plugin/bin/automatic-rename", interval_seconds = 5, timeout_seconds = 4 } # tmux draws pane borders only when a window is split; a lone pane has none. |
