adds keybinding for sessionizer

This commit is contained in:
Dennis Schoepf 2025-12-04 19:42:52 +01:00
parent d030d7bca9
commit 88b8e9a350
3 changed files with 17 additions and 3 deletions

View file

@ -5,7 +5,7 @@
enable = true;
functions = {
dbui = /*fish */ ''
dbui = /* fish */ ''
nvim +"DBUI"
'';
ff = ''
@ -51,6 +51,10 @@
command fzf
'';
sessionizer = ''
set -l selected (fd . ~/dev/-t d -d 1 | fzf)
zellij attach --create $selected
'';
nn = ''
# Require a title argument
if test (count $argv) -lt 1
@ -122,6 +126,7 @@
set fish_cursor_default block blink
fish_vi_key_bindings insert
bind ctrl-s sessionizer
# Custom Colorscheme
set --universal fish_color_autosuggestion brblack # autosuggestions

View file

@ -4,7 +4,7 @@
enableFishIntegration = true;
package = null;
settings = {
font-size = 16;
font-size = 17;
font-family = "Victor Mono";
font-style = "SemiBold";
background-opacity = 0.945;

View file

@ -9,7 +9,16 @@ keybinds clear-defaults=true {
bind "r" { SwitchToMode "Resize"; }
bind "m" { SwitchToMode "Move"; }
bind "t" { SwitchToMode "Tab"; }
bind "s" { SwitchToMode "Scroll"; }
bind "/" { SwitchToMode "Scroll"; }
// Plugins
bind "s" {
LaunchOrFocusPlugin "session-manager" {
floating true
move_to_focused_tab true
};
SwitchToMode "Locked"
}
// Global keybindings
bind "c" { NewTab; SwitchToMode "Locked"; }