1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-22 17:55:08 +00:00
Commit Graph

16 Commits

Author SHA1 Message Date
Tw93
c5d6cdc2f9 perf(purge/uninstall): eliminate per-item subprocess forks in scan phase
purge:
- is_safe_project_artifact: replace echo|tr|wc depth calc with pure bash
  string arithmetic (2 forks → 0 per item)
- process_scan_results: replace dirname subprocess with ${item%/*}
- is_recently_modified: accept pre-computed epoch to avoid redundant
  get_epoch_seconds call (N date forks → 1 before loop)
- fd pattern construction: replace 45 per-target sed forks with single
  printf|sed pass (45 forks → 2)
- pre-compute _cached_project_paths alongside existing name/basename
  cache so display loop avoids get_project_path subshell per item

uninstall/app-selector:
- default size display: N/A → -- for apps without cached size data
  (cleaner UX on first scan; real sizes populate from background refresh)
- Pass 1 scan: replace basename/dirname subshells with parameter expansion
2026-03-21 15:33:57 +08:00
tw93
c19a0276b8 refactor: Update shell arithmetic increment syntax from ((var++)) || true to var=$((var + 1)) across various scripts. 2026-02-28 11:10:18 +08:00
tw93
7d70889ad4 chore: auto format code 2026-02-28 11:03:16 +08:00
tw93
7d8bfbc9d9 improve uninstall scan metadata and list refresh UX 2026-02-10 16:23:15 +08:00
tw93
361d0dda05 fix: P1/P2 issues in file ops, menu state, and logging
- Fix safe_sudo_remove early exit on error (P1)
- Fix menu filter state leakage in paginated menu (P2)
- Fix cleanup of MOLE_MENU_FILTER_NAMES in app selector (P2)
- Correct log_operation signature for memory dumps (P2)
- Apply minor formatting fixes to dev cleanup module
2026-02-07 11:21:37 +08:00
tw93
02843dee74 feat(ui): add Ctrl+U support and optimize paginated menu performance 2026-02-07 10:28:41 +08:00
tw93
aaa3a6ae5a ui: add menu filtering support 2026-02-02 17:05:19 +08:00
Tw93
f4419c7c7a chore: auto format code 2025-12-20 14:18:53 +00:00
Tw93
2a0fe88fd3 feat: dynamically adjust column widths in UI and analysis output based on terminal size for improved readability 2025-12-20 22:18:06 +08:00
Tw93
9d72eab95a feat: add interactive purge command with comprehensive tests 2025-12-18 14:16:56 +08:00
Tw93
27205c653d feat: Boost UI performance with pure bash string width calculation and truncation, and add visual feedback for cache hits in uninstall scripts. 2025-12-17 11:01:15 +08:00
Tw93
b843cde0fd feat: localize app names based on system language and improve UI display width calculation for CJK characters with loading indicator 2025-12-17 10:36:33 +08:00
Tw93
fa75da07ca Add 'F' key to refresh paginated menus, clarify UI text for search and selection, and improve robustness of BOM file processing 2025-12-12 14:33:07 +08:00
github-actions[bot]
5b73e4ffad chore: auto format code 2025-12-10 03:53:17 +00:00
Tw93
598c2b410d Uninstall list display name length optimization 2025-12-10 11:40:41 +08:00
Tw93
4bd4ffc7be Reconstruct clean lib code 2025-12-01 16:58:35 +08:00