Skip to content

Commit

Permalink
feat(nav): add dkaslovsky/nav to aqua + helper funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
scottames committed Nov 4, 2023
1 parent 7d88f1a commit 37f554a
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
2 changes: 2 additions & 0 deletions home/aqua.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ packages:
- name: kevincobain2000/[email protected]
- name: antonmedv/[email protected]
- name: wagoodman/[email protected]
- name: dkaslovsky/[email protected]
registry: dots
5 changes: 5 additions & 0 deletions home/private_dot_config/aquaproj-aqua/registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
12 changes: 12 additions & 0 deletions home/private_dot_config/fish/custom_functions.d/nv.fish
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions home/private_dot_config/fish/custom_functions.d/nvcat.fish
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions home/private_dot_config/fish/custom_functions.d/nvcp.fish
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 37f554a

Please sign in to comment.