aboutsummaryrefslogtreecommitdiff
path: root/modules/tmux
diff options
context:
space:
mode:
authorStefan Weigl-Bosker <stefan@s00.xyz>2025-03-22 21:13:18 -0400
committerStefan Weigl-Bosker <stefan@s00.xyz>2025-03-22 21:13:18 -0400
commit320f194acd371b401168d0c9aa399918c682c8de (patch)
tree75070a5fcc7ff6c20f7bcc03994c5291bfbb6cca /modules/tmux
parent11631fbc5db8954aa5108a371dbf924ef3094141 (diff)
downloadhome-320f194acd371b401168d0c9aa399918c682c8de.tar.gz
foo
Diffstat (limited to 'modules/tmux')
-rw-r--r--modules/tmux/default.nix16
1 files changed, 11 insertions, 5 deletions
diff --git a/modules/tmux/default.nix b/modules/tmux/default.nix
index 88282e8..a74d447 100644
--- a/modules/tmux/default.nix
+++ b/modules/tmux/default.nix
@@ -32,7 +32,7 @@ in
# screen ls colors fixed, zsh autosuggestions broken
set -g renumber-windows on
- bind r source-file ~/.config/tmux/tmux.conf
+ bind R source-file ~/.config/tmux/tmux.conf
bind w switch-client -T split
bind t switch-client -T tab
@@ -47,10 +47,10 @@ in
bind -T tab i next-window
bind -T tab n new-window
- bind -T dir o run-shell -b 'fd . $(pwd) -td | fzf --tmux | xargs --no-run-if-empty tmux split-window -h -c'
- bind -T dir O run-shell -b 'fd . $(pwd) -td | fzf --tmux | xargs --no-run-if-empty tmux new-window -c'
- bind -T file o run-shell -b 'fd . $(pwd) -tf | fzf --tmux | xargs --no-run-if-empty tmux split-window -h -c $(pwd) $EDITOR'
- bind -T file O run-shell -b 'fd . $(pwd) -tf | fzf --tmux | xargs --no-run-if-empty tmux new-window -c $(pwd) $EDITOR'
+ bind -T dir o run-shell -b 'fd . -td | fzf --tmux --scheme=path | xargs --no-run-if-empty tmux split-window -h -c'
+ bind -T dir O run-shell -b 'fd . -td | fzf --tmux --scheme=path | xargs --no-run-if-empty tmux new-window -c'
+ bind -T file o run-shell -b 'fd . -tf | fzf --tmux --scheme=path | xargs --no-run-if-empty tmux split-window -h -c $(pwd) $EDITOR'
+ bind -T file O run-shell -b 'fd . -tf | fzf --tmux --scheme=path | xargs --no-run-if-empty tmux new-window -c $(pwd) $EDITOR'
bind -T split i split-window -h
bind -T split n split-window
@@ -88,6 +88,12 @@ in
bind -r E resize-pane -U 10
bind -r I resize-pane -R 10
+ bind \[ swap-pane -U
+ bind \] swap-pane -D
+
+ bind v copy-mode-vi
+ bind F resize-pane -Z
+
bind h select-pane -m
bind j next-window
bind l display-message