From 983f96a08c6a3b70037279eaf8622a1ed322e315 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Tesa=C5=99?= <33880579+tesar-tech@users.noreply.github.com> Date: Mon, 25 Nov 2024 17:09:07 +0100 Subject: [PATCH] Adds info about opening a directory (in vscode) --- docs/configuration/yazi.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/configuration/yazi.md b/docs/configuration/yazi.md index 14f86190..5e291e98 100644 --- a/docs/configuration/yazi.md +++ b/docs/configuration/yazi.md @@ -228,6 +228,9 @@ edit = [ open = [ { run = 'xdg-open "$@"', desc = "Open" }, ] +open_directory = [ + { run = 'code "$@"', desc = "Open Directory in VSCode" }, +] # ... ``` @@ -282,6 +285,9 @@ rules = [ # Multiple openers for a single rule { name = "*.html", use = [ "open", "edit" ] }, + + # Rule for opening a directory + { mime = "inode/directory", use = "open_directory" }, ] ```