1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-12 23:50:15 +00:00

feat: improve mo purge UX with pagination and smart project detection

- Add pagination for project list based on terminal height
- Show position indicator [5/25] when scrolling
- Fix GB display for values < 1 (0.6GB instead of .6GB)
- Improve project name detection by walking up to find project root
- Change default editor from nano to vim
This commit is contained in:
Tw93
2025-12-30 14:38:16 +08:00
parent 184aab5f60
commit 73f3d43308
2 changed files with 111 additions and 20 deletions

View File

@@ -92,7 +92,7 @@ manage_purge_paths() {
echo ""
# Open in editor
local editor="${EDITOR:-${VISUAL:-nano}}"
local editor="${EDITOR:-${VISUAL:-vim}}"
echo -e "Opening in ${CYAN}$editor${NC}..."
echo -e "${GRAY}Save and exit to apply changes. Leave empty to use defaults.${NC}"
echo ""