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

Reloading opened folder(s) inside ucollage #18

Open
egolep opened this issue Dec 28, 2021 · 1 comment
Open

Reloading opened folder(s) inside ucollage #18

egolep opened this issue Dec 28, 2021 · 1 comment

Comments

@egolep
Copy link

egolep commented Dec 28, 2021

Maybe it's a stupid question, but I can't find a way to reload the folder opened in ucollage without having to close and restart it.
I tried to use loadfiles, but it keeps saying that all the images are already loaded even if I manually pasted a new image in the folder (I tried both the actual folder and /tmp/ucollage).

Am I missing something? Or this is not a pre-implemented feature?

@ckardaris
Copy link
Owner

Hello. Happy new year and sorry for the late answer.

Currently it is not possible to achieve what you want through the program. It is indeed a really useful functionality, but I don't know when I will be trying to implement that and other things that have come to my attention.

If you want to try your skills and make a PR I would gladly check it out.

Reading is happening in filelist.sh and you could utilize the code there to reread the directory, but there are some issues

  1. What happens with expanded directories (we should save the users input during startup for each case)
  2. We should be able to remember the state of the program. What batch of images we are showing. Or we could just forget everything and start from the beginning if a "hard" reload of the files is requested. This is also viable.
  3. What happens to edited images?

I think these are solvable problems, but I currently don't have the time to code a solution.

A first accepted solution would be to:

  1. Use an associative array to store expand answers for the directories passed as command line arguments.
  2. Use these answers to reread the command line arguments.
  3. Restart the original loop without caring about anything else (inform user about potentially lost work).

After that we could try to do the more complex things w.r.t. remembering previous state

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

No branches or pull requests

2 participants