@@ -31,13 +31,13 @@ prepend_keymap = [
3131 { on = [ " f" , " z" ], run = " find_do '^z' --smart" , desc = " find ^z" },
3232
3333 # Filter
34- { on = [ " F" ], run = """ filter --smart """ , desc = " Filter" },
35- { on = [ " g" , " d" ], run = """ cd ~/Documents """ , desc = " Goto ~/Documents" },
36- { on = [ " g" , " D" ], run = """ cd ~/Downloads """ , desc = " Goto ~/Downloads" },
37- { on = [ " g" , " r" ], run = """ shell -- ya emit cd "$(git rev-parse --show-toplevel)" """ , for = " unix" , desc = " Goto git root" },
38- { on = [ " g" , " r" ], run = """ shell -- powershell -c "ya emit cd $(git rev-parse --show-toplevel)" """ , for = " windows" , desc = " Goto git root" }, # bracket e.g. [directory] and whitespaces e.g. /direc tory/ supported
39- { on = [ " i" ], run = """ shell --block -- bat --paging always --wrap never "$@" """ , for = " unix" , desc = " Bat open selected" },
40- { on = [ " i" ], run = """ shell --block -- bat --paging always --wrap never %* """ , for = " windows" , desc = " Bat open selected" },
34+ { on = [ " F" ], run = """ filter --smart """ , desc = " Filter" },
35+ { on = [ " g" , " d" ], run = """ cd ~/Documents """ , desc = " Goto ~/Documents" },
36+ { on = [ " g" , " D" ], run = """ cd ~/Downloads """ , desc = " Goto ~/Downloads" },
37+ { on = [ " g" , " r" ], run = """ shell -- ya emit cd "$(git rev-parse --show-toplevel)" """ , for = " unix" , desc = " Goto git root" },
38+ { on = [ " g" , " r" ], run = """ shell -- powershell -noprofile - c "ya emit cd $(git -C %CD% rev-parse --show-toplevel)" """ , for = " windows" , desc = " Goto git root" }, # bracket e.g. [directory] and whitespaces e.g. /direc tory/ supported
39+ { on = [ " i" ], run = """ shell --block -- bat --paging always --wrap never "$@" """ , for = " unix" , desc = " Bat open selected" },
40+ { on = [ " i" ], run = """ shell --block -- bat --paging always --wrap never %* """ , for = " windows" , desc = " Bat open selected" },
4141
4242 # Navigation
4343 { on = [ " J" ], run = " seek 1" , desc = " preview down 3 lines" },
@@ -104,7 +104,7 @@ on = [ "s", "S" ]
104104run = '''
105105 shell
106106 --block
107- -- powershell -noexit -c "set-psreadlineoption -editmode vi; function y() { yazi $PWD --cwd-file=$HOME/.yazi; cd $(cat $HOME/.yazi ); }; "
107+ -- powershell -noexit -c " cd $((echo %CD%) -replace '\[', '`[' -replace '\]', '`]' ); set-psreadlineoption -editmode vi "
108108'''
109109for = " windows"
110110desc = " powershell" # bracket e.g. [directory] and whitespaces e.g. /direc tory/ supported
0 commit comments