how to specify the file association of the file? #1164
-
For example I want to open html file by google-chrome. The related code shuold be like: But the edit = [
{ run = '$EDITOR "$@"', block = true, for = "unix" },
{ run = 'code "%*"', orphan = true, for = "windows" },
]
open = [
{ run = 'xdg-open "$@"', desc = "Open", for = "linux" },
{ run = 'open "$@"', desc = "Open", for = "macos" },
{ run = 'start "" "%1"', orphan = true, desc = "Open", for = "windows" }
]
reveal = [
{ run = 'open -R "$1"', desc = "Reveal", for = "macos" },
{ run = 'explorer /select, "%1"', orphan = true, desc = "Reveal", for = "windows" },
{ run = '''exiftool "$1"; echo "Press enter to exit"; read''', block = true, desc = "Show EXIF", for = "unix" },
] |
Beta Was this translation helpful? Give feedback.
Answered by
lpnh
Jun 19, 2024
Replies: 1 comment 2 replies
-
Not sure if this applies for your context, but I use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is this from your
keymap.toml
? It looks like an attempt to achieve something similar to the smart enter plugin. Even if you don't want to go with smart enter, you would need to override the defaultl
key. You can check how to do that here.By the way, probably you don't need this line, because it's already the default one: