Skip to content

Search for code lines including brackets + search on different branches #274

Closed Answered by brendan-kellam
hnfhtw asked this question in Support
Discussion options

You must be logged in to vote

thanks for using the tool!

Answering your questions:

  1. The TLDR answer is that you can use \ to escape brackets. For example, foo\(bar\);. If your search includes spaces, you should use wrap the expression in "" and use \\ (since \ now needs to be escaped). E.g., "myFunction\\(argument1, argument2\\);". Checkout this doc for a quick reference.

    The more in-depth answer is that queries consist of space separated regular expressions that are AND'd together on a per-file basis (e.g., foo bar means that the regex /foo/ and the regex /bar/ must both match in a given file for that file to be included in the search results). The or keyword allows you to change this behaviour s.t., regexs are OR'd…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by brendan-kellam
Comment options

You must be logged in to vote
1 reply
@brendan-kellam
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants