Closed timotheecour closed 1 year ago
My biggest concern is that this would conflict with other plugins. Plus, users can create their own key combos. Given that there's already a command in the command palette, would this really add anything substantial?
I understand your concern, but at least API should allow for user to define a key combo/menu item to remove the red error annotations, see example below:
you can reproduce with:
when defined(foo):
proc fun1()=
discard
fun1()
@timotheecour The used can create a custom hotkey using the same command that is run from the command palette .
the same command that is run from the command palette
[ ] sorry for being thick... which command is that?
[ ] related question, where are these defined in code?
insert_snippet
etc
grepping for it I only see:
Default (Linux).sublime-keymap:2:35: {"keys": ["f12"], "command": "gotodef", "context":
Default (OSX).sublime-keymap:2:35: {"keys": ["f12"], "command": "gotodef", "context":
Default (Windows).sublime-keymap:2:35: {"keys": ["f12"], "command": "gotodef", "context":
but I'm not seeing it defined in py file in NimLime repo, as follows:
class gotodef(sublime_plugin.WindowCommand):
here's another example: it's quite annoying to edit a file with all the red annotations:
/cc @Varriount let me know if you need more details/description