Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New -f command line option for find-like behavior #108

Open
IonoclastBrigham opened this issue Feb 9, 2019 · 1 comment
Open

New -f command line option for find-like behavior #108

IonoclastBrigham opened this issue Feb 9, 2019 · 1 comment

Comments

@IonoclastBrigham
Copy link
Collaborator

It would be nice if, instead of having to store intermediate search results, or process images in a shell loop, we could tell ivy "do the search, and then apply any other commands to each item in the search results instead of displaying them, as if each in-turn were the image path argument.

Because this is similar to in behavior to the UNIX tool find (1), this issue proposes the mnemonic option -f.

Examples

# find all images tagged "maui" and also tag them "beach"
ivy -fe -a maui -A beach

# locate pictures of animals and move them to a new directory
ivy -f -o dog,cat,naked-mole-rat -M /home/foo/pikshuhs/aminals/

Further thought should be given as to the exact command line syntax. Does order matter? Are there any other special cases that take multiple input files?

@IonoclastBrigham
Copy link
Collaborator Author

Thinking about this some more, do we even need the -f switch? If you get one more more query options instead of a path, could just iterate any modification commands over the result list.

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

No branches or pull requests

1 participant