Experimental feature: On extraction preserve file order as in archive by creatively using macOS metadata (i.e. Seq-Nr in Comment or Date-Added with seconds incrementing)
- 主要语言
- PHP
- 星标
- 7.3k
- 派生
- 294
- 平均合并
- 14 天 16 小时
- 30 天内合并 PR
- 1
描述
## General Idea
### Sometimes the order of files in the archive has a real meaning and value
- Which does not correspond to any of the usual capabilities for sorting like
- By name, By various timestamps (created, modified, last opened, added)
### But we could facilitate the richness that macOS/Finder metadata offers to preserve that order, i.e.
- List View sorted by Finder Comment, which is a sequence number, which Keka created
- **Not to hard to implement I guess:** Not even zero padding is necessary, Finder sorts 1,2,3,11,110 correctly in the Comment column, just tested it
- Icon View with custom ordering and Keka ordering them
- **Possibly harder to implement.** AFAIR some of this Finder icon sizing/grid-aligning/sorting stuff is pretty hard to achieve programmatically because not really officially documented. But maybe that changed meanwhile.
## Concrete use case

* https://Balsamiq.cloud (a wep app for wireframing) offers an "Export all screens of this project" function which creates a ZIP archive.
* The source order of the files in that ZIP archive is exactly as in the screens-side-panel.
* Screen names are moved into the file names.
* If a screen name existed multiple times (which is allowed within a project) then the filename gets a number suffix AFAIR.
* Even the creation and/or modification date of the server are preserved in the archive AFAIR.
* Would be so cool to preserve the screen order
## Who would use this?
* I am well aware only few people would use this feature.
* And there's sort of a workaround anyhow: Put numerical prefixes in front of the screen names.
* But a pure metadata solution would be so cool! So avantgarde!
* Maybe you are in the mood for it? Or like the challenge of a proof of concept.
* If implemented, the correct place for controlling this would be:
* Preferences > Extracting > Below "Set folder's modification date to extraction date" (which also belong to the "topical complex of metadata" add an option:
* ```[ ] Preserve packing order of files in archive by writing sequence number into Finder comment by which you can then sort.```
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。