Bug 426495 - Kate is showing project only if .kateproject file is opened in Kate
Summary: Kate is showing project only if .kateproject file is opened in Kate
Status: RESOLVED INTENTIONAL
Alias: None
Product: kate
Classification: Applications
Component: application (show other bugs)
Version: 20.04.1
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-13 19:20 UTC by Nikunj Bhatt
Modified: 2021-02-21 19:00 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikunj Bhatt 2020-09-13 19:20:56 UTC
SUMMARY
Kate is not auto-detecting .kateproject file I am browsing in Filesystem Browser sidebar panel. If there is .kateproject file in a folder and that folder is already open in Filesystem Browser then Kate should auto-detect the .kateproject file and add the current folder as a project in the Projects panel.

STEPS TO REPRODUCE
1. Open a folder/directory in Filesystem Browser
2. Create/save a .kateproject file in that folder
3. Close and reopen Kate
4. Navigate to the same folder in Filesystem Browser (if not already open) where the .kateproject file was created/saved. Now the folder should get added to the Projects panel as a project but it is not getting added.
5. Open the .kateproject file. Now the folder is added as a project in Projects panel.

OBSERVED RESULT
The folder is only detected as a project after its .kateproject file is opened in Kate. Is it happening because I haven't added .kateproject file in the folder's Git repo? I haven't, and I think it should not matter, Kate should show the folder in Projects panel regardless of whether the .kateproject file is added to Git repo or not.

EXPECTED RESULT
Kate should auto-detect .kateproject file from curretly opened folder in Filesystem Browser and add that folder as a project in the Projects panel.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 32
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.70.0
Qt Version: 5.14.2

ADDITIONAL INFORMATION
Suggestion: Instead of creating .kateproject file in the folders of the projects, these should be maintained somewhere in ~/.config folder of currently logged in user. (There are lots of such configuration files being created by different software or requirements in project folders which are not main parts of the projects.) Or provide options to the user to save and load .kateproject file from (1) a ~/.config/.... folder, and (2) project/repository folder.
Comment 1 Christoph Cullmann 2021-02-21 19:00:00 UTC
Hi,

that works as intended.

If you want to open a project, you need to open either a file inside or the project file itself.

The "Filesystem Browser" will not auto-load projects, just like the "File Dialog" won't either.

I would feel the opposite to be rather intrusive, given it will open stuff just by browsing through the directories.