obsidian-workspaces-plus icon indicating copy to clipboard operation
obsidian-workspaces-plus copied to clipboard

Create/save new workspace as with enter instead of shift + enter

Open jsmorabito opened this issue 3 years ago • 3 comments

Change to "No match found. Use ↵ to save as."

One less to key to press for an action that's easily reversible as opposed to deleting a workspace which is currently irreversible which is why we have the delete confirmation prompt xD

image

jsmorabito avatar Sep 13 '21 01:09 jsmorabito

Shift enter is to differentiate from the search and select behavior. This to avoid someone quickly activating the modal, typing a workspace name they expect to exist and then pressing enter immediately to switch to it. The current behavior does nothing when your press enter if there are no results, indicating your search returned no results.

Is this consistent with other application modals that overload a search and create functionality?

nothingislost avatar Sep 13 '21 02:09 nothingislost

Shift enter is to differentiate from the search and select behavior. This to avoid someone quickly activating the modal, typing a workspace name they expect to exist and then pressing enter immediately to switch to it. The current behavior does nothing when your press enter if there are no results, indicating your search returned no results.

Is this consistent with other application modals that overload a search and create functionality?

not sure! I can see the rationale going both ways so ill look around for some examples

jsmorabito avatar Sep 16 '21 20:09 jsmorabito

The current behavior does nothing when your press enter if there are no results, indicating your search returned no results.

It does not behave this way for me. When I press enter, it switches to the workspace at the top of the list. Also see #97.

ParkerRobb avatar Feb 07 '23 16:02 ParkerRobb