For anyone still using AstroGrep, a great GUI GREP Utility for Windows, here is how you set Notepad++ as the default editor. If you are still using AstroGrep you may be too lazy to look up the command line switches for Notepad++, so here you are: copy and paste:
- Launch AstroGrep.
- Select Options from the Tools menu.
- In the Options dialog that appears select the Text Editors tab.
- Add a new entry or edit an existing entry and use the following info
- For File type, enter the file types you wish to open in Notepad++ – I use an asterisk (*) to open all files.
- Type the path or browse for the path to Notepad++ in the Text Editor Location entry.
- In the command line enter this:
-n%2 -c%3 %1
It should look like this:
Now when you double click on a line in the bottom pane it will open the file in Notepad++ and your cursor will appear on the exact line and column which you clicked.
This is the exact tip I was looking for. Unfortunately, it doesn’t work on the newest versions of both. AstroGrep 4.2.3/Notepad++ 6.0
Hi M,
This does work for me in Notepad++ 6.0 and AstroGrep 4.2.3 on Windows 7 (64 bit). One thing to note is that if you double click in the top pane of results area of AstroGrep (on the filename/path) it will open the file in Notepad++ at line 1 column 1. Be sure to double click on the line in the bottom pane of results. When clicking here it will open the file to the exact line.
Perfect! That does the trick. If the text I was searching for had returned multiple lines, I probably would have thought of that. Thank you.
Thank You so much for this tip :)