summaryrefslogtreecommitdiff
path: root/fzsnip
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2023-06-15 15:58:59 -0500
committerluxagraf <sng@luxagraf.net>2023-06-15 15:58:59 -0500
commitab987e10f154f5536bb8fd936ae0966e909fa969 (patch)
tree9de5076f38b71ececb1bc94f8d9d19170898d603 /fzsnip
added all my scriptssynced/master
Diffstat (limited to 'fzsnip')
-rwxr-xr-xfzsnip5
1 files changed, 5 insertions, 0 deletions
diff --git a/fzsnip b/fzsnip
new file mode 100755
index 0000000..dfc4395
--- /dev/null
+++ b/fzsnip
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+selected="$(python3 ~/bin/snippet.py | fzf -e -i --bind 'tab:up')"
+#strip tags and any trailing space before sending to wl-copy
+#echo -e "$selected"| sed -e 's/tags\:\.\*\$//;$d' | wl-copy
+echo -e "$selected"| sed -e 's/tags\:\.\*\$//;$d' | xsel -ib