update readme

This commit is contained in:
Tomasz Kapias 2023-03-19 10:41:29 +07:00
parent 1ceeb88690
commit 25e5f6daa6
Signed by: tkapias
SSH key fingerprint: SHA256:bsmasrX7y0xxAHa/x1x8zAgHInO4nPpKMk5JIQ0Vsbw

View file

@ -1,5 +1,10 @@
# git init $HOME/.config/tmux/plugins
# cd $HOME/.config/tmux/plugins
# vi: syntax=tmux
# vi: filetype=tmux
#
# mkdir -p $HOME/.config/tmux/plugins
# cd $HOME/.config/tmux
# git init
# cd plugins
# git submodule init
# git submodule add https://github.com/tmux-plugins/tpm
# git submodule add https://github.com/tmux-plugins/tmux-prefix-highlight
@ -29,7 +34,7 @@ bind-key a if -F '#{pane_synchronized}' \
set-window-option pane-active-border-style fg=colour02; \
set-window-option pane-border-style fg=colour02'
# Bind 2 repeatable keys to switch panes and zoom in. Just zomming in is rebinded to "Z"
# Bind "z" & "e" repeatable keys to switch panes and zoom in. Just zomming in is rebinded to "Z"
unbind-key z
bind-key Z resize-pane -Z
bind-key -r e select-pane -t .+1 \; resize-pane -Z
@ -39,7 +44,7 @@ bind-key -r z select-pane -t .-1 \; resize-pane -Z
set -g pane-border-status bottom
set -g pane-border-format '#{pane_index} #{pane_title} > #(sleep 1; ps -t #{pane_tty} --no-headers -o command | tail -1)'
# Add a shortcup to interactively rename the title of the current pane
# Bind "P" to interactively rename the title of the current pane
bind-key P command-prompt -I 'select-pane -T '
# Seperator colors for current pane
@ -54,7 +59,7 @@ set-option -g pane-border-style fg=colour04
set -g status-bg 'colour00'
set -g status-fg 'colour08'
# Contents on the right of the status bar
# Contents (gitmux & prefix) on the right of the status bar
set -g status-right '#(gitmux -timeout 3s -cfg ~/.config/gitmux.conf "#{pane_current_path}") #{prefix_highlight}'
set -g status-interval 1
set -g status-right-length 45
@ -80,7 +85,6 @@ set-option -g message-style bg=colour04,fg=colour08
bind-key C-j display-popup -E "tmux list-sessions | sed -E 's/:.*$//' | grep -v \"^$(tmux display-message -p '#S')\$\" | fzf --reverse | xargs tmux switch-client -t"
# open/close a popup scratch session
#bind-key C-g display-popup -E "tmux new-session -A -s scratch"
bind-key C-g if-shell -F '#{==:#{session_name},scratch}' {
detach-client
} {
@ -169,7 +173,7 @@ set -g @prefix_highlight_copy_mode_attr 'fg=colour08,bg=colour03,bold'
set -g @prefix_highlight_show_sync_mode 'on'
set -g @prefix_highlight_sync_mode_attr 'fg=colour08,bg=colour02,bold'
# extrakto configs
# extrakto configs, open with "Prefix-Tab"
set -g @extrakto_grab_area 'recent'
set -g @extrakto_filter_order 'line word all'
set -g @extrakto_popup_size '90%,60%'