Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

hasecilu
Copy link

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
Copy link
Owner

gpakosz commented Jan 20, 2024

Hello @hasecilu,

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

  • I won't use it myself
  • On some keyboard layouts, | is hard to reach (e.g. on a French macOS keyboard layout it's ALT + SHIFT + L 🤷‍♂️)
  • I don't think I want to add more customized bindings as some people don't like them

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

@hasecilu
Copy link
Author

hasecilu commented Jan 21, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants