diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2019-01-04 22:54:18 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2019-01-04 22:54:18 +0530 |
commit | b958fd0015d2ccb067a060f21e7328e9d348baeb (patch) | |
tree | 924f6ed4891101d3876539c493e2afb20546f815 /scripts | |
parent | 0617c8d90ab49dfcf0d7cefb0a7a6610d742d56e (diff) | |
download | nnn-b958fd0015d2ccb067a060f21e7328e9d348baeb.tar.gz |
Update user scripts
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/user-scripts/edit.sh | 12 | ||||
-rw-r--r-- | scripts/user-scripts/fzy.sh | 6 |
2 files changed, 17 insertions, 1 deletions
diff --git a/scripts/user-scripts/edit.sh b/scripts/user-scripts/edit.sh new file mode 100644 index 0000000..f23d7a8 --- /dev/null +++ b/scripts/user-scripts/edit.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env sh + +# Description: Fuzzy find a file in directory subtree with fzy and edit in vim +# +# Shell: generic +# Author: Arun Prakash Jana + +# bash, zsh +vim $(find -type f | fzy) + +# fish +# vim (find -type f | fzy) diff --git a/scripts/user-scripts/fzy.sh b/scripts/user-scripts/fzy.sh index 8bf5268..ba8cfc9 100644 --- a/scripts/user-scripts/fzy.sh +++ b/scripts/user-scripts/fzy.sh @@ -1,8 +1,12 @@ #!/usr/bin/env sh -# Description: Fuzzy find files in directory subtree with fzy and open using xdg-open +# Description: Fuzzy find a file in directory subtree with fzy and open using xdg-open # # Shell: generic # Author: Arun Prakash Jana +# bash, zsh xdg-open $(find -type f | fzy) >/dev/null 2>&1 + +# fish +# xdg-open (find -type f | fzy) >/dev/null 2>&1 |