diff options
Diffstat (limited to 'ar/.config/tmux/tmux.conf')
| -rw-r--r-- | ar/.config/tmux/tmux.conf | 46 |
1 files changed, 36 insertions, 10 deletions
diff --git a/ar/.config/tmux/tmux.conf b/ar/.config/tmux/tmux.conf index e6ed5de..67b450c 100644 --- a/ar/.config/tmux/tmux.conf +++ b/ar/.config/tmux/tmux.conf @@ -122,6 +122,7 @@ set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'alexwforsythe/tmux-which-key' set -g @plugin 'aserowy/tmux.nvim' set -g @plugin 'catppuccin/tmux#v2.1.2' +set -g @plugin 'Morantron/tmux-fingers' set -g @plugin 'olimorris/tmux-pomodoro-plus' set -g @plugin 'sainnhe/tmux-fzf' set -g @plugin 'tmux-plugins/tmux-battery' @@ -132,7 +133,10 @@ set -g @plugin 'tmux-plugins/tmux-online-status' set -g @plugin 'tmux-plugins/tmux-open' set -g @plugin 'tmux-plugins/tmux-resurrect' set -g @plugin 'tmux-plugins/tmux-sensible' +set -g @plugin 'tmux-plugins/tmux-sidebar' set -g @plugin 'tmux-plugins/tmux-yank' +set -g @plugin 'trevarj/tmux-open-nvim' +set -g @plugin 'wfxr/tmux-fzf-url' set -g @plugin 'xamut/tmux-weather' @@ -148,6 +152,15 @@ bind -T copy-mode-vi 'v' send-keys -X begin-selection bind -T copy-mode-vi 'C-v' send-keys -X rectangle-toggle bind -T copy-mode-vi 'y' send-keys -X copy-selection-and-cancel +# finger +set -g @fingers-key 'f' +set -g @fingers-enabled-builtin-patterns 'ip,uuid,url,path,hex,kubernate,git-status,git-status-branch,diff' +set -g @fingers-pattern-sha "[^-][0-9a-f]{7,128}" +set -g @fingers-pattern-0 "(([.\\w\\-~\\$@]+)(\\/?[\\w\\-@]+)+\\/?)\\.([\\w]+)(:\\d*:\\d*)?" +set -g @fingers-pattern-1 'git rebase --(abort|continue)' +set -g @fingers-pattern-2 "(\\+[0-9]{1,3}\\)?)?\\s?(\\s[0-9]{2,3}\\s[0-9]{3,4}\\s[0-9]{4}|\\-?[0-9]{2,3}\\-[0-9]{3,4}\\-[0-9]{4})" +set -g @fingers-ctrl-action "xargs -I {} tmux run-shell 'cd #{pane_current_path}; ton {}'" + # navigation set -g @tmux-nvim-navigation true set -g @tmux-nvim-navigation-cycle false @@ -171,9 +184,12 @@ set -g @tmux-nvim-swap-keybinding-right 'C-M-l' # open set -g @open 'O' -set -g @open-editor 'E' +set -g @open-editor 'C-e' set -g @open-o 'https://www.searx.thesiah.xyz/?q=' +# open-nvim +set -g @ton-prioritize-window false + # pomodoro set -g @pomodoro_toggle 'p' # Start/pause a Pomodoro/break set -g @pomodoro_cancel 'P' # Cancel the current session @@ -205,16 +221,23 @@ set -g @resurrect-strategy-nvim 'session' set -g @resurrect-capture-pane-contents 'on' set -g @resurrect-processes 'neomutt newsboat psql mysql sqlite3 ssh' +# side-bar +set -g @sidebar-tree 'e' +set -g @sidebar-tree-focus 'E' +set -g @sidebar-tree-command 'tree -C' +set -g @sidebar-tree-position 'right' +set -g @sidebar-tree-width '50' + # tmux-fzf -TMUX_FZF_LAUNCH_KEY="F" -TMUX_FZF_ORDER='session|window|pane|command|keybinding|clipboard|process' -TMUX_FZF_OPTIONS="-p -w 75% -h 85% -m" -TMUX_FZF_PANE_FORMAT=' \ - [#{window_name}] \ - #{pane_current_command} \ - [#{pane_width}x#{pane_height}] \ - [history #{history_size}/#{history_limit}, #{history_bytes} bytes] \ - #{?pane_active,[active],[inactive]}' +# TMUX_FZF_LAUNCH_KEY="F" +# TMUX_FZF_ORDER='session|window|pane|command|keybinding|clipboard|process' +# TMUX_FZF_OPTIONS="-p -w 75% -h 85% -m" +# TMUX_FZF_PANE_FORMAT=' \ +# [#{window_name}] \ +# #{pane_current_command} \ +# [#{pane_width}x#{pane_height}] \ +# [history #{history_size}/#{history_limit}, #{history_bytes} bytes] \ +# #{?pane_active,[active],[inactive]}' bind 'C-b' run-shell -b "~/.local/bin/tmux/tmux-fzf/scripts/keybinding.sh" bind 'C-c' run-shell -b "~/.local/bin/tmux/tmux-fzf/scripts/command.sh" @@ -226,6 +249,9 @@ bind 'C-w' run-shell -b "~/.local/bin/tmux/tmux-fzf/scripts/window.sh" # tpm set -g @tpm-clean 'C-x' +# url +set -g @fzf-url-history-limit '2000' + # weather set -g @tmux-weather-interval 60 # in minutes set -g @tmux-weather-location "Seoul,KR" |
