You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like a feature or extension of an existing feature which, as far as I can tell, does not exist: a way to have feh log to a file or stdout/stderr the current filename being viewed.
My usecase is I would like to curate my backlog of photographs, which is far too large to go through in a single sitting, with multiple sessions, where I resume where I left off. For ease of use, this needs to track the current position automatically. So using the --actions to do something like "%f" would be bad: I'd need to remember to use that specially in the curation mode, as opposed to just running feh_resume. I cannot seem to find any existing feh feature which would enable this.
One logical place would be to expand the definition of --verbose:
-V, --verbose
output useful information, progress bars, etc.
It is not clear to me what --verbose actually does (at least with Feh v3.3), because when I run feh --verbose on some random image directories, I don't see any output at all; but taking the man page at face value, printing the 'current image filename' seems to me like it would be 'useful information', and it's very much in the spirit of 'progress bars' (printing out the current file name would let you create a progress bar by combining it with a file list, for example).
Compatibility-wise, presumably anyone parsing or otherwise using the verbose output is grepping for just the parts they need, so adding in filename printing should not break any code which was not already hopelessly fragile.
A fragile proof of concept, which uses strace because I can't see any way to get last-image-viewed out of feh, and then has to parse filenames from strace's default octal output back into UTF-8:
It's a bit of a hack, but you can already get what you need out of feh by using the --info option, e.g. feh --info 'echo %F > /tmp/feh-last-viewed-file' some-directory
I'll look into (maybe) expanding --verbose at a later point in time.
I would like a feature or extension of an existing feature which, as far as I can tell, does not exist: a way to have feh log to a file or stdout/stderr the current filename being viewed.
My usecase is I would like to curate my backlog of photographs, which is far too large to go through in a single sitting, with multiple sessions, where I resume where I left off. For ease of use, this needs to track the current position automatically. So using the
--action
s to do something like"%f"
would be bad: I'd need to remember to use that specially in the curation mode, as opposed to just runningfeh_resume
. I cannot seem to find any existing feh feature which would enable this.One logical place would be to expand the definition of
--verbose
:It is not clear to me what
--verbose
actually does (at least with Feh v3.3), because when I runfeh --verbose
on some random image directories, I don't see any output at all; but taking the man page at face value, printing the 'current image filename' seems to me like it would be 'useful information', and it's very much in the spirit of 'progress bars' (printing out the current file name would let you create a progress bar by combining it with a file list, for example).Compatibility-wise, presumably anyone parsing or otherwise using the verbose output is grepping for just the parts they need, so adding in filename printing should not break any code which was not already hopelessly fragile.
A fragile proof of concept, which uses
strace
because I can't see any way to get last-image-viewed out of feh, and then has to parse filenames from strace's default octal output back into UTF-8:The text was updated successfully, but these errors were encountered: