Git Product home page Git Product logo

Comments (5)

lehitoskin avatar lehitoskin commented on May 30, 2024

no summary line, e.g. Found 3 results for tags '("blerg")

So then it would just be the strings of the images ivy has found. I gotcha. Do you think it would be worthwhile to add a (-0 | --null) flag, like find and xargs have where the results are separated by '\0' instead of '\n'?

rename/move image on filesystem / update DB
keeps files associated with their database entries without having to cut, move, re-open, re-tag

This is a thing that I come across every so often (I semi-frequently save images that already exist in the directory in perhaps a higher quality than the one I just saved). Does this mean that ivy would be the one moving the file and then retagging or just updating the database? If it's the latter of the two, I question how often I'd remember to use it. Perhaps we could put a "trial" sticker on it and see how well it works out.

from ivy.

lehitoskin avatar lehitoskin commented on May 30, 2024

Just a thought I had about the "-M" switch: we could have it so that it can move multiple images at once to new destinations, such as ivy -M <from ...> <to ...> where it would require an even amount of paths or else fail.

from ivy.

IonoclastBrigham avatar IonoclastBrigham commented on May 30, 2024

A -0 flag would be 100% okay with me; I didn't think of it because in practice I almost never use that feature when I'm using e.g. find with xargs. But if the goal is to be more unixy, and it's easy to add with the Racket console out libraries, then I'm onboard.

My thought with the move/rename command was that it would both move the file and update the database entry. It would be as simple as updating the path column; I don't think anything else should need to be poked.

The Principle of Least Surprise suggests it should probably behave like POSIX mv, where if there's more than 2 arguments, the last one is assumed to be a destination directory where all the preceding arguments are moved to, and an error is thrown if it's not.

from ivy.

lehitoskin avatar lehitoskin commented on May 30, 2024

and it's easy to add with the Racket console out libraries, then I'm onboard.

The change that would be needed is the result strings would need to become a single byte-string before printing, since the string "dog.jpg\0cat.jpg" would have the literal characters "" and "0" instead of a null byte, but that would be easy to change for the -0 switch.

It would be as simple as updating the path column; I don't think anything else should need to be poked.

The imagelist column in the tags table would need to be updated, too.

The Principle of Least Surprise suggests it should probably behave like POSIX mv

That makes sense.

from ivy.

lehitoskin avatar lehitoskin commented on May 30, 2024

Completed as of cbd707b

from ivy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.