Replies: 1 comment
-
|
Use your rules as [open]
prepend_rules = [
{ mime = "text/*", use = "edit" },
{ url = "*.xml", use = "browser" },
] |
Beta Was this translation helpful? Give feedback.
0 replies
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?
Windows
What terminal are you running Yazi in?
wezterm 20240203-110809-5046fc22
yazi --debugoutputYazi Version: 26.1.4 (3c39a32 2026-01-04) Debug : false Triple : x86_64-pc-windows-msvc (windows-x86_64) Rustc : 1.92.0 (ded5c06c 2025-12-08) Ya Version: 26.1.4 (3c39a32 2026-01-04) Config Yazi : C:\Users\wangx\AppData\Roaming\yazi\config\yazi.toml (400 chars) Keymap : C:\Users\wangx\AppData\Roaming\yazi\config\keymap.toml (652 chars) Theme : C:\Users\wangx\AppData\Roaming\yazi\config\theme.toml (28 chars) VFS : C:\Users\wangx\AppData\Roaming\yazi\config\vfs.toml (The system cannot find the file specified. (os error 2)) Package : C:\Users\wangx\AppData\Roaming\yazi\config\package.toml (217 chars) Dark/light flavor: "dracula" / "" Emulator TERM : Some("xterm-256color") TERM_PROGRAM : Some("WezTerm") TERM_PROGRAM_VERSION: Some("20240203-110809-5046fc22") Brand.from_env : Some(WezTerm) Emulator.detect : Emulator { kind: Left(WezTerm), version: "", light: false, csi_16t: (0, 0), force_16t: false } Adapter Adapter.matches : Iip Dimension.available: Dimension { rows: 56, columns: 200, width: 0, height: 0 } 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 : None EDITOR : None VISUAL : None YAZI_FILE_ONE : Some("C:\\Users\\wangx\\scoop\\apps\\git\\current\\usr\\bin\\file.exe") YAZI_CONFIG_HOME : None YAZI_ZOXIDE_OPTS : None FZF_DEFAULT_OPTS : None FZF_DEFAULT_COMMAND: None Text Opener default : Some(OpenerRule { run: "\"C:\\Users\\wangx\\scoop\\apps\\vscode\\current\\Code.exe\" %s", block: false, orphan: true, desc: "vscode", for: None, spread: true }) block-create: None block-rename: None Multiplexers TMUX : false tmux version : program not found tmux build flags : enable-sixel=Unknown ZELLIJ_SESSION_NAME: None Zellij version : program not found Dependencies file : 5.46 ueberzugpp : program not found ffmpeg/ffprobe: 8.0.1 / 8.0.1 pdftoppm : 25.12.0 magick : program not found fzf : 0.67.0 fd/fdfind : 10.3.0 / program not found rg : 15.1.0 chafa : program not found zoxide : 0.9.8 7zz/7z : program not found / 25.00 resvg : program not found jq : program not found Clipboard wl-copy/paste: program not found / program not found xclip : program not found xsel : program not found 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
For files whose mime type is text, I configure yazi to open them with vscode. For ".xml" files, besides vscode, I expect one more option, i.e., open with browser. The following is my "yazi.toml". However, there is no "browser" option when I open with a ".xml" file.
Anything else?
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions