You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yazi
Version: 25.5.31 (b65a880 2025-05-30)
Debug :false
Triple : x86_64-unknown-linux-gnu (linux-x86_64)
Rustc : 1.87.0 (17067e9a 2025-05-09)
Ya
Version: 25.5.31 (b65a880 2025-05-30)
Emulator
TERM : Some("xterm-256color")
TERM_PROGRAM : None
TERM_PROGRAM_VERSION: None
Brand.from_env : None
Emulator.detect : Emulator { kind: Right(Unknown { kgp: false, sixel: true }), light: false, csi_16t: (10, 20), force_16t: true }
Adapter
Adapter.matches : Sixel
Dimension.available: Dimension { rows: 35, columns: 124, width: 0, height: 0 }
Desktop
XDG_SESSION_TYPE : None
WAYLAND_DISPLAY : Some("wayland-0")
DISPLAY : Some(":0")
SWAYSOCK : None
HYPRLAND_INSTANCE_SIGNATURE: None
WAYFIRE_SOCKET : None
SSH
shared.in_ssh_connection: false
WSL
WSL: false
Variables
SHELL : Some("/bin/bash")
EDITOR : Some("nano")
VISUAL : Some("nano")
YAZI_FILE_ONE : None
YAZI_CONFIG_HOME: None
YAZI_ZOXIDE_OPTS: None
FZF_DEFAULT_OPTS: Some("--bind ctrl-f:page-down,ctrl-b:page-up,F2:toggle-preview --height=75% --layout=reverse --info=inline")
Text Opener
default : Some(OpenerRule { run: "${EDITOR:-vi}\"$@\"", block: true, orphan: false, desc: "$EDITOR", for: None, spread: true })
block-create: Some(OpenerRule { run: "${EDITOR:-vi}\"$@\"", block: true, orphan: false, desc: "$EDITOR", for: None, spread: true })
block-rename: Some(OpenerRule { run: "${EDITOR:-vi}\"$@\"", block: true, orphan: false, desc: "$EDITOR", for: None, spread: true })
Multiplexers
TMUX :false
tmux version : 3.4
tmux build flags : enable-sixel=Unknown
ZELLIJ_SESSION_NAME: None
Zellij version : No such file or directory (os error 2)
Dependencies
file : 5.45
ueberzugpp : No such file or directory (os error 2)
ffmpeg/ffprobe: 6.1.1-3 / 6.1.1-3
pdftoppm : 24.02.0
magick : No such file or directory (os error 2)
fzf : 0.66.1
fd/fdfind : No such file or directory (os error 2) / 9.0.0
rg : 14.1.0
chafa : No such file or directory (os error 2)
zoxide : 0.9.3
7zz/7z : No such file or directory (os error 2) / 23.01
resvg : No such file or directory (os error 2)
jq : 1.7
Clipboard
wl-copy/paste: 2.2.1 / 2.2.1
xclip : 0.13
xsel : No such file or directory (os error 2)
Routine
`file -bL --mime-type`: text/plain
See https://yazi-rs.github.io/docs/plugins/overview#debugging on how to enable logging or debug runtime errors.
Describe the question
Newbie question. I just cant seem to get it right, I must be making some fundamental mistake. I simply want to:
Create a keybinding, say ctrl-d or ctrl-q, to open the file in vs code.
I do have it working so that enter either navigates into the directory, or opens the file in nano. But I would also like to have the option to open it in vs code.
I cant seem to get any binding to work. Sorry for newbie question.
After messing about and giving up, my keymap.toml franken-config looks like this:
[[mgr.prepend_keymap]]
on = "<Enter>"
run = "plugin smart-enter"
desc = "Enter the child directory, or open the file"
# on ctrl+enter, open the file using code editor
[[mgr.prepend_keymap]]
on = "C-q"
run = 'echo "C-d pressed"; sleep 10'
# run = "code %*"
block = true
desc = "Enter the child directory, or open the file"
# run = 'code "$@"', block = true
# [[mgr.prepend_keymap]]
# on = "<Enter>"
# run = "enter --smart"
# desc = "Smart enter: open file or enter directory"
[[mgr.prepend_keymap]]
on = ["g", "d"]
run = "cd ~/Downloads"
desc = "Go to Downloads folder"
# YAZI CONFIG TODO:
# yazI: bind f2 to rename
[[mgr.prepend_keymap]]
on = "f2"
run = "rename"
desc = "Rename file or directory"
I've tried different things, as you can see in the fragments, I just cant get it to do anything at all, it seems...
I have read the docs forwards and backwards, googled and read blogs, but... I must be missing something fundamental.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
What system are you running Yazi on?
Windows WSL
What terminal are you running Yazi in?
Windows Terminal - WSL2 - Ubuntu 24
yazi --debugoutputYazi Version: 25.5.31 (b65a880 2025-05-30) Debug : false Triple : x86_64-unknown-linux-gnu (linux-x86_64) Rustc : 1.87.0 (17067e9a 2025-05-09) Ya Version: 25.5.31 (b65a880 2025-05-30) Emulator TERM : Some("xterm-256color") TERM_PROGRAM : None TERM_PROGRAM_VERSION: None Brand.from_env : None Emulator.detect : Emulator { kind: Right(Unknown { kgp: false, sixel: true }), light: false, csi_16t: (10, 20), force_16t: true } Adapter Adapter.matches : Sixel Dimension.available: Dimension { rows: 35, columns: 124, width: 0, height: 0 } Desktop XDG_SESSION_TYPE : None WAYLAND_DISPLAY : Some("wayland-0") DISPLAY : Some(":0") SWAYSOCK : None HYPRLAND_INSTANCE_SIGNATURE: None WAYFIRE_SOCKET : None SSH shared.in_ssh_connection: false WSL WSL: false Variables SHELL : Some("/bin/bash") EDITOR : Some("nano") VISUAL : Some("nano") YAZI_FILE_ONE : None YAZI_CONFIG_HOME: None YAZI_ZOXIDE_OPTS: None FZF_DEFAULT_OPTS: Some("--bind ctrl-f:page-down,ctrl-b:page-up,F2:toggle-preview --height=75% --layout=reverse --info=inline") Text Opener default : Some(OpenerRule { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for: None, spread: true }) block-create: Some(OpenerRule { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for: None, spread: true }) block-rename: Some(OpenerRule { run: "${EDITOR:-vi} \"$@\"", block: true, orphan: false, desc: "$EDITOR", for: None, spread: true }) Multiplexers TMUX : false tmux version : 3.4 tmux build flags : enable-sixel=Unknown ZELLIJ_SESSION_NAME: None Zellij version : No such file or directory (os error 2) Dependencies file : 5.45 ueberzugpp : No such file or directory (os error 2) ffmpeg/ffprobe: 6.1.1-3 / 6.1.1-3 pdftoppm : 24.02.0 magick : No such file or directory (os error 2) fzf : 0.66.1 fd/fdfind : No such file or directory (os error 2) / 9.0.0 rg : 14.1.0 chafa : No such file or directory (os error 2) zoxide : 0.9.3 7zz/7z : No such file or directory (os error 2) / 23.01 resvg : No such file or directory (os error 2) jq : 1.7 Clipboard wl-copy/paste: 2.2.1 / 2.2.1 xclip : 0.13 xsel : No such file or directory (os error 2) Routine `file -bL --mime-type`: text/plain See https://yazi-rs.github.io/docs/plugins/overview#debugging on how to enable logging or debug runtime errors.Describe the question
Newbie question. I just cant seem to get it right, I must be making some fundamental mistake. I simply want to:
Create a keybinding, say ctrl-d or ctrl-q, to open the file in vs code.
I do have it working so that enter either navigates into the directory, or opens the file in nano. But I would also like to have the option to open it in vs code.
I cant seem to get any binding to work. Sorry for newbie question.
After messing about and giving up, my keymap.toml franken-config looks like this:
I've tried different things, as you can see in the fragments, I just cant get it to do anything at all, it seems...
I have read the docs forwards and backwards, googled and read blogs, but... I must be missing something fundamental.
Thanks for an awesome tool!!
BR! /marcus
Anything else?
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions