A toolbar can provide shortcuts to common tasks, such as a code wrapping toggle and a find and replace button.
Description
Related Objects
- Mentioned In
- T423756: AbuseFilter edit window cannot be resized horizontally
- Mentioned Here
- T399673: Add CodeMirror mode for AbuseFilter syntax
Event Timeline
There was no toolbar before when using Ace. A full list of available CodeMirror shortcuts can be viewed by pressing Ctrl-Shift-/.
I was pondering about this today… It might be difficult to devise any meaningful shortcuts unique to AbuseFilter, but we could still give editor-related buttons just like you see in non-wikitext?
In other words, what I think is being asked for here is to add WikiEditor support. And by that, really, we're just talking about only a toolbar that CodeMirror overrides anyway.
This further supports the notion that the CodeMirror extension should offer toolbar functionality. We seem to be crossing so many wires bringing WikiEdtior into it (at least outside the article namespace).
Wow, sorry. I've been editing filters for a while and somehow hallucinated that, maybe because Ace didn't wrap code by default and I was looking for a way to disable it, or because I was expecting a toolbar like when editing JavaScript or Lua modules.
Speaking of which, if a toolbar is indeed added, we would also toggle syntax highlighting from there instead of the awkward "switch editor" below the edit box.