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

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

View file

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

View file

@ -9,7 +9,16 @@ keybinds clear-defaults=true {
bind "r" { SwitchToMode "Resize"; } bind "r" { SwitchToMode "Resize"; }
bind "m" { SwitchToMode "Move"; } bind "m" { SwitchToMode "Move"; }
bind "t" { SwitchToMode "Tab"; } 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 // Global keybindings
bind "c" { NewTab; SwitchToMode "Locked"; } bind "c" { NewTab; SwitchToMode "Locked"; }