search in files to allow F4 incl line-no -- like grep
Moderators: Hacker, petermad, Stefan2, white
-
- New Member
- Posts: 1
- Joined: 2009-04-27, 09:08 UTC
- Location: Denmark
search in files to allow F4 incl line-no -- like grep
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
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
How many editors supports this? - if anyposition the editor on the line containing the search term

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
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.

Holger
I just realized that my own favourite editor Metapad also supports it (/g row:col) - shame on me 

License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar