Page 1 of 1

search in files to allow F4 incl line-no -- like grep

Posted: 2009-04-27, 09:15 UTC
by nicolai@drengene.dk
After a search in files I would like to be able to send the file to my favorite editor and position the editor on the line containing the search term.

Instead of just listing the files that match the search result could list all the lines that match just like the unix command "grep". Then with additional configuration for F4 I could tell my editor which line number to jump to.

- Nicolai

Posted: 2009-04-27, 18:45 UTC
by margolis22
Support ++

Posted: 2009-04-27, 22:34 UTC
by petermad
position the editor on the line containing the search term
How many editors supports this? - if any ;-)

Posted: 2009-04-27, 23:06 UTC
by HolgerK
petermad wrote:How many editors supports this? - if any ;-)
notepad-plus wrote:SYNOPSIS

notepad++ [-multiInst] [-noPlugin] [-nosession] [-lLanguage] [-nLineNumber] [-ro] [filesToOpen]

DESCRIPTION
...
* -n : Use this option to go to the LineNumber you want after opening filesToOpen. ex:
notepad++ -n150 E:\notepad++\PowerEditor\src\Notepad_plus.cpp

It will open the file Notepad_plus.cpp then scroll the view and place the cursor to the line 150.
PSPad wrote:Command line parameters
Command Format

"drive:\path\PSPad.EXE" [/switch -switch] "file1" ["file2" ...]

Available Switches
...
/nnn or -nnn
After open file, goto line or position in HEX.
:wink:
Holger

Posted: 2009-04-27, 23:35 UTC
by petermad
I just realized that my own favourite editor Metapad also supports it (/g row:col) - shame on me :-(

Posted: 2009-04-28, 10:50 UTC
by solid
EditPad Pro supports too.

Posted: 2009-04-28, 11:11 UTC
by Samuel
PSPad supports it too.
Support++;

Posted: 2009-04-28, 14:15 UTC
by Yuta
I miss this function very bad also.

Support++