marcusolsson / obsidian-projects

Plain text project planning in Obsidian
Apache License 2.0
1.49k stars 60 forks source link

"Create note" hotkey should have project option reflect currently selected/opened project. #930

Open maximbelyayev opened 3 months ago

maximbelyayev commented 3 months ago

What would you like to be added?

For multiple projects, "Create note" hotkey should have "Project" option in the "Create new note" modal reflect the currently selected/opened project, not the project that was first created.

If no project is opened, the "Create note" hotkey should open the "Create new note" modal, and the respective "Project" option in the modal should have no input. This way input from the user in the "Create new note" modal is required (unless an option like "Default project" in the settings of Projects plugin is created/implemented and then specified by the user).

Why is this needed?

The "Create note" hotkey greatly helps ergonomic flow; it doesn't require the user to touch their mouse to create a new note.

However, with multiple projects the current behavior of the hotkey is to create a new note in the first project from the list, rather than whatever project is currently opened.

This creates confusion and forces me to go into the first project, locate the newly created note, and move it to the project folder that I originally wanted.

Example:

I have project "Example Project" opened. However, "Web Development" is the first project I created. Thus, the hotkey to create a new note points to "Web Development" instead of "Example Project":

Screenshot 2024-08-03 at 12 16 08 PM
bean5 commented 3 months ago

I think multiple projects can be open at a time. The safer way to handle this is to check if multiple projects exist and if there are more than 1, ask the user which type to add.