diff --git a/home/aqua.yaml b/home/aqua.yaml index dc5388f0..539d10fe 100644 --- a/home/aqua.yaml +++ b/home/aqua.yaml @@ -71,3 +71,5 @@ packages: - name: kevincobain2000/gobrew@v1.9.6 - name: antonmedv/fx@30.2.0 - name: wagoodman/dive@v0.11.0 + - name: dkaslovsky/nav@v1.1.0 + registry: dots diff --git a/home/private_dot_config/aquaproj-aqua/registry.yaml b/home/private_dot_config/aquaproj-aqua/registry.yaml index f98450e0..113ba901 100644 --- a/home/private_dot_config/aquaproj-aqua/registry.yaml +++ b/home/private_dot_config/aquaproj-aqua/registry.yaml @@ -15,3 +15,8 @@ packages: repo_owner: iwittkau repo_name: mage-select description: CLI frontend for mage based on promptui + - type: github_release + repo_owner: dkaslovsky + repo_name: nav + asset: nav_{{.OS}}_{{.Arch}} + description: Terminal navigator for interactive ls workflows diff --git a/home/private_dot_config/fish/custom_functions.d/nv.fish b/home/private_dot_config/fish/custom_functions.d/nv.fish new file mode 100644 index 00000000..8091e955 --- /dev/null +++ b/home/private_dot_config/fish/custom_functions.d/nv.fish @@ -0,0 +1,12 @@ +#!/bin/env fish + +function nv \ + --description "interactive ls + cd" + + if not type -q nav + print_err "missing 'nav' in path" + return 1 + end + + cd (nav --pipe $argv) +end diff --git a/home/private_dot_config/fish/custom_functions.d/nvcat.fish b/home/private_dot_config/fish/custom_functions.d/nvcat.fish new file mode 100644 index 00000000..755cc3b3 --- /dev/null +++ b/home/private_dot_config/fish/custom_functions.d/nvcat.fish @@ -0,0 +1,12 @@ +#!/bin/env fish + +function nvcat \ + --description "interactive ls + multi cat" + + if not type -q nav + print_err "missing 'nav' in path" + return 1 + end + + nav --pipe $argv | xargs cat +end diff --git a/home/private_dot_config/fish/custom_functions.d/nvcp.fish b/home/private_dot_config/fish/custom_functions.d/nvcp.fish new file mode 100644 index 00000000..4c480757 --- /dev/null +++ b/home/private_dot_config/fish/custom_functions.d/nvcp.fish @@ -0,0 +1,12 @@ +#!/bin/env fish + +function nvcp \ + --description "interactive ls + copy to clipboard" + + if not type -q nav + print_err "missing 'nav' in path" + return 1 + end + + nav --pipe $argv | setclip +end