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

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
nicolai@drengene.dk
New Member
New Member
Posts: 1
Joined: 2009-04-27, 09:08 UTC
Location: Denmark

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

Post 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
margolis22
Junior Member
Junior Member
Posts: 59
Joined: 2006-07-06, 23:15 UTC

Post by *margolis22 »

Support ++
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

position the editor on the line containing the search term
How many editors supports this? - if any ;-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post 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
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

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.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Post by *solid »

EditPad Pro supports too.
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

PSPad supports it too.
Support++;
User avatar
Yuta
Member
Member
Posts: 141
Joined: 2007-03-27, 16:52 UTC
Location: Argentina

Post by *Yuta »

I miss this function very bad also.

Support++
Post Reply