Skip to content

[Suggestion] Loose file archive default naming from contents #237

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

Closed
sevdestruct opened this issue Jul 9, 2018 · 7 comments
Closed

[Suggestion] Loose file archive default naming from contents #237

sevdestruct opened this issue Jul 9, 2018 · 7 comments
Assignees
Milestone

Comments

@sevdestruct
Copy link

Wanted to toss this idea from a suggestion I made in another thread, but might have merit as it's own proposal for a new default naming of loose file archives instead of Compressed file…

Create names simply from the leading file or folder (item) and quantity of contents (additional items)…

[item x] and 23 others.7z

Allowing for archiving queued batches without losing context of what got batched after (especially when using 'Delete file(s) after compression'). Thoughts?

@sevdestruct sevdestruct changed the title [Suggestion] Archive default naming from contents [Suggestion] Loose file archive default naming from contents Jul 9, 2018
@gingerbeardman
Copy link
Contributor

gingerbeardman commented Jul 9, 2018

I like this idea.

Now I'm wondering what qualifies as "leading file"?

  • Largest?
  • Newest?
  • First when sorted alphabetically?
  • First/last selected?
  • some other metric?

@sevdestruct
Copy link
Author

I was just going to assume alphabetically, the default view mode, file or folder at the top of a given list, which would be most common view mode to associate —to keep this simple.

@aonez
Copy link
Owner

aonez commented Jul 10, 2018

I'm not sure about this one, since determining the most "prominent" input to appear in the output name is very difficult and personal. Also the count will be a simple input count, not file count. Anyway it is another alternative, for sure.

@aonez aonez self-assigned this Jul 10, 2018
@aonez aonez added this to the Future milestone Jul 10, 2018
@sevdestruct
Copy link
Author

sevdestruct commented Jul 10, 2018

I think it's getting over complicated to think of it as prominence for a final file name. Forget about prominence. Too complicated and of course that is subjective. Instead of the final end game think of this as simply a replacement for the temporary name "compressed file #.7z" meant for renaming as it is now -- just a replacement that helps you remember what you archived especially in batches... Let me explain:

I think a simple base context is better than an arbitrary generic name. Especially so they can be more easily renamed without guessing after large batch processing. And there are plenty of batch archiving cases where you do no want to archive files contained in folders ahead of time.

The first item alphabetically (plus a top level item count to avoid confusion) gives context so you can rename it without unarchiving it or remembering the order of items before archiving to match the compressed file numbers… Imagine a folder full of items you intend to batch without pre-containing in folders, in ordered segments, top to bottom. Consider the results of that queue:

Compressed file 2.7z
Compressed file 3.7z
Compressed file 4.7z
Compressed file 5.7z
…and so on…
Compressed file.7z

Currently I have to turn off 'Delete files after compression' or lose context completely upon returning once the batch is complete, so I keep the original order of the files and go through in order, queue up groups of loose files for batching and after compression is compete, methodically name the files, and delete the originals sets, one group at a time in the exact order as I go through compressed file 1 2 3 etc… Currently this is the closest optimized thing to batching archiving files in groups without folders: methodically, as a workaround. Otherwise would take an absurd amount of time to do each group individually.

Just using the alphabetically first item plus a count would at least have some connection to what was archived so a user can rename accordingly without unarchiving or refrain from large batchIng operations altogether. When doing .7z compression on slowest setting on a bunch of large files.. that takes quite a while even on a decently powerful machine when threading up a batch and something I'd rather load up and walk away from and return to in an hour when they are all done. Go through and name them accordingly, personally or however.

This use case is why I requested shared filename inference but I am sure there are use cases where the set of files to archive are not in shared name sets that users wouldn't mind archiving in batches.

@sevdestruct
Copy link
Author

sevdestruct commented Jul 10, 2018

I guess I should be referring to the leading file not as alphabetical first but simply the first item processed by Keka, but that would be pending how Keka processes any given list of items dumped on it from the Finder or otherwise in case it respects the list order dragged to it from various sort modes. So leading meaning first of a given list..

@aonez
Copy link
Owner

aonez commented Jul 11, 2018

Got it @sevdestruct. The order of the list comes from Finder, and seems to be the same as you've there. So first item in Finder, first item in the Keka list. If no specific order (for example in the Desktop) seems to be top to bottom, left to right.

@aonez aonez modified the milestones: Future, 1.2.0 Dec 20, 2019
@aonez aonez added the fixed label Dec 20, 2019
@aonez
Copy link
Owner

aonez commented Dec 20, 2019

@sevdestruct again take a look at the latest dev build:
https://github.com/aonez/Keka/releases/tag/v1.2.0-dev.3742

For this issue, you'll want to use %ia% and %c others, that will print the first item (sorted alphabetically and the number of files.

@aonez aonez closed this as completed Nov 3, 2020
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

3 participants