quickwit-oss / quickwit-datasource

Quickwit data source for Grafana
GNU Affero General Public License v3.0
41 stars 10 forks source link

Trigger a search on key 'Shift-Enter' in lucene query editor #76

Closed fmassot closed 7 months ago

fmassot commented 8 months ago

Now that no query is run on query changes, we need to execute the query by clicking on the run button. From my point of view, we can't release with such a behavior. Did I miss something?

It's possible to have custom key binding with CodeMirror so we can fix that.

const keyMapExtension = keymap.of([
  {
    key: 'Shift-Enter',
    run: () => {
      // Do something
      return true
    }
  }
])