find in literal strings, except in docstrings

It's very handy to be able to exclude string literals, or comments, from Ctrl-F Find, under More Options. Is it possible to search within string literals but exclude docstrings?

  • In Comments Only
  • In Literals Only
  • In Literals Other Than Docstrings
  • Except Comments
  • Except Literals
  • Except Comments and Literals

Of course I realize this more than doubles the options that might make sense. But the only one I want right this moment is to search literals and skip the docstrings. I'm looking for code that handles dashes but there are 171 dashes mostly in the docstrings.

Please sign in to leave a comment.