SUMMARY When I tell Kate to "Open Folder" and give it a subdirectory of a Git repo, it treats the entire Git repo as a project, even though I want to only open/search files within a subdirectory. STEPS TO REPRODUCE 1. Run `kate git-repo/subdirectory`. 2. Alternatively run `kate`, click File -> Open Folder, and pick a subdirectory within a Git repo. OBSERVED RESULT The Git repo's top-level folder is treated as the project folder. Project-level find and Quick Open search through far more files than I want. In my case, the Git repo is https://github.com/void-linux/void-packages, and when I tell Kate to browse the contents of a single extracted tarball, it instead tries to search every single Void package's build scripts, plus the source code of every single project I've cloned/built locally. EXPECTED RESULT The folder I passed into Kate is treated as the project folder. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.24.90 KDE Frameworks Version: 5.94.0 Qt Version: 5.15.4 Kernel Version: 5.18.2-zen1-1-zen (64-bit) Graphics Platform: X11 Processors: 12 × AMD Ryzen 5 5600X 6-Core Processor Memory: 15.6 GiB of RAM Graphics Processor: NVIDIA GeForce GT 730/PCIe/SSE2 Manufacturer: Gigabyte Technology Co., Ltd. Product Name: B550M DS3H ADDITIONAL INFORMATION
This is by design I think. Please turn off autoload of git repos from Configure Kate -> Projects -> "Auto load Git repos" if you want to open the exact folder that you specified. Or you can create .kateproject file which specifies what your project dir is.