[Github-comments] [geany/geany] Improve user experience when creating new projects, attempt 2 (PR #3042)

Jiří Techet notifications at xxxxx
Sat Dec 4 16:28:26 UTC 2021


(This is an attempt to address various comments from #3018 - check this pull request for more details.)

Improve user experience when creating new projects
At the moment, when creating a project, the user is greeted with the
dialog containing:
1. Name
2. Filename
3. Base path

The user is expected to type the name of the project into (1), and then,
Geany tries to guess the base path and file name. The guess simply takes
the project directory specified in settings and appends the name. When the
project is located anywhere else than in the projects directory,
the guessed values are wrong and have to be entered manually which is
quite annoying. In addition, the dialog doesn't make it clear that the
user should start with (1), when he starts with (2) or (3), he has to
fill in all 3 values manually.

This patch adds another method of project creation which is more
suitable for creating projects from existing directory with source
files. There's a new "Project->New from Folder..." option that in
the first step asks user to provide the base path and based on this
path fills in the entries in the New Project dialog.

With this approach, Project->New from Folder...:
a. First pops up a open directory dialog to specify base path
b. After that, opens the (currently used) New Project dialog which
is pre-filled in the following way:
  1. Name: The last directory in base_path
  2. Filename: depending on "store project file inside the project base
directory" settings either in base_path/(1).geany or projects_dir/(1).geany
  3. Base path: path specified in (a)

This way, in most cases, the user will only have to select the base
directory in the first step and use the pre-filled values without
any modification no matter whether the project is stored in the projects
directory or not.

After this patch, there will be 2 different ways to create projects:
1. Project->New - more suitable for creating empty projects from scratch
inside the "projects" directory
2. Project->New from Folder - more suitable for creating projects from
existing sources
You can view, comment on, or merge this pull request online at:

  https://github.com/geany/geany/pull/3042

-- Commit Summary --

  * Improve user experience when creating new projects
  * Add keybindings for "Project->New from Folder"
  * Store project files in base directory by default
  * Make the New Project dialog a little wider

-- File Changes --

    M data/geany.glade (17)
    M src/callbacks.c (8)
    M src/callbacks.h (2)
    M src/keybindings.c (5)
    M src/keybindings.h (2)
    M src/keyfile.c (2)
    M src/plugindata.h (2)
    M src/project.c (77)
    M src/project.h (2)
    M src/ui_utils.c (15)
    M src/ui_utils.h (2)

-- Patch Links --

https://github.com/geany/geany/pull/3042.patch
https://github.com/geany/geany/pull/3042.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/3042
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20211204/2c23deda/attachment.htm>


More information about the Github-comments mailing list