@ -10,7 +10,7 @@ icon_theme = "vscode"
"**/out" = "no-enter"
[[verbs]]
invocation = "open"
invocation = "edit"
key = "enter"
external = "nu {{dirs.data}}/scripts/ide.nu open-file '{file}'"
apply_to = "file"
@ -9,4 +9,7 @@ $env.PATH = ( $env.PATH
{{#if-installed fnm}}
| prepend $'{{dirs.home}}/.fnm'
{{/if-installed}}
{{#if-installed nix}}
| prepend $'{{dirs.home}}/.nix-profile/bin'
)
@ -13,6 +13,7 @@ def `main open-file` [path: string] {
"png" => { open-image $path }
"jpg" => { open-image $path }
"jpeg" => { open-image $path }
"webp" => { open-image $path }
_ => { open-editor $path }
}
@ -1,3 +1,5 @@
#!/bin/env nu
def main [] {