zsh:keys: Change one dir up on ^U
This commit is contained in:
@@ -120,11 +120,20 @@ function cd-forward() {
|
|||||||
}
|
}
|
||||||
zle -N cd-forward
|
zle -N cd-forward
|
||||||
|
|
||||||
|
function cd-up {
|
||||||
|
pushd -q ..
|
||||||
|
redraw-prompt
|
||||||
|
}
|
||||||
|
zle -N cd-up
|
||||||
|
|
||||||
# cycle through `dirs` with ^o and ^i similar to the jumplist in vim.
|
# cycle through `dirs` with ^o and ^i similar to the jumplist in vim.
|
||||||
# Need AUTO_PUSHD (see options.zsh)
|
# Need AUTO_PUSHD (see options.zsh)
|
||||||
bindkey '^O' cd-backward
|
bindkey '^O' cd-backward
|
||||||
bindkey '^[[105;5u' cd-forward # ^I
|
bindkey '^[[105;5u' cd-forward # ^I
|
||||||
|
|
||||||
|
# move one directory up with ^U (mnemonic: 'Up')
|
||||||
|
bindkey '^U' cd-up
|
||||||
|
|
||||||
# Open file in EDITOR selected with fzf
|
# Open file in EDITOR selected with fzf
|
||||||
function edit-fuzzy-file {
|
function edit-fuzzy-file {
|
||||||
local fzf_fallback="find . -type f"
|
local fzf_fallback="find . -type f"
|
||||||
|
|||||||
Reference in New Issue
Block a user