1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 18:34:46 +00:00
Commit Graph

264 Commits

Author SHA1 Message Date
Tw93
de0e22f00f The whitelist has been increased to 66 2025-10-16 12:26:00 +08:00
Tw93
2f0c74c621 Adjustment of file structure 2025-10-16 10:53:00 +08:00
Tw93
d09ef46eab Merge branch 'main' into dev 2025-10-16 10:34:09 +08:00
Tw93
419df94f00 Fix remove permission issue 2025-10-15 19:45:32 +08:00
Tw93
cb442f5065 1.7.14 2025-10-15 19:45:32 +08:00
Tw93
1657aa0e35 1.7.12 2025-10-15 19:45:32 +08:00
Tw93
92d3410e24 update tests 2025-10-15 19:45:32 +08:00
Tw93
b2c8feacde update tests 2025-10-15 19:45:32 +08:00
Tw93
e98f0baac4 update tests 2025-10-15 19:45:32 +08:00
Tw93
481201d302 Update README.md 2025-10-15 19:45:32 +08:00
Tw93
43ecd50d14 update docs 2025-10-15 19:45:32 +08:00
Tw93
305e53e4f1 update docs 2025-10-15 19:45:32 +08:00
Tw93
ffe2f458e1 1.7.11 2025-10-15 19:45:32 +08:00
Tw93
2557c5f209 Uninstall List Cache 2025-10-15 19:45:32 +08:00
Tw93
35c4db2b81 Delete useless help and optimize format 2025-10-15 19:45:32 +08:00
Tw93
05e3ec78dc Enter to select the next step 2025-10-15 19:45:32 +08:00
Tw93
5ec2ca0c46 Fix whitelist issue caused by retrieval list 2025-10-15 19:45:32 +08:00
Tw93
027261a3e1 Fix whitelist issue caused by retrieval list 2025-10-15 19:45:32 +08:00
Tw93
332b83afa3 chore: trigger recount 2025-10-15 19:45:32 +08:00
Else00
bc1af7e35d feat(menu): add sort (date/name/size), live filter, reverse; visible-only A/N; responsive footer (#34)
Paginated menu:
- Sorting: press S/s to cycle Date → Name → Size; press R/r to reverse.
- Live filter: press F/f to enter; case-insensitive substring; prefix with ' to anchor at start; DELETE to backspace; ENTER to apply; ESC to cancel. Shows "searching…" while rebuilding.
- Selection scope: A (All) and N (None) now work on the currently visible items only (after filter/sort), not the entire list.
- Footer: adds A/N to the help line and wraps only at ' | ' separators so labels are never broken; adapts to terminal width.
- Internals: view_indices mapping for filtered/sorted view; glob-safe matching via _pm_escape_glob; drain_pending_input; robust stty restore; optional MOLE_MANAGED_ALT_SCREEN; cleanup unsets MOLE_READ_KEY_FORCE_CHAR; shellcheck clean.

common.sh:
- read_key supports a raw typing mode (MOLE_READ_KEY_FORCE_CHAR=1) emitting CHAR:<k>; ENTER/DELETE/ESC handled.
- Uppercase A/N/R mappings (ALL/NONE/RETRY), printable-key detection, better ESC sequence handling.

app_selector.sh:
- Builds and exports per-item metadata CSV for epochs and size_kb via MOLE_MENU_META_EPOCHS and MOLE_MENU_META_SIZEKB; unsets them after the menu.
- Menu options keep display text; sorting/filtering use metadata.

uninstall.sh:
- Computes app_size_kb using du -sk for numeric sorting while keeping human-readable size; writes it as the final field.
- load_applications reads the new size_kb field.

Notes:
- Footer grew due to new commands; responsive wrapping prevents mid-word breaks.
- ./tests/run.sh: only the two upstream failures remain (unchanged by this patch).
2025-10-15 19:45:14 +08:00
Tw93
2aea2c752c Fix remove permission issue V1.7.15 2025-10-15 19:23:13 +08:00
Tw93
4a0a011d49 1.7.14 V1.7.14 2025-10-15 15:47:07 +08:00
Tw93
6f09fc1509 1.7.12 V1.7.12 2025-10-15 10:27:04 +08:00
Tw93
b67b0d479b update tests 2025-10-15 10:00:15 +08:00
Tw93
41b4886a75 update tests 2025-10-15 09:56:37 +08:00
Tw93
8b2c49cb0c update tests 2025-10-15 09:49:20 +08:00
Tw93
e5ee10b756 Update README.md 2025-10-14 20:39:04 +08:00
Tw93
240920f697 update docs 2025-10-14 20:19:54 +08:00
Tw93
bd2eef5de6 update docs 2025-10-14 20:19:34 +08:00
Tw93
04339b08d1 1.7.11 2025-10-14 20:11:48 +08:00
Tw93
f1af63bfb9 Uninstall List Cache 2025-10-14 20:06:52 +08:00
Tw93
f842d4092f Delete useless help and optimize format 2025-10-14 19:43:59 +08:00
Tw93
3317b9907c Enter to select the next step 2025-10-14 19:18:03 +08:00
Tw93
6d343194ff Fix whitelist issue caused by retrieval list 2025-10-14 17:27:38 +08:00
Tw93
2fa24d3771 Fix whitelist issue caused by retrieval list 2025-10-14 17:26:27 +08:00
Tw93
5fc028f18f chore: trigger recount 2025-10-14 16:17:12 +08:00
Else00
cfdd414320 feat(menu): add sort (date/name/size), live filter, reverse; visible-only A/N; responsive footer (#34)
Paginated menu:
- Sorting: press S/s to cycle Date → Name → Size; press R/r to reverse.
- Live filter: press F/f to enter; case-insensitive substring; prefix with ' to anchor at start; DELETE to backspace; ENTER to apply; ESC to cancel. Shows “searching…” while rebuilding.
- Selection scope: A (All) and N (None) now work on the currently visible items only (after filter/sort), not the entire list.
- Footer: adds A/N to the help line and wraps only at ' | ' separators so labels are never broken; adapts to terminal width.
- Internals: view_indices mapping for filtered/sorted view; glob-safe matching via _pm_escape_glob; drain_pending_input; robust stty restore; optional MOLE_MANAGED_ALT_SCREEN; cleanup unsets MOLE_READ_KEY_FORCE_CHAR; shellcheck clean.

common.sh:
- read_key supports a raw typing mode (MOLE_READ_KEY_FORCE_CHAR=1) emitting CHAR:<k>; ENTER/DELETE/ESC handled.
- Uppercase A/N/R mappings (ALL/NONE/RETRY), printable-key detection, better ESC sequence handling.

app_selector.sh:
- Builds and exports per-item metadata CSV for epochs and size_kb via MOLE_MENU_META_EPOCHS and MOLE_MENU_META_SIZEKB; unsets them after the menu.
- Menu options keep display text; sorting/filtering use metadata.

uninstall.sh:
- Computes app_size_kb using du -sk for numeric sorting while keeping human-readable size; writes it as the final field.
- load_applications reads the new size_kb field.

Notes:
- Footer grew due to new commands; responsive wrapping prevents mid-word breaks.
- ./tests/run.sh: only the two upstream failures remain (unchanged by this patch).

Co-authored-by: Jonas Bertossa <jonas.bertossa@eoc.ch>
2025-10-14 09:40:47 +08:00
Tw93
1d1da5af18 Merge branch 'main' of github.com:tw93/Mole 2025-10-13 14:33:27 +08:00
Tw93
098d54b055 Optimize test reading version 2025-10-13 14:33:06 +08:00
Tw93
80d4565235 Mailbox cache and whitelist V1.7.10 2025-10-13 14:15:02 +08:00
Tw93
db3b033fc0 Optimize cleaning of Bluetooth content 2025-10-13 11:29:45 +08:00
Tw93
f63f561673 Simple formatting 2025-10-13 10:20:46 +08:00
Tw93
62537d8d44 Automatic formatting 2025-10-12 21:43:37 +08:00
Tw93
cf821cdc4b Code support format detection 2025-10-12 20:49:10 +08:00
Tw93
d111f18cea Delete .github/workflows/shell-format.yml 2025-10-12 18:03:01 +08:00
Tw93
7a8b7ba9d5 Update shell-format.yml 2025-10-12 18:01:00 +08:00
Tw93
3be86923f5 Update shell-format.yml 2025-10-12 17:58:11 +08:00
Tw93
b61a3659d3 Update shell-format.yml 2025-10-12 17:55:53 +08:00
Tw93
d54ca50486 Update mole 2025-10-12 16:28:30 +08:00
Tw93
6fc1928fca Improve shell workflow file discovery (#24) 2025-10-12 16:27:16 +08:00