This repository was archived by the owner on Jun 10, 2023. It is now read-only.
This repository was archived by the owner on Jun 10, 2023. It is now read-only.
Best option for key bindings? #1
Closed
Description
The current proposed bindings ctrl-shift-x for run and ctrl-shift-z are easy to hit but possibly non-intuitive and not very similar to OS X key bindings, especially in relation to other editors. Wondering if there is a better option or if we should change the OS X key bindings to match?
On Mac OS X:
- TextMate: Command-R to run
- Sublime Text: Command-B to run (???)
On Linux:
- Terminal: Ctrl-C to interrupt
Activity
Add linux keybindings
batjko commentedon Jul 17, 2014
So on Windows and Linux, is it
Ctrl-C
orAlt-C
now for terminating the script (andCtrl-X
orAlt-X
for running it respectively)?The Readme on the package is different to what you wrote above.
ioquatix commentedon Jul 17, 2014
@batjko Sorry for any confusion. I wasn't really sure and I've been experimenting with a couple of options over the past few days.
I'm pretty happy with the current ones.
On Mac, it's Ctrl-X to run, Ctrl-C to terminate.
On Windows/Linux, it's Alt-X to run, Alt-C to terminate.
What do you think?
batjko commentedon Jul 17, 2014
Well, both is probably fine, except that on Windows (and I think Linux too? Not sure.) programs and command line scripts/tools are usually aborted with Ctrl-C as well. Was there a reason you're using Alt instead?
ioquatix commentedon Jul 17, 2014
On Linux, Ctrl-C is copy, and I didn't want Ctrl-X and Alt-C, just seemed like moving fingers too much. Not sure of any better options really. I spent quite a bit of time looking at my keyboard and not trying to clobber the existing key bindings from Atom.
batjko commentedon Jul 17, 2014
Ah. Ctrl-C is copy on Windows too, of course, except inside a shell / command line, in which case it is usually halting the running process.
Well either, way. I think Alt works just fine.
ioquatix commentedon Jul 17, 2014
@batjko if you have any other ideas or suggestions please let me know :D
pezcode commentedon Aug 3, 2014
Just a heads-up, ALT+X and ALT+C don't work on Windows. Shortcuts including ALT are generally used for menu interaction, and you'll get an error sound.
CTRL+ALT+X/C works fine in my opinion.
ioquatix commentedon Aug 3, 2014
Okay, will update (see #5 for more details).
ioquatix commentedon Jan 19, 2015
@huba did you have some ideas about key bindings?
huba commentedon Jan 19, 2015
What about Ctrl+Shift+X/C? That might follow atom's key binding pattern, for example there is Ctrl+F for find in current buffer and Ctrl+Shift+F for find in current project. But I also think Ctrl+Alt+X/C is a good idea mentioned earlier by @pezcode . I'm guessing we should also stay away from the super key as a lot of DEs use it for desktop related functions.
On Linux Alt+X/C works fine.
ioquatix commentedon Jan 20, 2015
The big problem I couldn't overcome was trying to use natural terminal comands, e.g. Ctrl-C to send interrupt. But that wasn't possible because it's copy in an editor. In the terminal, copy is Ctrl-Shift-C which is annoying because it's different from everywhere else.
On OSX, Copy is Super-C, so Ctrl-C is free to use. On TextMate, Run is Super-R which is sort of intuitive, but it's a long way to stretch your fingers.
I think that the ideal key bindings are different for each platform, and it would be nice if they followed standard conventions as much as possible..?
15 remaining items