Replies: 3 comments
-
|
Well after chasing around with the AI for 5 days and several hours, finally came up with a working solutiion. It appears the URL was the change needed. Where's the humans when ya need them... LOL 🤪 P.S. I love yazi, thanks for this amazing file manager! 👍 |
Beta Was this translation helpful? Give feedback.
-
|
But now I don't know if I'm running into a bug, because when I have highlighted the .ebuild, in the right side pane it says; Here is the content of one of the ebuilds I am testing this on; Now f I commented #EAPI=8 out then I can see the preview.... This is my yazi.toml I really need some help here please... THANKS 👍 |
Beta Was this translation helpful? Give feedback.
-
|
I came up with the help of AI a working solution for gentoo ebuild and manifest files. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
What system are you running Yazi on?
Gentoo niri Wayland
What terminal are you running Yazi in?
kitty 0.45.0
yazi --debugoutputyazi --debug Yazi Version: 26.1.22 (VERGEN_IDEMPOTENT_OUTPUT 2026-04-01) Debug : false Triple : x86_64-unknown-linux-gnu (linux-x86_64) Rustc : 1.92.0 (ded5c06c 2025-12-08) Ya Version: 26.1.22 (VERGEN_IDEMPOTENT_OUTPUT 2026-04-01) Config Init : /home/foo/.config/yazi/init.lua (No such file or directory (os error 2)) Yazi : /home/foo/.config/yazi/yazi.toml (332 chars) Keymap : /home/foo/.config/yazi/keymap.toml (No such file or directory (os error 2)) Theme : /home/foo/.config/yazi/theme.toml (26 chars) VFS : /home/foo/.config/yazi/vfs.toml (No such file or directory (os error 2)) Package : /home/foo/.config/yazi/package.toml (No such file or directory (os error 2)) Dark/light flavor: "dracula" / "" Emulator TERM : Some("xterm-kitty") TERM_PROGRAM : None TERM_PROGRAM_VERSION: None Brand.from_env : Some(Kitty) Emulator.detect : Emulator { kind: Left(Kitty), version: "kitty(0.45.0)", light: false, csi_16t: (10, 21), force_16t: false } Adapter Adapter.matches : Kgp Dimension.available: Dimension { rows: 63, columns: 248, width: 2480, height: 1323 } Desktop XDG_SESSION_TYPE : Some("wayland") WAYLAND_DISPLAY : Some("wayland-1") DISPLAY : Some(":0") SWAYSOCK : None HYPRLAND_INSTANCE_SIGNATURE: None WAYFIRE_SOCKET : None SSH shared.in_ssh_connection: false WSL WSL: false Variables SHELL : Some("/usr/bin/fish") EDITOR : Some("nano") VISUAL : None YAZI_FILE_ONE : None YAZI_CONFIG_HOME : None YAZI_ZOXIDE_OPTS : None FZF_DEFAULT_OPTS : None FZF_DEFAULT_COMMAND: None Text Opener default : Some(OpenerRule { run: "nano \"$@\"", block: true, orphan: false, desc: "Edit with nano", for: None, spread: true }) block-create: Some(OpenerRule { run: "nano \"$@\"", block: true, orphan: false, desc: "Edit with nano", for: None, spread: true }) block-rename: Some(OpenerRule { run: "nano \"$@\"", block: true, orphan: false, desc: "Edit with nano", for: None, spread: true }) Multiplexers TMUX : false tmux version : No such file or directory (os error 2) tmux build flags : enable-sixel=Unknown ZELLIJ_SESSION_NAME: None Zellij version : No such file or directory (os error 2) Dependencies file : 5.46 ueberzugpp : No such file or directory (os error 2) ffmpeg/ffprobe: 7.1.3 / 7.1.3 pdftoppm : No such file or directory (os error 2) magick : No such file or directory (os error 2) fzf : No such file or directory (os error 2) fd/fdfind : No such file or directory (os error 2) / No such file or directory (os error 2) rg : No such file or directory (os error 2) chafa : 1.18.1 zoxide : No such file or directory (os error 2) 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 : No such file or directory (os error 2) 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/plain See https://yazi-rs.github.io/docs/plugins/overview#debugging on how to enable logging or debug runtime errors.Describe the question
I am trying to get yazi to assoicate with a gentoo .ebuild script, to open with nano.
I have tried the usual methods of mimetype assoications for files, but I can't get it to work, .desktop file, and mimeapps.list
Nothing I've done seems to be working.
I want to be able to hit enter and have these ebuilds open with nano.
I use fish and I've also set in the config.fish;
set -gx EDITOR nanoI'm clueless here LOL, this is what I wrote up in yazi.toml, but it's not working.
[manager]
show_hidden = true
[opener]
edit = [
{ run = "$EDITOR %s", block = true, for = "unix" },
]
[open]
rules = [
{ url = "*.ebuild", use = "edit" },
]
When I hightlight over a .ebuild script all it says in the Pane;
File Type Classification
Gentoo ebuild, EAPI 8, ASCII text
I hightlighted a .ebuild script, pressed : and typed this in;
shell --block "/bin/sh -c '/usr/bin/nano %0'"
Then I got exited with Status 127. Does this mean yazi is essentially "blind" to the filesystem's binaries? hmm
I also tried around 15 different settings/options in the yazi.toml, then later added a keymap.toml;
[[manager.prepend_keymap]]
on = [ "" ]
exec = "open --interactive"
desc = "Open with selection"
I can come up with nothing to make this work....
THANKSAnything else?
No response
Checklist
Beta Was this translation helpful? Give feedback.
All reactions