Kyhou
3 discussion posts
Disclaimer: my English is kinda bad, so I apologize if the text is hard to understand.
I'm trying to execute a text query using the command line but I'm having some problems.
The queries I'm trying to execute have multiple words, so I need to put quotes around them.
The text for the query is coming from Visual Studio (using the external tools functionality) and can't find a way to put quotes around the text.
the command is: -start -q $(CurText)
Jan 20, 2021 (modified Jan 21, 2021)
•
#1
So $(CurText) is some text that gets passed from Visual Studio? You may have to make sure the quotes are added to the text within Visual Studio before passing them to the command line for FileSeek.
If I do this, it works fine: FileSeek.exe -start -q "two words"
But I'd imagine that this doesn't work: FileSeek.exe -start -q "$(CurText)"
Kyhou
3 discussion posts
Yes, the $(CurText) passes the selected text.
I tried it using -start -q "$(CurText)", but it don't work too.
Jan 21, 2021 (modified Jan 21, 2021)
•
#3
Ok, it looks like there's no way to pass quotes using the external tools feature in Visual Studio. However, you can work around this by enabling the "Treat query text as one large query term" option on FileSeek Settings > Search tab. That will treat the passed text as if it were quoted.
Hope that helps!
Kyhou
3 discussion posts
Yes, that solves the problem! Thanks o/
Excellent, glad to hear it!