Fix file permissions

main
trivernis 9 months ago
parent d28a647895
commit 1173d26514
Signed by: Trivernis
GPG Key ID: 7E6D18B61C8D2F4B

@ -10,7 +10,7 @@ icon_theme = "vscode"
"**/out" = "no-enter" "**/out" = "no-enter"
[[verbs]] [[verbs]]
invocation = "open" invocation = "edit"
key = "enter" key = "enter"
external = "nu {{dirs.data}}/scripts/ide.nu open-file '{file}'" external = "nu {{dirs.data}}/scripts/ide.nu open-file '{file}'"
apply_to = "file" apply_to = "file"

@ -9,4 +9,7 @@ $env.PATH = ( $env.PATH
{{#if-installed fnm}} {{#if-installed fnm}}
| prepend $'{{dirs.home}}/.fnm' | prepend $'{{dirs.home}}/.fnm'
{{/if-installed}} {{/if-installed}}
{{#if-installed nix}}
| prepend $'{{dirs.home}}/.nix-profile/bin'
{{/if-installed}}
) )

@ -13,6 +13,7 @@ def `main open-file` [path: string] {
"png" => { open-image $path } "png" => { open-image $path }
"jpg" => { open-image $path } "jpg" => { open-image $path }
"jpeg" => { open-image $path } "jpeg" => { open-image $path }
"webp" => { open-image $path }
_ => { open-editor $path } _ => { open-editor $path }
} }
} }

@ -1,3 +1,5 @@
#!/bin/env nu
def main [] { def main [] {
} }

Loading…
Cancel
Save