]> Sergey Matveev's repositories - nnn.git/commitdiff
Update user scripts
authorArun Prakash Jana <engineerarun@gmail.com>
Fri, 4 Jan 2019 17:24:18 +0000 (22:54 +0530)
committerArun Prakash Jana <engineerarun@gmail.com>
Fri, 4 Jan 2019 17:24:18 +0000 (22:54 +0530)
scripts/user-scripts/edit.sh [new file with mode: 0644]
scripts/user-scripts/fzy.sh

diff --git a/scripts/user-scripts/edit.sh b/scripts/user-scripts/edit.sh
new file mode 100644 (file)
index 0000000..f23d7a8
--- /dev/null
@@ -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)
index 8bf5268ef7770f93689eeb05c1a0dca31c15045f..ba8cfc9d1198a9e2f662bd110eac5b83f58d9362 100644 (file)
@@ -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