Skip to content

Instantly share code, notes, and snippets.

@pierodev0
Created August 29, 2025 01:35
Show Gist options
  • Select an option

  • Save pierodev0/53bd01d36171e28f47ddcb94ab9b2615 to your computer and use it in GitHub Desktop.

Select an option

Save pierodev0/53bd01d36171e28f47ddcb94ab9b2615 to your computer and use it in GitHub Desktop.
My config yazi
#Reference: https://github.com/sxyazi/yazi/blob/shipped/yazi-config/preset/yazi-default.toml
[opener]
edit = [
{ run = '${EDITOR:-vi} "$@"', desc = "$EDITOR", block = true, for = "unix" },
{ run = 'code "$@"', orphan = true, desc = "Code", for = "unix" },
{ run = 'nvim "$@"', block = true, desc = "Neovim", for = "unix" },
]
# Keep other opener configurations from the default
open = [{ run = 'xdg-open "$1"', desc = "Open", for = "linux" }]
reveal = [
{ run = 'xdg-open "$(dirname "$1")"', desc = "Reveal", for = "linux" },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment