From 1f85eeed085ff3e6936c22b2dc49c04d72226027 Mon Sep 17 00:00:00 2001 From: Alexander Bell Date: Mon, 19 May 2025 02:40:35 +0200 Subject: [PATCH] quick navigate to Code keybind in yazi --- .bashrc | 4 ++++ .config/environment.d/electron.conf | 1 - .config/yazi/keymap.toml | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) delete mode 100644 .config/environment.d/electron.conf diff --git a/.bashrc b/.bashrc index 0f62fce..bad8685 100644 --- a/.bashrc +++ b/.bashrc @@ -15,6 +15,7 @@ PS1='[\u@\h \W]\$ ' alias l='ls -la' alias lg='lazygit' alias mkdir='mkdir -p' +alias cd='z' # Edit this .bashrc file alias ebrc='edit ~/.bashrc' @@ -194,3 +195,6 @@ unset GREP_OPTIONS # HAS TO BE AT THE END!!!! # Starship bash prompt bar eval "$(starship init bash)" + +# Zoxide +eval "$(zoxide init bash)" diff --git a/.config/environment.d/electron.conf b/.config/environment.d/electron.conf deleted file mode 100644 index 2f737e3..0000000 --- a/.config/environment.d/electron.conf +++ /dev/null @@ -1 +0,0 @@ -ELECTRON_OZONE_PLATFORM_HINT=auto diff --git a/.config/yazi/keymap.toml b/.config/yazi/keymap.toml index 282dac6..1216595 100644 --- a/.config/yazi/keymap.toml +++ b/.config/yazi/keymap.toml @@ -2,3 +2,8 @@ on = [ "g", "i" ] run = "plugin lazygit" desc = "run lazygit" + +[[manager.append_keymap]] +on = [ "g", "p" ] +run = "cd ~/Documents/Programming" +desc = "Navigate to ~/Documents/Programming"