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

230 Commits

Author SHA1 Message Date
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
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
Tw93
aeb309c522 Update mole 2025-10-12 16:16:10 +08:00
Tw93
d1fa709cd4 Fix shell formatter workflow for macOS (#23) 2025-10-12 16:09:58 +08:00
Tw93
3c56fe0633 Complete automated testing 2025-10-12 15:43:45 +08:00
Tw93
f9a93f6052 Complete automated testing 2025-10-12 14:17:40 +08:00
Tw93
41047d6ee8 Support for cleaning up incomplete backups V1.7.9 2025-10-12 12:42:21 +08:00
Tw93
9e7c70a9f8 Symbol specification output 2025-10-12 12:42:04 +08:00
Tw93
d3d56044e9 The documentation is clearer 2025-10-12 07:50:17 +08:00
Tw93
a4eccdc7f9 The documentation is clearer 2025-10-11 23:33:20 +08:00
Tw93
387348ccd8 The documentation is clearer 2025-10-11 23:32:42 +08:00
Tw93
9985147b32 The documentation is clearer 2025-10-11 23:31:18 +08:00
Tw93
ffc8d3e766 Whitelist Description 2025-10-11 23:30:24 +08:00
Tw93
96990ccc4c Whitelist Description 2025-10-11 23:29:38 +08:00
Tw93
f66c7b7c61 Whitelist Description 2025-10-11 23:28:20 +08:00
Tw93
af901425ac Whitelist Description 2025-10-11 23:07:24 +08:00
Tw93
79cfa81384 Add Maven to the default whitelist V1.7.8 2025-10-11 22:56:26 +08:00
Tw93
d000fbea48 Add Maven to the default whitelist 2025-10-11 22:55:18 +08:00
Tw93
3bae4b386f Well-structured output 2025-10-11 22:46:54 +08:00
Tw93
7e42516260 Support one-click activation of touchid 2025-10-11 22:43:50 +08:00
Tw93
55f6bd352f Well-structured output 2025-10-11 22:43:18 +08:00
Tw93
3b33c5a4a8 The results are more uniform V1.7.5 2025-10-11 15:02:15 +08:00
Tw93
8dc8d6c063 Improved whitelist experience 2025-10-11 14:12:00 +08:00
Tw93
1e72cc2756 Uninstall function detailed upgrade 2025-10-11 11:46:06 +08:00
Tw93
65e3585f95 Uninstall function detailed upgrade V1.7.4 2025-10-11 11:40:01 +08:00
Tw93
b55915490e publish 1.7.3 2025-10-10 23:14:30 +08:00
Tw93
2189a89bf0 publish 1.3 V1.7.3 2025-10-10 23:05:38 +08:00
Tw93
2cf56fa96d Whitelist mode is more powerful 2025-10-10 23:05:21 +08:00
Tw93
b7348c1207 Fix brew uninstall V1.7.2 2025-10-09 15:54:58 +08:00
Tw93
8a8b3784ef Fix brew uninstall 2025-10-09 15:54:44 +08:00
Kowyo
6f11c5b6fd feat: check for update before update mole (#20)
* remove duplicated update message

* check for update before update mole
2025-10-09 15:52:14 +08:00
Tw93
b1b27c649d Neat and uniform output 2025-10-09 14:53:47 +08:00
huyixi
d34b617cb3 feat(analyze): open current directory in Finder via "O" key (#19) V1.7.1 2025-10-09 14:43:18 +08:00
Tw93
56097e49a6 Neat and uniform output 2025-10-09 14:29:46 +08:00
Tw93
6d7ca6592e Neat and uniform output 2025-10-09 14:26:45 +08:00
Tw93
d5d646016a Merge branch 'dev' 2025-10-09 14:24:27 +08:00