Meta Stack Exchange is where users like you discuss bugs, features, and support issues that affect the software powering all 158 Stack Exchange communities.

What is meta?
Here's how it works:
  1. Any Stack Exchange user can ask a question
  2. The community provides support, votes on ideas, and reports bugs
  3. Your voice helps shape the way Stack Exchange operates

Many other query editors use Ctrl/⌘ Command + ⏎ Enter to execute the current query, and it would be great if the Data Explorer could do the same.

It would save the world so much time if we all didn't have to:

  1. Move our hand over to the mouse
  2. drag the cursor over to the button
  3. Click each time we wanted to run the query

And then, if we make a mistake, we have to reverse the process to go back to editing!

Please, help save the world and shrink the feedback loop.

share|improve this question
If you don't have carpal tunnel, it should not be so hard to move your hand and mouse to the button. Other than that, your implementation should not be too hard to implement with some javascript magic. – amanaP lanaC A nalP A naM A Apr 5 '12 at 13:27
+1 just for adding those symbols to the "Command" and "Enter" keys. – jadarnel27 Apr 5 '12 at 13:33
@jadarnel27 - Unicode FTW. – cdeszaq Apr 5 '12 at 13:37
jQuery-cadabra-hey-presto! – Lix Apr 5 '12 at 13:37
The 1-foot move from kbd to mouse + the delicate, focused movement needed to get the cursor positioned correctly takes far longer and way more effort than just ctrl+enter. I can hit ctrl+enter with just a quick wrist rotation and a pinkey extension for each hand, which is way faster. And I can go right back to editing just as quickly, which beats out a mouse any day. – cdeszaq Apr 5 '12 at 13:47
@cdeszaq I find it as good exercise ^_^ – amanaP lanaC A nalP A naM A Apr 5 '12 at 13:49

Makes sense, given that you can't tab out of the field. I added code for the Ctrl + Enter case.

CodeMirror supports key binding in a fairly direct and easy way, so I don't know enough about the implementation to tell whether this will also cover the ⌘ Command case (and I don't own a Mac to test). In the event that it doesn't, any inclined Mac users out there should feel free to submit a patch.

share|improve this answer
nice now if I would only stop pressing F5... – Some Helpful Commenter Apr 5 '12 at 15:53
F5 will also now run the query. – Rebecca Chernoff Aug 31 '12 at 19:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .