aboutsummaryrefslogtreecommitdiffstats
path: root/get-newsboat-comment.sh
diff options
context:
space:
mode:
authorMatthew Lemon <chaffinach+git@protonmail.ch>2022-01-11 17:24:52 +0000
committerMatthew Lemon <chaffinach+git@protonmail.ch>2022-01-11 17:24:52 +0000
commitb39259210eaa7f503c2a8f9d5fe4caac44706e6a (patch)
tree2121a2e870a35e1fb491747a1b2072e3df5d01f4 /get-newsboat-comment.sh
parenta6f5954fb62da7f7727281d43bc115532daaf801 (diff)
added a script to be called by newsboat to journal urls
Diffstat (limited to '')
-rwxr-xr-xget-newsboat-comment.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/get-newsboat-comment.sh b/get-newsboat-comment.sh
new file mode 100755
index 0000000..8645ac7
--- /dev/null
+++ b/get-newsboat-comment.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+# 01/11/2022
+# Get the user to type something
+# for use in newsboat config.
+# This is triggered by browser macro hack (,y) - you type a comment
+# then this script pipes it to _tj
+echo "Enter a comment: "
+read -r comment
+echo -e "$comment": "$1"|_tj # I can't be bothered checking whether `_tj` exists...
+