Implemented the live-indexing fix + Fixed opening and closing the context menu no longer changes the scrollback position.

- Centralized .gitignore, .prjallowed, and .prjdisallowed filtering in src/tools/ecode/projectdirectorytree.cpp:392.
  - Live directories now require an already-admitted parent and use (parentDirectory, filename) matching before insertion.
  - Live file additions use the same shared filtering.
  - Newly admitted directories still load their own nested .gitignore before recursive scanning.
  - Added eight direct regression tests in src/tests/unit_tests/projectdirectorytree_tests.cpp:84.
  - Added the required ecode sources to both Premake unit-test targets.
  - No FileSystemListener changes; directory moves remain outside this Add-focused patch.
  - Context menu issue cause was terminal focus reporting: Codex enables focus events, and opening the popup sent ESC [ O through the ordinary input path, which scrolls to the bottom. Focus reports now use the non-scrolling protocol-write path while still reaching the application correctly.
This commit is contained in:
Martín Lucas Golini
2026-09-20 14:41:47 -03:00
parent 66962c6a82
commit 2beab631a2
9 changed files with 323 additions and 69 deletions
+2
View File
@@ -2019,7 +2019,9 @@ solution "eepp"
links { "bsd", "network" }
end
files { "src/tests/unit_tests/*.cpp",
"src/tools/ecode/ignorematcher.cpp",
"src/tools/ecode/jsonhelper.cpp",
"src/tools/ecode/projectdirectorytree.cpp",
"src/tools/ecode/plugins/git/git.cpp",
"src/tools/ecode/plugins/autocomplete/snippetparser.cpp",
"src/tools/ecode/plugins/autocomplete/usersnippetstore.cpp" }