tmux icon indicating copy to clipboard operation
tmux copied to clipboard

Feature request: Window connect seperator

Open ian-vu opened this issue 1 year ago • 3 comments

Hey 👋👋, I am looking for the ability to connect the window separators similar to how the current status separators work. I am not sure if it is currently supported.

Currently there is support for the option catppuccin_status_connect_separator "yes" which allows for no gaps between the modules. I am looking for the same effect but for the windows.

Hopefully my screenshot better expresses what I am looking for.

CleanShot 2024-03-29 at 20 22 56@2x

ian-vu avatar Mar 29 '24 09:03 ian-vu

Hi, as I understand you can't join windows the same way as status modules, because of text direction and background nesting

However, I updated code to look closer to your needs. Same approach used in dracula tmux

image

Config from screenshot:

set -g @catppuccin_window_left_separator " "
set -g @catppuccin_window_right_separator "█"
set -g @catppuccin_window_middle_separator "▕ "
set -g @catppuccin_window_default_fill "none"
set -g @catppuccin_window_current_fill "all"
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_connect_separator "yes"

sukhostavets avatar Apr 03 '24 07:04 sukhostavets

Just created PR, for now problem that I see is with most right separator. To fix this dracula tmux uses fixed icon that renders before all windows. In this example from dracula icon shows current session (on screenshot only one window, can be confusing) image

If we are interested in the same logic, I can create try to implement it

sukhostavets avatar Apr 03 '24 07:04 sukhostavets

That looks awesome @MykhailoSukhostavets thanks for your work! 🙏 Perfectly what I was trying to express

ian-vu avatar Apr 12 '24 00:04 ian-vu

This is supported by the tmux option window-status-separator. Closing

kjnsn avatar Nov 17 '24 22:11 kjnsn