summaryrefslogtreecommitdiff
path: root/bin/fzsnip
diff options
context:
space:
mode:
Diffstat (limited to 'bin/fzsnip')
-rwxr-xr-xbin/fzsnip4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/fzsnip b/bin/fzsnip
new file mode 100755
index 0000000..fd50bd1
--- /dev/null
+++ b/bin/fzsnip
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+selected="$(python ~/bin/snippet.py | fzf -e -i )"
+#strip tags and any trailing space before sending to wl-copy
+echo -e "$selected"| sed -e 's/tags\:\.\*\$//;$d' | wl-copy