-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor should provide option to reformat source #78
Comments
There's Preferences>Shortcuts>RD which you can map to a key combination of your choice but it uses RIDE's own formatting - not 100% compatible with the interpreter's. |
Ok. But, to be honest, it is not really userfriendly (IMHO) to "hide" such functionality in a shortcuts-table somewhere. Can't we have a proper menu which would expose these functions (and possibly even indicate the key-combination that had been assigned to it?) |
You can add |
RD from the keyboard does not work. I should not need to mess with preferences for it to do so. |
RIDE should probably copy the ODE's default key binding for RD, which is numeric-keypad-/. Currently RIDE's keyboard shortcut system does not distinguish numeric-keypad-/ from normal /, so it would need a bit of work. |
RIDE should at least honour the users keyboard so that RD (UF819) works. How
the unicode UF819 is generated is not the point - if that code reaches RIDE it
should honour it as if RD was requested. Similarly, for any other codes on
that page that are relevant.
…On Thursday, 2 March 2017 04:48:48 GMT jayfoad wrote:
RIDE should probably copy the ODE's default key binding for RD, which is
numeric-keypad-/. Currently RIDE's keyboard shortcut system does not
distinguish numeric-keypad-/ from normal /, so it would need a bit of work.
|
No, as a design decision RIDE does not respond to these Dyalog private-use-area command codes. |
I have no recollection of being involved in such a decision. I would have
strongly objected. It makes the Linux keyboard inappropriate with RIDE which
seems like a backward step.
…On Thursday, 2 March 2017 07:22:01 GMT jayfoad wrote:
> RIDE should at least honour the users keyboard so that RD (UF819) works
No, as a design decision RIDE does not respond to these Dyalog
private-use-area command codes.
|
I have just looked into this and found that the module we use (CodeMirror) is natively not distinguishing between numpad keys and their equivalents. I've found a way top extend it to do exactly that and set the default shortcut to match the ODE (NumpadDivide). Together with 0eda47c this should now work as requested. |
@geoffstreeter @jayfoad Line 353 in 167f1aa
(If you adopt a policy of not supporting the private range, I think that code should be removed.) However, due to a bug in Chromium, some special key combinations don't produce characters - Chromium hijacks them before xkb has a chance to process them, and they never reach CodeMirror/RIDE. See https://bugs.chromium.org/p/chromium/issues/detail?id=485528#c14 |
As ODE did with Edit > Reformat.
The text was updated successfully, but these errors were encountered: