Author Topic: Copy matching lines in Find output window  (Read 1599 times)

Offline JJK

  • Registered User
  • Full Member
  • *
  • Posts: 152
  • Karma: +2/-0
Copy matching lines in Find output window
« on: January 16, 2009, 12:43:13 PM »
Currently the Find output window receives some data relative to the matching lines, but not the exact content of those lines.
As you intend to enhance Find output window for 1.50, and because Pspad is able to do that, I'd wish the possibility to copy in the Find output window the matching lines found when finding text. So one could for example a new file with only those lines.
Of course each line containing more that one match text would be copied only once.

More, could you add an option to copy instead NON matching lines ?

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2214
  • Karma: +37/-3
    • HippoEDIT
Re: Copy matching lines in Find output window
« Reply #1 on: January 16, 2009, 02:25:22 PM »
Ok, I have understood. I think I need two more flag for search... I would try to do this in 1.50, only as I somewhen wrote to Stefan, where to place all this flag in such already overcrouded and large search dialog... :/
Just for information: the line text is cut only if it is bigger then 255 symbols.   This is done for performance reasons, otherwise you can copy coplete file, and if file is 1gb :)
« Last Edit: January 16, 2009, 02:27:19 PM by alex »

Offline Stefan

  • Administrator
  • Hero Member
  • *****
  • Posts: 775
  • Karma: +6/-0
Re: Copy matching lines in Find output window
« Reply #2 on: January 16, 2009, 10:26:54 PM »
I just found an trick how  to  implement the "copy NON matching lines" feature:

  • search and collect all lines numbers of matching lines.
  • then simple copy lines not in that matched-array.


To simple to be good? :D

-----

> where to place all this
  • add an [Option...]-button at the Search-Dialog to show an "Search Options"-side of the main Tools>Options...-Dialog under [+ ]-Editor
  • "Result Output"- area  could be  shrinked to an Drop-Down menu
  • use an option to expand and shrink the Search-Dialog to two fixed widths
  • or an option to resize the dialog to see more or less options
  • use an tabbed Search-Dialog