Bug 428110 - Feature request: allow opening an arbitrary directory as project
Summary: Feature request: allow opening an arbitrary directory as project
Status: RESOLVED FIXED
Alias: None
Product: kate
Classification: Applications
Component: application (other bugs)
Version First Reported In: 20.08.1
Platform: Manjaro Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-22 19:29 UTC by newaadd
Modified: 2021-03-12 20:49 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 21.04
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description newaadd 2020-10-22 19:29:53 UTC
The problem

VSCode and pantheon-code (from elementaryOS) both have a feature allowing the user to open a directory as a project. The problem is the former is a bloated, slow mess, the latter lacks any useful features beyond that one. Kate on the other hand has a project plugin, that allows creating projects with a .kateproject file or a VCS system. This is not exactly user-friendly in my opinion, because you can't set up arbitrary random directory as a project easily.


The solution

When the Project plugin is active, add an option right under [File] -> [Open] which would be something like "Open directory as project", to allow the user to select a directory and in the selected directory create a .kateproject file which would contain the following contents:

{
  "name": "DIRNAME", 
  "files": [ 
    { "directory": ".", "recursive": 1 }
]
}

or something similarly generic.
Also, it would be good to always show ".kateproject" file in the Project's sidepanel as it is an important part of the project.
Comment 1 Waqar Ahmed 2021-03-12 20:49:05 UTC
Resolved https://invent.kde.org/utilities/kate/-/merge_requests/336