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.

  • 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. – Naftali aka Neal Apr 5 '12 at 13:27
  • 2
    +1 just for adding those symbols to the "Command" and "Enter" keys. – Josh Darnell 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 ^_^ – Naftali aka Neal 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.


You must log in to answer this question.

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