gpakosz / .tmux

🇫🇷 Oh my tmux! My self-contained, pretty & versatile tmux configuration made with ❤️
MIT License
21.9k stars 3.36k forks source link

New shortcut for splitting vertically the windows, bind | #710

Open hasecilu opened 8 months ago

hasecilu commented 8 months ago

In cli apps as Vim/Neovim is very common to have the pipe | as part of some shortcut to divide vertically the window.

In the same way that is very natural to split horizontally with -, doing so vertically with | feels natural.

gpakosz commented 8 months ago

Hello @hasecilu,

I don't think I'll merge this change as

That being said, you can add bind | split-window -h do your .local customization file 🙂

hasecilu commented 8 months ago

Sure, I have on my config. In some keyboards the pipe is next to 1 which makes it very comfortable to use with Ctrl+A, quite convenient, maybe some users also have same keyboard. Edit: When editing my config file I found useful to comment in the colors where were used the colors, so you don't need to read all to know what to change next, maybe those comments are useful to add it?

# |      status left      |       window list        |      status right     |
# | 1st b | 2nd b | 3rd b |          4th b           | 5th b | 6th b | 7th b |
tmux_conf_theme_colour_1="$kw_r0c0" # 4th block bg
tmux_conf_theme_colour_2="$kw_r0c3" # previous window bg & pane border
tmux_conf_theme_colour_3="$kw_r0c4" # other windows fg
tmux_conf_theme_colour_4="$kw_r2c0" # current window bg & previous window fg
tmux_conf_theme_colour_5="$kw_ex2"  # highlight selection on list (C-b w)
tmux_conf_theme_colour_6="$kw_ex1"  # 1st block fg
tmux_conf_theme_colour_7="$kw_r2c1" # 2nd block fg
tmux_conf_theme_colour_8="$kw_r1c0" # 3rd block fg
tmux_conf_theme_colour_9="$kw_r2c1" # 1st block bg & pane border active on copy mode
tmux_conf_theme_colour_10="$kw_ex1" # 2nd block bg
tmux_conf_theme_colour_11="$kw_r0c2"    # 3rd block bg
tmux_conf_theme_colour_12="$kw_ex0" # 5th block fg
tmux_conf_theme_colour_13="$kw_r0c1"    # 6th block fg
tmux_conf_theme_colour_14="$kw_r0c1"    # 7th block fg & pane border active
tmux_conf_theme_colour_15="$kw_r3c4"    # 5th block bg
tmux_conf_theme_colour_16="$kw_r3c3"    # 6th block bg
tmux_conf_theme_colour_17="$kw_r4c2"    # 7th block bg