ZTree.com  | ZEN  | About...  

 Index   Back

[Tip] Macro: In View, list matching lines in console   [Tip]

By: Slobodan Vujnovic   Homepage   France  
Date: Nov 29,2013 at 17:41
In Response to: [Tip] Macro: In View, extract and edit only matching lines (Slobodan Vujnovic)

This variant is the quickest and creates no files.
It does not need customization.

; FindMatchingLines.ztm - Called from Viewer with existing Search string
; Grab last search string from history
f,UP,RET,HOME,SH_END,CTRL_INS,ESC,
; In eXecute window, FIND string in current file
x,CTRL_BKSP,@FIND,SPACE,/I,SPACE,QUOTE,SH_INS,QUOTE,SPACE,
; Insert file name
TAB,
; Enable paging with | more
|,MORE,
; Catch last incomplete page as well
&,@PAUSE,
; Back to Viewer
RET,STOP

1,097 views      
Thread locked
 

Messages in this Thread

 
96,640 Postings in 12,231 Threads, 350 registered users, 39 users online (0 registered, 39 guests)
Index | Admin contact |   Forum Time: Apr 19, 2024 - 2:38 am UTC  |  Hits:62,919,852  (1,032 Today )
RSS Feed