It would be really nice to have the option to include/exclude certain contexts from Find.
the most obvious use case is: I want to find all the occurrences of “foo” in my file, ignoring the comments.
It would be really nice to have the option to include/exclude certain contexts from Find.
the most obvious use case is: I want to find all the occurrences of “foo” in my file, ignoring the comments.
my current solution is to execute view.find_by_selector('- comment')
in the ST console and then do a find in selection. It doesn’t help when doing a Find in Files, though, unfortunately
That is a reasonable fix. However, I do not get this working. First select, then execute this command?
It would be great though to have a button for this…!
oh, sorry, I missed a step, was typing on my phone at the time
view.sel().clear(); view.sel().add_all(view.find_by_selector('- comment'))