summaryrefslogtreecommitdiff
path: root/bin/fzsnip
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2020-07-15 09:29:55 -0400
committerluxagraf <sng@luxagraf.net>2020-07-15 09:29:55 -0400
commit768a4df311c1a0b296481860258a7f58d3a87fa6 (patch)
tree2e0b10a24ebc607b9bdfcc727f99f802ee89348d /bin/fzsnip
parentfe4d14419e52e4afbc2a7feefdc34cae2f30a3e1 (diff)
added latest tweaks to my setup
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