Tmux stuff
This commit is contained in:
parent
84529916c7
commit
c6be703e8b
3 changed files with 36 additions and 42 deletions
|
@ -90,9 +90,9 @@
|
||||||
# using good ol' fzf until skim sucks less out of the box I guess
|
# using good ol' fzf until skim sucks less out of the box I guess
|
||||||
enable = true;
|
enable = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
defaultCommand = "fd --type f";
|
# defaultCommand = "fd --type f";
|
||||||
defaultOptions = ["--height 40%"];
|
# defaultOptions = ["--height 40%"];
|
||||||
fileWidgetOptions = ["--preview 'head {}'"];
|
# fileWidgetOptions = ["--preview 'head {}'"];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.nix-index = {
|
programs.nix-index = {
|
||||||
|
|
|
@ -11,6 +11,7 @@
|
||||||
unbind C-b
|
unbind C-b
|
||||||
set -g prefix C-s
|
set -g prefix C-s
|
||||||
|
|
||||||
|
# enable tmux to support helix colors
|
||||||
set -g default-terminal "tmux-256color"
|
set -g default-terminal "tmux-256color"
|
||||||
set -g terminal-overrides ",xterm-256color:RGB"
|
set -g terminal-overrides ",xterm-256color:RGB"
|
||||||
|
|
||||||
|
@ -43,9 +44,7 @@
|
||||||
bind -n C-t new-window
|
bind -n C-t new-window
|
||||||
|
|
||||||
# tab nav is the default p and n binds
|
# tab nav is the default p and n binds
|
||||||
# window switcher is the default w bind
|
# window and session switcher is the default w bind
|
||||||
|
|
||||||
bind s run "tmux split-window -l 12 'tmuxswitcher'" # session switcher
|
|
||||||
|
|
||||||
set -g mouse on
|
set -g mouse on
|
||||||
set -g escape-time 0
|
set -g escape-time 0
|
||||||
|
|
|
@ -152,11 +152,6 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
config.keys = {
|
config.keys = {
|
||||||
{
|
|
||||||
key = 'j',
|
|
||||||
mods = 'CTRL',
|
|
||||||
action = wezterm.action.ActivatePaneDirection'Down'
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
key = 'Insert',
|
key = 'Insert',
|
||||||
mods = 'SHIFT',
|
mods = 'SHIFT',
|
||||||
|
@ -172,40 +167,40 @@
|
||||||
mods = 'CTRL|SHIFT',
|
mods = 'CTRL|SHIFT',
|
||||||
action = wezterm.action.SpawnTab'CurrentPaneDomain'
|
action = wezterm.action.SpawnTab'CurrentPaneDomain'
|
||||||
},
|
},
|
||||||
{
|
-- {
|
||||||
key = 'h',
|
-- key = 'h',
|
||||||
mods = 'CTRL',
|
-- mods = 'CTRL',
|
||||||
action = wezterm.action.ActivatePaneDirection'Left'
|
-- action = wezterm.action.ActivatePaneDirection'Left'
|
||||||
},
|
-- },
|
||||||
{
|
-- {
|
||||||
key = 'l',
|
-- key = 'l',
|
||||||
mods = 'CTRL',
|
-- mods = 'CTRL',
|
||||||
action = wezterm.action.ActivatePaneDirection'Right'
|
-- action = wezterm.action.ActivatePaneDirection'Right'
|
||||||
},
|
-- },
|
||||||
{
|
-- {
|
||||||
key = 'k',
|
-- key = 'k',
|
||||||
mods = 'CTRL',
|
-- mods = 'CTRL',
|
||||||
action = wezterm.action.ActivatePaneDirection'Up'
|
-- action = wezterm.action.ActivatePaneDirection'Up'
|
||||||
},
|
-- },
|
||||||
{
|
-- {
|
||||||
key = 'j',
|
-- key = 'j',
|
||||||
mods = 'CTRL',
|
-- mods = 'CTRL',
|
||||||
action = wezterm.action.ActivatePaneDirection'Down'
|
-- action = wezterm.action.ActivatePaneDirection'Down'
|
||||||
},
|
-- },
|
||||||
|
-- {
|
||||||
|
-- key = 'j',
|
||||||
|
-- mods = 'CTRL|SHIFT',
|
||||||
|
-- action = wezterm.action.SplitVertical{domain='CurrentPaneDomain'}
|
||||||
|
-- },
|
||||||
|
-- {
|
||||||
|
-- key = 'l',
|
||||||
|
-- mods = 'CTRL|SHIFT',
|
||||||
|
-- action = wezterm.action.SplitHorizontal{domain='CurrentPaneDomain'}
|
||||||
|
-- },
|
||||||
{
|
{
|
||||||
key = 'p',
|
key = 'p',
|
||||||
mods = 'CTRL|SHIFT',
|
mods = 'CTRL|SHIFT',
|
||||||
action = wezterm.action.SplitVertical{domain='CurrentPaneDomain'}
|
action = wezterm.action.ActivateCommandPalette
|
||||||
},
|
|
||||||
{
|
|
||||||
key = 'j',
|
|
||||||
mods = 'CTRL|SHIFT',
|
|
||||||
action = wezterm.action.SplitVertical{domain='CurrentPaneDomain'}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
key = 'l',
|
|
||||||
mods = 'CTRL|SHIFT',
|
|
||||||
action = wezterm.action.SplitHorizontal{domain='CurrentPaneDomain'}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
key = 'l',
|
key = 'l',
|
||||||
|
|
Loading…
Reference in a new issue