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

40 Commits

Author SHA1 Message Date
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
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
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
9e7c70a9f8 Symbol specification output 2025-10-12 12:42:04 +08:00
Tw93
55f6bd352f Well-structured output 2025-10-11 22:43:18 +08:00
Tw93
3b33c5a4a8 The results are more uniform 2025-10-11 15:02:15 +08:00
Tw93
65e3585f95 Uninstall function detailed upgrade 2025-10-11 11:40:01 +08:00
Tw93
2cf56fa96d Whitelist mode is more powerful 2025-10-10 23:05:21 +08:00
huyixi
d34b617cb3 feat(analyze): open current directory in Finder via "O" key (#19) 2025-10-09 14:43:18 +08:00
Tw93
70c5db8c9a Neat and uniform output 2025-10-09 14:24:00 +08:00
Tw93
c0dc5203b3 Touch ID is supported in password scenarios 2025-10-08 23:23:07 +08:00
Tw93
1657ff584b 🎨 Loading optimization and better use of links 2025-10-08 18:01:46 +08:00
Tw93
151157deb9 🐛 Fix some dry-run issues 2025-10-08 11:32:02 +08:00
Tw93
a6fe681ad5 🐛 Optimize uninstallation of mole 2025-10-07 11:00:37 +08:00
Tw93
12d9e89847 More complete cleaning 2025-10-06 10:45:51 +08:00
Tw93
c253e0ee60 🐛 change color 2025-10-05 22:37:43 +08:00
Tw93
3ff933f5d5 🐛 Normalize output tags 2025-10-05 22:16:25 +08:00
Tw93
85fd92fa03 🎨 Optimize code structure and reuse 2025-10-05 20:33:30 +08:00
Tw93
752f1130d4 chore: protect related bundles from cache orphan cleanup 2025-10-05 19:05:55 +08:00
Tw93
f7a88558d5 🎨 Better analysis experience 2025-10-05 16:40:43 +08:00
Tw93
33a9820c81 Add whitelist selection mechanism 2025-10-04 22:11:58 +08:00
Tw93
5d619d79a2 Protection rules expanded from 50 to 244 2025-10-04 19:28:36 +08:00
Tw93
0d898e7aeb 🐛 Added 12 new system tools and window manager protection rules 2025-10-04 19:04:20 +08:00
Tw93
2ddf3280e8 Increased protection for databases 2025-10-04 18:59:55 +08:00
Tw93
2929ae5e26 Support Disk Space Analyzer 2025-10-04 18:42:24 +08:00
Tw93
511c77b3c4 apps missing from uninstall list 2025-10-04 08:54:52 +08:00
Tw93
f79ba5cfb5 🐛 Restoring arrow logic 2025-10-03 10:39:28 +08:00
Tw93
68e34fcbe9 fix: buffered escape sequence parsing to prevent stray A/B and restore arrow navigation 2025-10-02 19:30:54 +08:00
Tw93
f13dff2c17 feat: add drain_pending_input to swallow trackpad scroll arrow bursts 2025-10-02 18:52:26 +08:00
Tw93
cd786bee89 fix: extend ESC sequence timeout and avoid accidental quit on any key 2025-10-02 15:26:14 +08:00
Tw93
a712969d65 feat: improve arrow key handling to fix stray AB chars; add left/right navigation; update analyze docs 2025-10-02 15:24:02 +08:00
Tw93
59f4c22a32 🎨 Updates for better use and support 2025-09-30 13:48:28 +08:00
Tw93
e2fd35f8a7 🎨 Continue to upgrade to easy to use 2025-09-30 00:43:52 +08:00
Tw93
377194086b 🎨 Make the code more maintainable 2025-09-28 17:01:25 +08:00
Tw93
df716abc53 🎨 Optimization instructions 2025-09-28 00:22:04 +08:00
Tw93
7267f8c7e9 🐛 update 2025-09-25 21:17:48 +08:00
Tw93
c35a210344 🎨 Refactor new feature uninstall 2025-09-25 20:22:51 +08:00