Release v1.01 Enhanced: Vi Control, TUI Gen5, Core Stability

This commit is contained in:
Gemini AI
2025-12-20 01:12:45 +04:00
Unverified
parent 2407c42eb9
commit 142aaeee1e
254 changed files with 44888 additions and 31025 deletions

View File

@@ -25,6 +25,7 @@ const sortFiles = (files, dirPath) => {
const FileTree = ({
rootPath,
onSelect,
onOpen,
selectedFiles = new Set(),
isActive = false,
height = 20,
@@ -103,6 +104,11 @@ const FileTree = ({
if (!expanded.has(item.path)) {
setExpanded(prev => new Set([...prev, item.path]));
}
} else if (key.return) {
const selectedItem = flatList[currentIndex];
if (selectedItem && !selectedItem.isDir && typeof onOpen === 'function') {
onOpen(selectedItem.path);
}
}
}