This PR enables opening folders with Geany. Resolves #1171, others.
* Folders are turned into projects. + Project name is set to the basename of the folder. May be changed from *Project / Properties*. + When the `project_file_in_basedir` option is set, the `.geany` file is created inside the folder with name `[basename].geany`. + Otherwise, `.geany` files are stored in `~/.cache/geany/folders/` with name `[basename]_[path-md5].geany`. * If the folder already has a project file (as noted above), the project file is opened. * Folders to open may be specified at the command line. Any filenames following the folder name are added to the project. * New menu items: + *Project / Open Folder...* + *Project / Save As...* – to resave temporary project file to permanent location or to fork existing project to a different file. * Does *not* interfere with existing method of project creation.
You can view, comment on, or merge this pull request online at:
https://github.com/geany/geany/pull/3044
-- Commit Summary --
* Open folders as project
-- File Changes --
M data/geany.glade (18) M src/callbacks.c (14) M src/libmain.c (62) M src/main.h (2) M src/project.c (166) M src/project.h (8)
-- Patch Links --
https://github.com/geany/geany/pull/3044.patch https://github.com/geany/geany/pull/3044.diff