racket / drracket

DrRacket, IDE for Racket
http://www.racket-lang.org/
Other
447 stars 94 forks source link

[Feature Request] Addition of "c:?" and "c:!" as new keybindings in DrRacket editor #454

Closed encomer closed 3 years ago

encomer commented 3 years ago

Problem Situation: The use of the inverted symbols "?" and "!" , are often required when using english keyboards, but in DrRacket editor we don't have the option to use the ALT-[number] for the corresponding codes.

Suggestion: Consider the addition of the following keybindings in the default configuration of DrRacket:

#lang s-exp framework/keybinding-lang
(keybinding "c:?" (λ (editor evt) (send editor insert "¿")))
(keybinding "c:!" (λ (editor evt) (send editor insert "¡")))

This would be very useful in order to use this keybindings in an online course, and avoiding the need to add them in some of the computers in the group.

Thank you very much for considering this request. Please Keep Safe. Enrique

capfredf commented 3 years ago

I guess you would want to report this issue to the drracket repo

sorawee commented 3 years ago

I think it's fine. People who have write permission on both repos can transfer the issue. No need to close and reopen.

but in DrRacket editor we don't have the option to use the ALT-[number] for the corresponding codes.

This sounds like the real problem that should be fixed.

Consider the addition of the following keybindings in the default configuration of DrRacket:

IIUC, c-? is not a standard keyboard shortcut for inserting ¿. So I strongly disagree that it should be the default for DrRacket.

rfindler commented 3 years ago

This really does sound like something that should be handled at the OS level to me, overall. It may already be handled there, in fact?

gus-massa commented 3 years ago

@encomer: Which operative system are you using? In Windows you have like 3 simultaneous configurations for the keyboard. You can choose something like "US-international" and it will enable the combinations of keys to get accents and other characters like ñ.

rfindler commented 3 years ago

On a Mac, it looks like typing option-shift-? will get you ¿ and option-1 will get you ¡ (which is, for me, close to "option plus the non-upside down variant").

encomer commented 3 years ago

Thank you for all your comments. @gus-massa : I'm using a desktop computer with Windows 10. The problem of changing keyboards is that visually is not very practical (especially if its only for these two symbols).

With your suggestions, I searched a little bit on the web and found: [right-alt]+/ generates the symbol ¿. And [right-alt]+1 generates the symbol ¡ (Really very practical).

Thanks again for your support.

rfindler commented 3 years ago

@encomer I've transferred the issue to the DrRacket repo. I really don't think it makes sense to add these keybindings to a default install of DrRacket. There are many users of DrRacket out there and many different keyboards and configurations that the OS is in control of. Changing them at the "last mile" is surely going to wreck someone else's use of DrRacket.

I think probably best to give instructions to your students to use the Edit|Keybindings|Add User-Defined Keybindings... menu item.

encomer commented 3 years ago

Thank you very much @rfindler . I will do as you said. Congratulations to all of you for the great collaborative work.

P.S. As a possible separate issue, it would be interesting to see how to accept under DrRacket Editor, the sequence [Alt]-[number code].
Please Keep Safe. (We may close the issue. Thanks again)