Editor Shortcuts... #3162
Replies: 8 comments 7 replies
-
Just a heads up that you used The manual section about keyboard shortcuts mentions that they are designed to work the same on all the supported platforms, e.g. the Mac-PC thingy with the At some point it also mentions that the shortcuts aim to provide an alternative to reaching for the arrow keys. But i can definitely agree with you on the proposed additions. Especially the lack of a search function has tripped me up very quick. |
Beta Was this translation helpful? Give feedback.
-
A command to stop the programming from running does allready exists I agree that the For me as windows user it was new for using the alt key to trigger commands, since I was used to the Ctrl, but the same goes for mac users with the CMD key. Since the main purpose of this tool is to educate people and the main users are teachers. It makes sense to make a generic shortcut key the Alt in this case for all platforms. This way a teacher does not have to re-explain why Ctrl+C is not working on mac over and over again. But adding more short cuts can be a great feature, to improve the usability. Especially for live coding sessions. |
Beta Was this translation helpful? Give feedback.
-
I have just discovered Sonic Pi today and had a quick jam session. I have noticed that as someone using a code editor every day, I was expecting many of these shortcuts to work. To the ones listed at the top of the thread I would add the ability to tweak numeric values (as you may know from browser dev tools) with keyboard. Alt+Up/Down – change by ±0.1, Up/Down – change by 1, Shift+Up/Down – change by ±10. For live jam sessions this would make the workflow of tweaking numerical params so much easier, in my opinion. Edit: I have realized that the edit up or down w/o any modifier key could cause some strange issues as the params are just code (moving up in the code, cursor running into a number, getting stuck modifying it, panic 😅). |
Beta Was this translation helpful? Give feedback.
-
Not so frequent user here: any time I try learn music with Sonic Pi, I get stuck at learning the interface of the editor. So many things with this editor are non-standard solutions, so I have to learn the editor first before I can learn the music and this is very demotivating. Plus: as a user with a German keyboard layout I can't even use some of the most needed shortcuts like commenting out lines. So I tried it with an American layout (on a German keyboard!) for a bit, but this made it way worse because it's another level of complexity that pushes me away from actually learning music. Why can't we just have configurable shortcuts like any other editor? As an advanced features we could even do templates/configs that can be created by everyone and shared with other users. Might even be a fun community activity that brings people together. |
Beta Was this translation helpful? Give feedback.
-
It will be great if all the vim shortcut can be integrated into the sonic pi editor. |
Beta Was this translation helpful? Give feedback.
-
Agreed that an overhaul of the shortcuts would be desirable - especially with a focus on customisation. However, it's not a high priority for me at this present moment. If someone has the motivation to work on it (it would involve quite a bit of C++/Qt unpicking and reworking) I'd love to consider pull requests or to discuss early prototypes. |
Beta Was this translation helpful? Give feedback.
-
A while ago I looked into this and made a list of the shortcuts I could find within Sonic Pi. Some of them are a bit unintuitive to those who are used to using common shortcuts from other editors, so it would definitely be good to allow users to change them. |
Beta Was this translation helpful? Give feedback.
-
Hi https://github.com/sonic-pi-net/sonic-pi/blob/dev/app/gui/qt/mainwindow.cpp#L535 I'd be happy to digest and understand the code so that we can look at making changes, creating custom keymaps, etc |
Beta Was this translation helpful? Give feedback.
-
In line with #955 (among other) it might be good practice to support other common (coding) shortcuts, like:
Ctrl-Space
to trigger code-completionCmd-f
to trigger a text-searchCmd-W
to close the windowCmd-,
to show settingsCmd-.
to stop runningAlt-[Up/Down]
to move one or multiple lines up downCmd-#
rather thanCmd-/
Cmd-[os]
to load / saveCmd-n
to make a new songAlt-Click
to open docs of the clicked functionCmd-Click
to jump to the definition of the clicked variableMost of these are universal, however, for reference I used VS Code (the most used IDE in 2019 according to StackOverflow)
Also, there are some questionable shortcuts, where I'm not sure why anyone would need them, like:
M-[ul]
- Convert next word (or selection) to upper/lower caseC-[pnfb]
- Move curser (same as ^,v,<,>)C-[hd]
- Delete forwards / backwards (same asDel
,Ctrl-Del
/Fn-Del
)S-M-[ud]
- Move up / down 10 linesSo what I'm basically trying to say is that the shortcuts as they are right now are quite unintuitive and make it hard to work fast and productive at least in my exp.
Beta Was this translation helpful? Give feedback.
All reactions