Skip to content
This repository has been archived by the owner on Jan 16, 2023. It is now read-only.

Provide a Command to Modify the File List Through a Script #52

Closed
baskerville opened this issue Apr 19, 2012 · 3 comments
Closed

Provide a Command to Modify the File List Through a Script #52

baskerville opened this issue Apr 19, 2012 · 3 comments

Comments

@baskerville
Copy link
Contributor

I thought it would be important to be able to sort images on the fly.

I'm proposing the following approach:

Provide a command that would provide a script the current list of images being handled as a list of newline separated absolute paths to the its stdin and read back the modified list on the its stdout.

For example, the following script would eliminate non-existent files:

#! /bin/dash

xargs ls -1d 2> /dev/null

And this script would sort files by size:

#! /bin/dash

xargs ls -1dS
@xyb3rt
Copy link
Owner

xyb3rt commented Apr 22, 2012

I don't consider this important.

@xyb3rt xyb3rt closed this as completed Apr 22, 2012
@baskerville
Copy link
Contributor Author

Why?

@xyb3rt
Copy link
Owner

xyb3rt commented Apr 23, 2012

I don't have enough time. And I don't consider sorting images on the fly an important feature, which should be included in a suckless image viewer. If you want images to be sorted by file size, then you can start another instance of sxiv with the appropriate order of its file arguments.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants