aonez / aonez/Keka

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)

未关闭
#932 94 条评论 0 个 reaction 已指派 1 人 已被 @aonez 认领 在 GitHub 查看
enhancement
主要语言
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

![Screen order of design web app is reflected in file order within ZIP archive](https://user-images.githubusercontent.com/737143/145412570-d577a26a-982b-4df3-95b1-09641709d52c.png)

* 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 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。