From 7e453c89e017e737264a6a139cb530c120b91a4f Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Thu, 9 Mar 2023 15:23:17 -0500 Subject: [PATCH] mrss.sh: allow using select/fzf on already-read articles --- contrib/mrss.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/mrss.sh b/contrib/mrss.sh index 23eb2d0..e656a95 100755 --- a/contrib/mrss.sh +++ b/contrib/mrss.sh @@ -121,7 +121,7 @@ list_read() { list_watchlater() { while read -r ARTICLE; do REALPATH="$(realpath "$ARTICLE")" - sub_purge "$art" + sub_purge "$ARTICLE" ln -sr "$REALPATH" "$MRSS_WATCH_LATER"/ done } @@ -160,7 +160,7 @@ sub_select() { else DIR="$MRSS_DIR/$1" fi - NEWARTS="$(find "$DIR" -type l)" + NEWARTS="$(find "$DIR" -type l -or -type f)" TOTAL_COUNT="$(printf "%s" "$NEWARTS" | wc -l)" printf "%s" "$NEWARTS" | ( @@ -220,7 +220,7 @@ sub_fzf() { fi cd "$DIR" while true; do - NEWARTS="$(find . -type l)" + NEWARTS="$(find . -type l -or -type f)" export -f sub_preview SEL="$(printf "%s" "$NEWARTS" | fzf --disabled --marker='*' --multi --cycle --preview 'bash -c "sub_preview {}"')" if [ -z "$SEL" ]; then