From 46a4d7628dc0564aa2940498779f438c586f99b3 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Mon, 28 Jul 2025 11:10:03 +0200 Subject: [PATCH] [Yazi] Add keybinds, start configuring openers --- config/yazi/keymap.toml | 1 + config/yazi/yazi.toml | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/config/yazi/keymap.toml b/config/yazi/keymap.toml index 40eebb9..8e5927a 100644 --- a/config/yazi/keymap.toml +++ b/config/yazi/keymap.toml @@ -19,6 +19,7 @@ prepend_keymap = [ { on = [ "g", "c", "k" ], run = "cd ~/projects/active/dotfiles/config/kitty", desc = "Go to kitty config" }, { on = [ "g", "c", "r" ], run = "cd ~/projects/active/dotfiles/config/rofi", desc = "Go to rofi config" }, { on = [ "g", "c", "s" ], run = "cd ~/projects/active/dotfiles/scripts", desc = "Go to script" }, + { on = [ "g", "c", "d" ], run = "cd ~/projects/active/dotfiles", desc = "Go to dotfiles" }, { on = [ "g", "c", "n" ], run = "cd ~/projects/active/nvim", desc = "Go to NeoVim config" }, { on = [ "g", "n" ], run = "cd ~/NextCloud/Documents/", desc = "Go to NextCloud Documents" }, { on = [ "g", "w" ], run = "cd ~/NextCloud/Wallpapers", desc = "Go to Wallpapers" }, diff --git a/config/yazi/yazi.toml b/config/yazi/yazi.toml index 0225ecd..c73e243 100644 --- a/config/yazi/yazi.toml +++ b/config/yazi/yazi.toml @@ -8,3 +8,9 @@ prepend_previewers = [ { mime = "application/x-rar", run = "ouch" }, { mime = "application/x-xz", run = "ouch" }, ] + +[opener] +open = [ + { run = 'xdg-open "$@"', desc = "Open" }, + { run = 'okular "$@"', desc = "Open in Okular" }, +]