This commit is contained in:
decolua
2026-06-15 18:18:04 +07:00
parent 8ab5af0052
commit b282f05549
66 changed files with 2328 additions and 213 deletions

View File

@@ -19,8 +19,12 @@ export const STATUS_MAX_UNTRACKED = 10; // config::limits().status_max_un
export const LS_EXT_SUMMARY_TOP = 5; // top-N extensions in summary
export const LS_NOISE_DIRS = [
"node_modules", ".git", "target", "__pycache__",
".next", "dist", "build", ".venv", "venv",
".cache", ".idea", ".vscode", ".DS_Store"
".next", "dist", "build", ".cache", ".turbo",
".vercel", ".pytest_cache", ".mypy_cache", ".tox",
".venv", "venv",
"env", // Python legacy virtualenv; .env (dotenv) intentionally excluded
"coverage", ".nyc_output", ".DS_Store", "Thumbs.db",
".idea", ".vscode", ".vs", "*.egg-info", ".eggs"
];
// tree filter_tree_output cap (no rust cap, we add one to be safe)

View File

@@ -31,16 +31,15 @@ export function find(input) {
const showDirs = dirs.slice(0, FIND_TOTAL_DIR_MAX);
for (const dir of showDirs) {
const files = byDir.get(dir);
out += `${dir}/ (${files.length}):\n`;
out += `${dir}/ (${files.length})\n`;
const showFiles = files.slice(0, FIND_PER_DIR_MAX);
for (const f of showFiles) out += ` ${f}\n`;
if (files.length > FIND_PER_DIR_MAX) {
out += ` +${files.length - FIND_PER_DIR_MAX}\n`;
}
out += "\n";
}
if (dirs.length > FIND_TOTAL_DIR_MAX) {
out += `+${dirs.length - FIND_TOTAL_DIR_MAX} more dirs\n`;
out += `\n+${dirs.length - FIND_TOTAL_DIR_MAX} more dirs\n`;
}
return out;