Add search to FileGoTo command
Posted: Fri Dec 03, 2021 4:23 pm
Currently, the command FileGoTo (for me, mapped to ctrl-shift-G) takes the current selection as a filename and opens the file. The command is flexible enough to expand the selection to find a filename or just take the filename around the current cursor.
The command also allows the file to be opened at a specific line: W:\wip\project-abc.txt(44) which opens the file at line 44.
It will also allow for a column number: W:\wip\project-abc.txt(44,12)
The above is fine for a fairly static file, or a log file that only grows at the end.
Please could there be an option to open the file and search for a specific string. Something like: W:\wip\project-abc.txt(/subsection title/)
I also open log files at the end via: W:\wip\project-abc.txt(99999)
so it would be "tidy" to add a cleaner syntax like:
W:\wip\project-abc.txt(eof) or W:\wip\project-abc.txt(end)
The command also allows the file to be opened at a specific line: W:\wip\project-abc.txt(44) which opens the file at line 44.
It will also allow for a column number: W:\wip\project-abc.txt(44,12)
The above is fine for a fairly static file, or a log file that only grows at the end.
Please could there be an option to open the file and search for a specific string. Something like: W:\wip\project-abc.txt(/subsection title/)
I also open log files at the end via: W:\wip\project-abc.txt(99999)
so it would be "tidy" to add a cleaner syntax like:
W:\wip\project-abc.txt(eof) or W:\wip\project-abc.txt(end)