ahkpp
ahkpp copied to clipboard
Help doesn't search when I select a quoted string
Description
Some selected text values don't seem to trigger search when I open help
Reproduction steps
Steps to reproduce the behavior:
- Select/highlight
"potato"
in some AHK file (including the quotes) - Open help
Expected behavior
Search for "potato"
is made in help
Additional context
Help opens but keeps the previous search. This is because when we try to inject "potato"
into the file, we get searchText := ""potato""
which in AHK is a syntax error.
Workaround: Don't select values that start or end with "
.
thqby gets around this by searching via JS. Ref #78.