1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-17 16:02:33 +01:00
uBlock/src/js/codemirror
Raymond Hill a095b83250
Use a CodeMirror editor instance in element picker
This allows to bring in all the benefits of
syntax highlighting and enhanced editing
features in the element picker, like auto-
completion, etc.

This is also a necessary step to possibly solve
the following issue:

- https://github.com/gorhill/uBlock/issues/2035

Additionally, incrementally improved the behavior
of uBO's custom CodeMirror static filtering syntax
mode when double-clicking somewhere in a static
extended filter:

- on a class/id string will cause the whole
  class/id string to be   selected, including the
  prepending `.`/`#`.

- somewhere in a hostname/entity will cause all
  the labels from the cursor position to the
  right-most label to be selected (subject to
  change/fine-tune as per feedback of filter
  list maintainers).

Related feedback:
- https://github.com/uBlockOrigin/uBlock-issues/issues/1134#issuecomment-679421316
2020-10-14 10:21:30 -04:00
..
search-thread.js Fine tune CodeMirror editor's search widget 2020-08-03 08:55:02 -04:00
search.js Fine tune visuals of CodeMirror's search feature 2020-08-04 10:14:38 -04:00
ubo-dynamic-filtering.js Do not syntax-highlight ... in "My rules" pane 2020-09-23 11:14:09 -04:00
ubo-static-filtering.js Use a CodeMirror editor instance in element picker 2020-10-14 10:21:30 -04:00