Skip to content

Commit 0697e2d

Browse files
Braden1996claude
andcommitted
Bind tab to open yazi when command line is empty
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent c583b42 commit 0697e2d

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

dot_config/fish/conf.d/70-keybindings.fish

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22
# Key Bindings
33
# =============================================================================
44

5+
function __braden_tab_or_yazi
6+
if test -z (string trim -- (commandline))
7+
yazi_choose
8+
else
9+
commandline -f complete
10+
end
11+
end
12+
513
function __braden_up_or_history
614
if commandline -P
715
commandline -f up-line
@@ -72,6 +80,7 @@ end
7280
if status is-interactive
7381
bind \r __braden_magic_enter
7482
bind \e\e __braden_toggle_sudo
83+
bind \t __braden_tab_or_yazi
7584
bind \cy yazi_choose
7685
bind super-c fish_clipboard_copy
7786
bind left '__braden_move_or_collapse_selection start backward-char'

0 commit comments

Comments
 (0)