yazi: update keybinds

This commit is contained in:
2026-04-26 18:42:59 +02:00
parent ac91f71a92
commit fff6a726d8
2 changed files with 468 additions and 465 deletions
+10 -7
View File
@@ -180,17 +180,20 @@ if (( $+commands[git] )); then
print -r -- "$repo"
}
gc() {
local repo
repo=$(uy_git_repo_from_clipboard) || return 1
git clone "$repo"
}
# gc() {
# local repo
# repo=$(uy_git_repo_from_clipboard) || return 1
# git clone "$repo"
# }
pingo() {
cd "$HOME/Repositories/Uni" || return 1
builtin cd "$HOME/Repositories/Uni" || return 1
local repo
repo=$(uy_git_repo_from_clipboard) || return 1
local dir_name="${repo:t:r}"
local course="${${dir_name%%[^[:lower:]]*}:u}"
mkdir -p "$course"
builtin cd "$course" || return 1
if [[ ! -d "$dir_name" ]]; then
git clone "$repo" || return 1
fi
@@ -201,7 +204,7 @@ if (( $+commands[git] )); then
disown
else
echo "Opening method missing or invalid"
cd "$dir_name"
builtin cd "$dir_name"
fi
}
fi
+13 -13
View File
@@ -78,8 +78,8 @@ keymap = [
], desc = "Toggle the current selection state" },
{ on = "v", run = "toggle_all", desc = "Enter visual mode (selection mode)" },
{ on = "V", run = "visual_mode --unset", desc = "Enter visual mode (unset mode)" },
# { on = "<C-a>", run = "select_all --state=true", desc = "Select all files" },
# { on = "<C-r>", run = "select_all --state=none", desc = "Inverse selection of all files" },
{ on = "<C-a>", run = "toggle_all --state=true", desc = "Select all files" },
{ on = "<C-r>", run = "toggle_all", desc = "Inverse selection of all files" },
# Find
{ on = "<C-f>", run = "plugin fzf", desc = "Jump to a directory or reveal a file using fzf" },
@@ -360,9 +360,9 @@ keymap = [
[spot]
keymap = [
# Navigation
{ on = "u", run = "arrow -1", desc = "Move up" },
{ on = "k", run = "arrow -1", desc = "Move up" },
{ on = "<Up>", run = "arrow -1", desc = "Move up" },
{ on = "e", run = "arrow 1", desc = "Move down" },
{ on = "j", run = "arrow 1", desc = "Move down" },
{ on = "<Down>", run = "arrow 1", desc = "Move down" },
# Close
@@ -385,8 +385,8 @@ keymap = [
{ on = "<C-c>", run = "close", desc = "Close task manager" },
{ on = "w", run = "close", desc = "Close task manager" },
{ on = "u", run = "arrow -1", desc = "Move cursor up" },
{ on = "e", run = "arrow 1", desc = "Move cursor down" },
{ on = "k", run = "arrow -1", desc = "Move cursor up" },
{ on = "j", run = "arrow 1", desc = "Move cursor down" },
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" },
@@ -407,8 +407,8 @@ keymap = [
{ on = "<C-c>", run = "close", desc = "Cancel selection" },
{ on = "<Enter>", run = "close --submit", desc = "Submit the selection" },
{ on = "u", run = "arrow -1", desc = "Move cursor up" },
{ on = "e", run = "arrow 1", desc = "Move cursor down" },
{ on = "k", run = "arrow -1", desc = "Move cursor up" },
{ on = "j", run = "arrow 1", desc = "Move cursor down" },
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" },
@@ -499,15 +499,15 @@ keymap = [
{ on = "P", run = "paste --before", desc = "Paste the copied characters before the cursor" },
# Undo/Redo
{ on = "l", run = "undo", desc = "Undo the last operation" },
{ on = "<C-r>", run = "redo", desc = "Redo the last operation" },
{ on = "u", run = "undo", desc = "Undo the last operation" },
{ on = "U", run = "redo", desc = "Redo the last operation" },
# Help
{ on = "~", run = "help", desc = "Open help" },
{ on = "<F1>", run = "help", desc = "Open help" },
]
[completion]
[cmp]
keymap = [
{ on = "<C-c>", run = "close", desc = "Cancel completion" },
@@ -537,8 +537,8 @@ keymap = [
{ on = "<C-c>", run = "close", desc = "Hide the help" },
# Navigation
{ on = "u", run = "arrow -1", desc = "Move cursor up" },
{ on = "e", run = "arrow 1", desc = "Move cursor down" },
{ on = "k", run = "arrow -1", desc = "Move cursor up" },
{ on = "j", run = "arrow 1", desc = "Move cursor down" },
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" },