From cc348b5711e0ad39e22c6bd5b62e8cc6e7d42fdd Mon Sep 17 00:00:00 2001 From: dogeystamp Date: Tue, 27 Jun 2023 16:11:59 -0400 Subject: [PATCH] fish-fm: sxiv helper function --- src/.local/bin/fish-fm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/.local/bin/fish-fm b/src/.local/bin/fish-fm index 5529611..6ab5491 100755 --- a/src/.local/bin/fish-fm +++ b/src/.local/bin/fish-fm @@ -41,3 +41,13 @@ function sel end exit end + +# use sxiv to select pictures +# see its man page about marking +# 'm' marks a single picture +function ssel + set res (sxiv -to $argv) + if test -n "$res" + sel $res + end +end