aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/user-scripts/edit.sh12
-rw-r--r--scripts/user-scripts/fzy.sh6
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