Closed srichter closed 1 year ago
This tracks the state of regions added by the plugin and adds a context key for querying that state. It allows someone to set up a conditional keybind to clear the regions, e.g.:
{ "keys": ["escape"], "command": "phpcs_clear_sniffer_marks", "context": [ { "key": "phpcs.regions_visible", "operator": "equal", "operand": true } ] }
Thanks for the contribution @srichter
I'm currently not working with PHP, or Sublime, so cannot quickly test this. It may be a while before I can rig this all back up. Apologies.
This tracks the state of regions added by the plugin and adds a context key for querying that state. It allows someone to set up a conditional keybind to clear the regions, e.g.: