From daa92f9f322c36f68c1498d33f669dc06f446b97 Mon Sep 17 00:00:00 2001 From: vepain <32708963+vepain@users.noreply.github.com> Date: Wed, 15 Oct 2025 14:39:22 +0200 Subject: [PATCH 1/2] Update README.md Suggest another key binding which is not in collision with the default key bindings --- README.md | 34 +++++++++++++++++++++++++++------- 1 file changed, 27 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f28b131..91d0283 100644 --- a/README.md +++ b/README.md @@ -1,32 +1,52 @@ # open-in-code.yazi + Plugin for [Yazi](https://github.com/sxyazi/yazi) to open the current folder in VSCode ## Dependencies + Make sure [VSCode](https://code.visualstudio.com) is installed and in your `PATH`. You can use the `Shell Command: Install 'code' command in PATH` pallette action to do so if needed. ## Installation ### Using `ya pkg` -``` - ya pkg add arxae/open-in-code + +```sh +ya pkg add arxae/open-in-code ``` ### Manual -**Linux/macOS** + +#### Linux/macOS + ``` git clone https://github.com/arxae/open-in-code.yazi.git ~/.config/yazi/plugins/open-in-code.yazi ``` -**Windows** + +#### Windows + ``` git clone https://github.com/arxae/open-in-code.yazi.git %AppData%\yazi\config\plugins\open-in-code.yazi ``` + ## Configuration -add this to your **keymap.toml** file + +You need to asociate this plugin with a key binding. + +We suggest you associate this plugin with the `g => v` key binding. +To do so, add the following code to your `keymap.toml` file: + ```toml [[mgr.prepend_keymap]] -on = [ "g", "c" ] +on = [ "g", "v" ] run = "plugin open-in-code" desc = "open folder in vscode" ``` -you can customize the keybinding however you like. Please refer to the [keymap.toml](https://yazi-rs.github.io/docs/configuration/keymap) documentation + +>[!Note] +> You can customize the keybinding however you like. +> +> Please refer to the [keymap.toml](https://yazi-rs.github.io/docs/configuration/keymap) documentation + +>[!Warning] +> The key binding `g => c` is already associated with the action `Go to ~/.config` by default, see [the default `keymap.toml` file](https://github.com/sxyazi/yazi/blob/shipped/yazi-config/preset/keymap-default.toml)) From 94339086166868e6224e6ecaf3335193af636050 Mon Sep 17 00:00:00 2001 From: vepain <32708963+vepain@users.noreply.github.com> Date: Wed, 15 Oct 2025 14:41:31 +0200 Subject: [PATCH 2/2] Update README.md Fix typo Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com> --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 91d0283..4ea8345 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ git clone https://github.com/arxae/open-in-code.yazi.git %AppData%\yazi\config\p ## Configuration -You need to asociate this plugin with a key binding. +You need to associate this plugin with a key binding. We suggest you associate this plugin with the `g => v` key binding. To do so, add the following code to your `keymap.toml` file: