fix tmux keybindings
This commit is contained in:
parent
d162887651
commit
22b935e728
3 changed files with 10 additions and 22 deletions
6
flake.lock
generated
6
flake.lock
generated
|
@ -213,11 +213,11 @@
|
||||||
"nvim_plugin-chrisgrieser/nvim-early-retirement": "nvim_plugin-chrisgrieser/nvim-early-retirement"
|
"nvim_plugin-chrisgrieser/nvim-early-retirement": "nvim_plugin-chrisgrieser/nvim-early-retirement"
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1715144933,
|
"lastModified": 1715145530,
|
||||||
"narHash": "sha256-SWiw7Xl6vnr0rjWT3udjSGtT4PHkwg3offCMUqhLFAU=",
|
"narHash": "sha256-CnBbrXDNvYsXj8+TB+W28xX9e91qltvLq6ZoY4QVxrQ=",
|
||||||
"owner": "RingOfStorms",
|
"owner": "RingOfStorms",
|
||||||
"repo": "nvim",
|
"repo": "nvim",
|
||||||
"rev": "ecdf25794562cd47ef7ca143af93c4f6b7d4ae9e",
|
"rev": "6ed90eafb4b4d009d58dd11987021dab7e5b75d6",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|
|
@ -8,10 +8,8 @@ bind -r n next-window
|
||||||
bind -r & kill-window
|
bind -r & kill-window
|
||||||
bind -r c new-window -c "#{pane_current_path}"
|
bind -r c new-window -c "#{pane_current_path}"
|
||||||
bind ',' command-prompt "rename-window %%"
|
bind ',' command-prompt "rename-window %%"
|
||||||
# Defaults are % and " which is weird and I cannot seem to remember them so using my normal | and \
|
bind "\|" split-window -h -c "#{pane_current_path}"
|
||||||
bind -r "\\" split-window -v -c "#{pane_current_path}"
|
bind "\\" split-window -v -c "#{pane_current_path}"
|
||||||
bind -r "|" split-window -h -c "#{pane_current_path}"
|
|
||||||
# bind "'" command-prompt -T window-target -p index { select-window it ":%%" }
|
|
||||||
bind w choose-tree -Zw
|
bind w choose-tree -Zw
|
||||||
bind -r 1 select-window -t:1
|
bind -r 1 select-window -t:1
|
||||||
bind -r 2 select-window -t:2
|
bind -r 2 select-window -t:2
|
||||||
|
@ -35,9 +33,8 @@ bind -r down select-pane -D
|
||||||
bind -r up select-pane -U
|
bind -r up select-pane -U
|
||||||
bind -r right select-pane -R
|
bind -r right select-pane -R
|
||||||
bind -r x kill-pane
|
bind -r x kill-pane
|
||||||
bind z resize-pane -Z
|
bind -r space resize-pane -Z
|
||||||
# custom
|
bind S select-layout tiled
|
||||||
bind e select-layout tiled
|
|
||||||
bind -r h select-pane -L
|
bind -r h select-pane -L
|
||||||
bind -r j select-pane -D
|
bind -r j select-pane -D
|
||||||
bind -r k select-pane -U
|
bind -r k select-pane -U
|
||||||
|
@ -52,13 +49,13 @@ bind -r ( switch-client -p
|
||||||
bind C command-prompt -p "session name:" "new-session -s '%%'"
|
bind C command-prompt -p "session name:" "new-session -s '%%'"
|
||||||
|
|
||||||
# Tmux util
|
# Tmux util
|
||||||
bind X source-file ~/.config/tmux/tmux.conf
|
|
||||||
bind : command-prompt
|
bind : command-prompt
|
||||||
bind C-D detach
|
bind C-D detach
|
||||||
|
|
||||||
# ==========
|
# ==========
|
||||||
# My options
|
# My options
|
||||||
set-option -g terminal-overrides ',xterm-256color:RGB'
|
set-option -g terminal-overrides ',xterm-256color:RGB'
|
||||||
set -g detach-on-destroy off
|
set -g detach-on-destroy off
|
||||||
set -g renumber-windows on
|
set -g renumber-windows on
|
||||||
set -g status-position top
|
set -g status-position top
|
||||||
set -sg escape-time 10
|
set -sg escape-time 0
|
||||||
|
|
|
@ -18,21 +18,12 @@ in
|
||||||
baseIndex = 1;
|
baseIndex = 1;
|
||||||
mouse = true;
|
mouse = true;
|
||||||
keyMode = "vi";
|
keyMode = "vi";
|
||||||
newSession = true;
|
|
||||||
shell = "${pkgs.zsh}/bin/zsh";
|
shell = "${pkgs.zsh}/bin/zsh";
|
||||||
terminal = "screen-256color";
|
terminal = "screen-256color";
|
||||||
aggressiveResize = true;
|
aggressiveResize = true;
|
||||||
|
sensibleOnTop = false;
|
||||||
|
|
||||||
plugins = [
|
plugins = [
|
||||||
tmux.yank
|
|
||||||
# tmux.tmux-thumbs
|
|
||||||
# {
|
|
||||||
# plugin = tmux.fzf-tmux-url;
|
|
||||||
# extraConfig = ''
|
|
||||||
# set -g @fzf-url-fzf-options '-p 60%,30% --prompt = " " - -border-label=" Open URL "'
|
|
||||||
# set -g @fzf-url-history-limit '2000'
|
|
||||||
# '';
|
|
||||||
# }
|
|
||||||
{
|
{
|
||||||
plugin = tmux.catppuccin.overrideAttrs (_: {
|
plugin = tmux.catppuccin.overrideAttrs (_: {
|
||||||
src = pkgs.fetchFromGitHub {
|
src = pkgs.fetchFromGitHub {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue