Multicursor / Multiselect in SQL Editor

I believe Metabase is using Ace editor for its SQL editor. It would be nice to be able to use all the keyboard shortcuts defined in Ace Editor (defined here: https://github.com/ajaxorg/ace/wiki/Default-Keyboard-Shortcuts)

In particular, I would like to be able to do multi-select. For instance, if I highlight a word, I would like to be able to create a new selection that highlights the next word while keeping the original word highlighted.

On mac, this is cmd + d in VS Code. It appears Ctrl-Option-Right should do it in Ace however it doesn’t seem to be working in Metabase.

If there is another shortcut, what is it?

Thanks!

Hi @brendanfalk
Metabase currently uses Ace, but I don’t know why it isn’t working. There’s several shortcuts that doesn’t work on Linux.
We have considered switching to Monaco, but that’s a lot of work too:
https://github.com/metabase/metabase/issues/11327 - upvote by clicking :+1: on the first post

Okay. It is weird as some other shortcuts work. Are you overriding them?

@brendanfalk No, I don’t think so, but browsers do their own thing - and then your OS does it’s own thing too - so perhaps it’s being overwritten there.
https://github.com/metabase/metabase/blob/master/frontend/src/metabase/components/TextEditor.jsx
Metabase is currently using version 1.4.7:
https://github.com/metabase/metabase/blob/master/package.json