Bug 455196 - Cannot open subdirectory of Git repository as project
Summary: Cannot open subdirectory of Git repository as project
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 22.04.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-13 01:24 UTC by nyanpasu64
Modified: 2022-06-13 06:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nyanpasu64 2022-06-13 01:24:37 UTC
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
Comment 1 Waqar Ahmed 2022-06-13 06:14:06 UTC
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.