mirror of
https://github.com/jarun/nnn.git
synced 2024-11-24 11:51:27 +00:00
Update user scripts
This commit is contained in:
parent
0617c8d90a
commit
b958fd0015
12
scripts/user-scripts/edit.sh
Normal file
12
scripts/user-scripts/edit.sh
Normal file
|
@ -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)
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue