New Prometheus query editor (monaco) no longer support CTRL + ENTER #44010
Replies: 8 comments
-
can you please try and replicate this on our public sandbox instance, https://play.grafana.org? For me, with play running Grafana v8.3.3 (30bb7a9), CTRL + ENTER I tested on Firefox 93.0 and Chrome 96.0.4664.93 (Official Build) (arm64) update: SHIFT + ENTER still works |
Beta Was this translation helpful? Give feedback.
-
@zuchka Good to know that CTRL + ENTER should still be there 😌 play.grafana.com behaves the same than my local instance. Screencast.from.12-23-2021.07.40.52.AM.mp4(I tested in private mode to disable most plugins just to be safe) Since this seems browser related, my detailed Browser info are:
I think it's unrelated, but please note than I use an US international keyboard layout (i.e. with dead keys) which caused problems in the previous editor. I will try to gather more data points from coworkers, maybe we can find a common pattern. |
Beta Was this translation helpful? Give feedback.
-
One co-worker might have figured it out. Loki and old Prometheus query editor supported both shift + enter and ctrl + enter. New Prometheus only supports shift + enter. I'm used to ctrl + enter as it matches the behavior of many tools (ex. enter adds a new line, ctrl + enter sends a message). I tried to find a list of all keyboard shortcuts in the documentation before raising this issue and only found https://grafana.com/docs/grafana/latest/dashboards/shortcuts/. Might be a good addition to the docs. |
Beta Was this translation helpful? Give feedback.
-
@cykl apologies. My muscle memory is so ingrained using explorer that I actually tested this with SHIFT and not CTRL. CTRL + ENTER didn't work for me on play either. Apologies for that confusion, but I'm glad the SHIFT shortcut still works. And YES, I don't even know all the hotkeys and shortcuts in Grafana. @grafana/docs-squad, should we add all the available shortcuts to the docs? Right now you can only view them by pressing The additional confusion is that the SHIFT + ENTER for running queries appears specific to several plugins like the Prometheus datasource...so maybe a note in the Prometheus data source docs? thoughts? |
Beta Was this translation helpful? Give feedback.
-
At this point, I think it makes sense to move this to the discussions as it's more about whether it makes more sense to have ctrl+enter or shift+enter and we may also have some inconsistencies as each data source needs to make sure it handles this correctly. |
Beta Was this translation helpful? Give feedback.
-
Sorry to comment on an old discussion, just wanted to chime in as this was bothering me a bit! In many apps doing For example:
Currently, the user can do Would anyone have anything against also making |
Beta Was this translation helpful? Give feedback.
-
One thing that is driving me crazy is that Prometheus' UI is executing the query after I hit Enter, while Grafana's editor is starting a new line. I am using both applications frequently, and I would prefer to not have this inconsistency. IIRC years ago the applications were behaving the same way regarding this feature. |
Beta Was this translation helpful? Give feedback.
-
Hello, as you may have heard, we are transitioning away from using discussions to discuss feature requests. We are migrating this discussion to an issue and closing the discussion. The issue is #83022. Feel free to continue the discussion around this there. Thank you! |
Beta Was this translation helpful? Give feedback.
-
What happened:
Most Grafana query editors allow to re-run the query by hitting CTRL + ENTER.
Prometheus query editor supported this shortcut until Grafana 8.2. Since Grafana 8.3, it no longer does 😭
Tweaking PromQL queries used to be a rather smooth experience. It is now a pain is the ass as you have to leave the keyboard, move the mouse to the top right corner to click on re-run, move the mouse back to give focus to the editor and grab the keyboard again and again. It's so infuriating that I ended up leaving Grafana explore view yesterday to use Prometheus UI instead 😞
What you expected to happen:
Bring back CTRL + ENTER! (or any other shortcut that work consistently across data source)
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
No.
Environment:
Beta Was this translation helpful? Give feedback.
All reactions