HippoEDIT homepage Welcome, Guest. Please login or register.
September 10, 2010, 09:25:50 pm
Home Help Search Login Register

+  HippoEDIT - Programmers text editor
|-+  General Category
| |-+  Scripting, Scripts and Macros (Moderators: alex, Stefan)
| | |-+  Idea collecting: What i wanna do with scripting
« previous next »
Pages: 1 [2] Print
Author Topic: Idea collecting: What i wanna do with scripting  (Read 1798 times)
Stefan
Administrator
Hero Member
*****

Karma: +6/-0
Offline Offline

Posts: 684



View Profile
« Reply #15 on: June 29, 2010, 09:23:35 am »

While browsing an long (long!) log file
i came to an line like " xxxx path\string\xxxx"
and i know there are many (many) of this kind of line, only differ at the end of the line.

Now i want to write an script to
- take the selection "path\string" into an var
- search the next line NOT containing that string (skipping that way all that similar lines)
- go one line up (to the very last line containing that string)
- go to END OF LINE
- insert {Enter} three times
Done.

I will scroll/read down the rest off the log on my own. (till the next bulk of several lines)



--- or an another possibility:
- take the selection "path\string" into an var
- set an bookmark
- search the next line NOT containing that string (skipping that way all that similar lines)
- go one line up (to the very last line containing that string)
- go to END OF LINE
- select up to bookmark
- delete


or
- goto pos1
- enable line selection mode
- select whole line
- while (current.line contains "path\string")
       go one down (while selecting)
  Loop
- delete
Logged

Stefan, HippoEDIT beta tester  (HippoEDIT News On Twitter: http://twitter.com/hippoedit/)
Stefan
Administrator
Hero Member
*****

Karma: +6/-0
Offline Offline

Posts: 684



View Profile
« Reply #16 on: July 10, 2010, 04:05:39 pm »

Concatenate Next Line
(just join the next line without doing an selection first)
 - go to end of current line
 - remove line break
 - add an blank
 - remove all whitespaces if any

Example:
First line, the current *|* line.
        Second line.

will get:
First line, the current line.*|* Second line.

instead of:
First line, the current line.        Second line.*|*
Logged

Stefan, HippoEDIT beta tester  (HippoEDIT News On Twitter: http://twitter.com/hippoedit/)
Pages: 1 [2] Print 
« previous next »
Jump to:  


Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC