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" print -r -- "$repo"
} }
gc() { # gc() {
local repo # local repo
repo=$(uy_git_repo_from_clipboard) || return 1 # repo=$(uy_git_repo_from_clipboard) || return 1
git clone "$repo" # git clone "$repo"
} # }
pingo() { pingo() {
cd "$HOME/Repositories/Uni" || return 1 builtin cd "$HOME/Repositories/Uni" || return 1
local repo local repo
repo=$(uy_git_repo_from_clipboard) || return 1 repo=$(uy_git_repo_from_clipboard) || return 1
local dir_name="${repo:t:r}" 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 if [[ ! -d "$dir_name" ]]; then
git clone "$repo" || return 1 git clone "$repo" || return 1
fi fi
@@ -201,7 +204,7 @@ if (( $+commands[git] )); then
disown disown
else else
echo "Opening method missing or invalid" echo "Opening method missing or invalid"
cd "$dir_name" builtin cd "$dir_name"
fi fi
} }
fi fi
+13 -13
View File
@@ -78,8 +78,8 @@ keymap = [
], desc = "Toggle the current selection state" }, ], desc = "Toggle the current selection state" },
{ on = "v", run = "toggle_all", desc = "Enter visual mode (selection mode)" }, { on = "v", run = "toggle_all", desc = "Enter visual mode (selection mode)" },
{ on = "V", run = "visual_mode --unset", desc = "Enter visual mode (unset 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-a>", run = "toggle_all --state=true", desc = "Select all files" },
# { on = "<C-r>", run = "select_all --state=none", desc = "Inverse selection of all files" }, { on = "<C-r>", run = "toggle_all", desc = "Inverse selection of all files" },
# Find # Find
{ on = "<C-f>", run = "plugin fzf", desc = "Jump to a directory or reveal a file using fzf" }, { on = "<C-f>", run = "plugin fzf", desc = "Jump to a directory or reveal a file using fzf" },
@@ -360,9 +360,9 @@ keymap = [
[spot] [spot]
keymap = [ keymap = [
# Navigation # 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 = "<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" }, { on = "<Down>", run = "arrow 1", desc = "Move down" },
# Close # Close
@@ -385,8 +385,8 @@ keymap = [
{ on = "<C-c>", run = "close", desc = "Close task manager" }, { on = "<C-c>", run = "close", desc = "Close task manager" },
{ on = "w", run = "close", desc = "Close task manager" }, { on = "w", run = "close", desc = "Close task manager" },
{ on = "u", run = "arrow -1", desc = "Move cursor up" }, { on = "k", run = "arrow -1", desc = "Move cursor up" },
{ on = "e", run = "arrow 1", desc = "Move cursor down" }, { on = "j", run = "arrow 1", desc = "Move cursor down" },
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" }, { on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" }, { on = "<Down>", run = "arrow 1", desc = "Move cursor down" },
@@ -407,8 +407,8 @@ keymap = [
{ on = "<C-c>", run = "close", desc = "Cancel selection" }, { on = "<C-c>", run = "close", desc = "Cancel selection" },
{ on = "<Enter>", run = "close --submit", desc = "Submit the selection" }, { on = "<Enter>", run = "close --submit", desc = "Submit the selection" },
{ on = "u", run = "arrow -1", desc = "Move cursor up" }, { on = "k", run = "arrow -1", desc = "Move cursor up" },
{ on = "e", run = "arrow 1", desc = "Move cursor down" }, { on = "j", run = "arrow 1", desc = "Move cursor down" },
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" }, { on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" }, { 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" }, { on = "P", run = "paste --before", desc = "Paste the copied characters before the cursor" },
# Undo/Redo # Undo/Redo
{ on = "l", run = "undo", desc = "Undo the last operation" }, { on = "u", run = "undo", desc = "Undo the last operation" },
{ on = "<C-r>", run = "redo", desc = "Redo the last operation" }, { on = "U", run = "redo", desc = "Redo the last operation" },
# Help # Help
{ on = "~", run = "help", desc = "Open help" }, { on = "~", run = "help", desc = "Open help" },
{ on = "<F1>", run = "help", desc = "Open help" }, { on = "<F1>", run = "help", desc = "Open help" },
] ]
[completion] [cmp]
keymap = [ keymap = [
{ on = "<C-c>", run = "close", desc = "Cancel completion" }, { on = "<C-c>", run = "close", desc = "Cancel completion" },
@@ -537,8 +537,8 @@ keymap = [
{ on = "<C-c>", run = "close", desc = "Hide the help" }, { on = "<C-c>", run = "close", desc = "Hide the help" },
# Navigation # Navigation
{ on = "u", run = "arrow -1", desc = "Move cursor up" }, { on = "k", run = "arrow -1", desc = "Move cursor up" },
{ on = "e", run = "arrow 1", desc = "Move cursor down" }, { on = "j", run = "arrow 1", desc = "Move cursor down" },
{ on = "<Up>", run = "arrow -1", desc = "Move cursor up" }, { on = "<Up>", run = "arrow -1", desc = "Move cursor up" },
{ on = "<Down>", run = "arrow 1", desc = "Move cursor down" }, { on = "<Down>", run = "arrow 1", desc = "Move cursor down" },