Keymap for "open" using a specific opener #3655
Unanswered
FloppyDisco
asked this question in
1. Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What system are you running Yazi on?
macOS
What terminal are you running Yazi in?
ghostty
yazi --debugoutputYazi Version: 26.1.22 (Crates.io 2026-01-31) Debug : false Triple : aarch64-apple-darwin (macos-aarch64) Rustc : 1.92.0 (ded5c06c 2025-12-08) Ya Version: 26.1.22 (Crates.io 2026-01-31) Config Init : /Users/.../.config/yazi/init.lua (90 chars) Yazi : /Users/.../.config/yazi/yazi.toml (6439 chars) Keymap : /Users/.../.config/yazi/keymap.toml (10983 chars) Theme : /Users/.../.config/yazi/theme.toml (No such file or directory (os error 2)) VFS : /Users/.../.config/yazi/vfs.toml (No such file or directory (os error 2)) Package : /Users/.../.config/yazi/package.toml (122 chars) Dark/light flavor: "" / "" Emulator TERM : Some("xterm-ghostty") TERM_PROGRAM : Some("ghostty") TERM_PROGRAM_VERSION: Some("1.2.3") Brand.from_env : Some(Ghostty) Emulator.detect : Emulator { kind: Left(Ghostty), version: "ghostty 1.2.3", light: false, csi_16t: (29, 70), force_16t: false } Adapter Adapter.matches : Kgp Dimension.available: Dimension { rows: 20, columns: 82, width: 2378, height: 1400 } Desktop XDG_SESSION_TYPE : None WAYLAND_DISPLAY : None DISPLAY : None SWAYSOCK : None HYPRLAND_INSTANCE_SIGNATURE: None WAYFIRE_SOCKET : None SSH shared.in_ssh_connection: false WSL WSL: false Variables SHELL : Some("/bin/zsh") EDITOR : None VISUAL : None YAZI_FILE_ONE : None YAZI_CONFIG_HOME : None YAZI_ZOXIDE_OPTS : None FZF_DEFAULT_OPTS : Some("--height 40% --reverse --border --bind=alt-up:first --bind=alt-down:last --bind=change:first") FZF_DEFAULT_COMMAND: Some("fd --type f --strip-cwd-prefix --hidden --follow --exclude .git;") Text Opener default : Some(OpenerRule { run: "micro %s", block: true, orphan: false, desc: "Micro", for: None, spread: true }) block-create: Some(OpenerRule { run: "micro %s", block: true, orphan: false, desc: "Micro", for: None, spread: true }) block-rename: Some(OpenerRule { run: "micro %s", block: true, orphan: false, desc: "Micro", for: None, spread: true }) Multiplexers TMUX : false tmux version : tmux 3.5a tmux build flags : enable-sixel=Unknown ZELLIJ_SESSION_NAME: None Zellij version : No such file or directory (os error 2) Dependencies file : 5.41 ueberzugpp : No such file or directory (os error 2) ffmpeg/ffprobe: No such file or directory (os error 2) / No such file or directory (os error 2) pdftoppm : No such file or directory (os error 2) magick : No such file or directory (os error 2) fzf : 0.65.2 fd/fdfind : 10.2.0 / No such file or directory (os error 2) rg : 14.1.1 chafa : No such file or directory (os error 2) zoxide : 0.9.7 7zz/7z : No such file or directory (os error 2) / No such file or directory (os error 2) resvg : No such file or directory (os error 2) jq : 1.7.1 Clipboard wl-copy/paste: No such file or directory (os error 2) / No such file or directory (os error 2) xclip : No such file or directory (os error 2) xsel : No such file or directory (os error 2) Routine `file -bL --mime-type`: text/plainDescribe the question
I'm wondering if there is a way to pass what opener you want to use from a keybinding directly to the open commnand?
i have the following set in
keymap.tomlso
<Enter>callsopenand that automatically determines which[opener]to use based on my rules inyazi.tomlbut i would like my keybind
<D-o>to automatically select my[opener]aszed.so i'm looking for something like
run = "open zed"orrun = "open --opener=zed"neither of these actually work, and i'm not seeing anything in the docks about how one might do this?
i can open interactively with
<A-o>and select the opener, just thought it would be nice to be able to configure this.i just downloaded, so far i am a big fan! very cool!
Anything else?
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions