p5.js-web-editor
p5.js-web-editor copied to clipboard
Implement Shortcut for Creating New Folder
Increasing Access
Description: Currently, users must manually click a button or use a menu option to create a new folder in the application. To improve usability and efficiency, I propose adding a keyboard shortcut for this functionality.
Feature request details
Proposed Solution:
- Add a keyboard shortcut(eg. cmd/ctrl +shift+N) to create a new folder.
- Ensure the shortcut is clearly documented in the application's help or settings menu.
Accessibility Considerations:
- Ensure the shortcut does not conflict with existing browser or system shortcuts.
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, be sure to follow the issue template if you haven't already.
Thanks for opening this @takshittt!
I also mentioned this in #3383, but adding my thoughts here as well:
Before implementing this, I think we might need to take a step back to discuss and reach a communal consensus on what the specific shortcut key should be, ensure that it makes sense across different operating systems, won't conflict with and is easy to use relative to other keys on the editor, and also check if it's commonly used keys on other platforms as well.
I think the key that you're proposing here is already being used for 'New File', so I think we might want some discussion first on what this key should be.
@takshittt @raclim maybe We can use 'cmd/ctrl +shift+N' to create folder because 1.This shortcut is already widely used in Windows and macOS to create new folders, making it intuitive for users. 2.Users won’t have to memorize a new shortcut, as many are already familiar with this combination. 3.Also the issue already suggest the same. What are your thoughts on this?
I propose assigning the shortcut Alt+Shift+N on Windows/Linux and Option+Shift+N on macOS for the "New Folder" action in the p5.js Web Editor.
- This key combination is intuitive, easy to remember, and avoids conflicts with existing shortcuts used by the editor or browsers—such as 'Ctrl/Cmd+N' for creating a new sketch file and 'Ctrl/Cmd+Shift+N' for opening a new private browser window.
- Additionally, this shortcut aligns with conventions in other development environments (e.g., Eclipse uses it for "New Resource"), making it familiar to users with prior coding experience.