Usability enhancement: Returning to query editor after running a query #507
Replies: 3 comments 4 replies
-
Thanks for the feedback. I personally like F2 for this, but I understand you have different preferences. There aren't many key bindings to spare for the editor, but there are more options from the results viewer. ctrl+k could work, although that might be confusingly close to k, which switches to the next results viewer tab (if more than one query executed). We could also do another single key, like ;. Interested to hear more thoughts on this, and/or do some research on what the other SQL IDEs use (e.g., datagrip, dbeaver, etc.). Also probably relates to #422 and #371 We do need to reserve some bindings for sorting and filtering the Results Viewer, but otherwise the taken ones are: Results Viewer Bindings
Switching Tabs
Moving the Cursor
|
Beta Was this translation helpful? Give feedback.
-
Big thanks for having a look into this! It might also be an option, to make ctrl+j not a global "Run query" hotkey, but only run query on ctrl+j, when the editor is focused. And use the same ctrl+j to jump back to the editor when the results are focused. This would save wasting another hotkey. For the F-keys: Since most keyboards started to use them as media keys as well, and it requires the FN-modifier pressed to reach them, it got even more unpleasant to use them. I'd suggest to reserve them mainly for rarely used actions, opening help etc. |
Beta Was this translation helpful? Give feedback.
-
I usually only look at the results, and dont need to take action on those results, and so hitting a key to get back to the editor is friction. I understand others prefer this default, it seems like window switching should be a configuration. But on that topic, there doesn't seem to be an application level configuration file? The .harlequin.toml sets up connection info only AFAICT. |
Beta Was this translation helpful? Give feedback.
-
Right now, the focus jumps from the editor to the result window after running a query. Which is probably a reasonable default for most use cases.
Unfortunately, returning to the query editor after this forceful jump to the result window is a bit annoying. If I didn't overlook something, it currently requires leaving the comfortable base line of your keyboard and hitting F2 or grabbing the mouse. It would be very convenient for any workflow, that requires editing the query several times, to have another ctrl+something keyboard binding for this. Ctrl+k might be a reasonable choice, as ctrl+q and ctrl+e are already taken, and it would be near the ctrl+j, which was likely just used for running the query before.
Beta Was this translation helpful? Give feedback.
All reactions