Skip to content
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
@ioquatix

Description

@ioquatix

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

added a commit that references this issue on Jul 14, 2014
changed the title Best option for linux key bindings? Best option for key bindings? on Jul 14, 2014
batjko

batjko commented on Jul 17, 2014

@batjko

So on Windows and Linux, is it Ctrl-C or Alt-C now for terminating the script (and Ctrl-X or Alt-X for running it respectively)?

The Readme on the package is different to what you wrote above.

ioquatix

ioquatix commented on Jul 17, 2014

@ioquatix
OwnerAuthor

@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

batjko commented on Jul 17, 2014

@batjko

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

ioquatix commented on Jul 17, 2014

@ioquatix
OwnerAuthor

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

batjko commented on Jul 17, 2014

@batjko

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

ioquatix commented on Jul 17, 2014

@ioquatix
OwnerAuthor

@batjko if you have any other ideas or suggestions please let me know :D

pezcode

pezcode commented on Aug 3, 2014

@pezcode

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

ioquatix commented on Aug 3, 2014

@ioquatix
OwnerAuthor

Okay, will update (see #5 for more details).

ioquatix

ioquatix commented on Jan 19, 2015

@ioquatix
OwnerAuthor

@huba did you have some ideas about key bindings?

huba

huba commented on Jan 19, 2015

@huba
Collaborator

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

ioquatix commented on Jan 20, 2015

@ioquatix
OwnerAuthor

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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Best option for key bindings? · Issue #1 · ioquatix/script-runner