Discussion:
[Notepad-plus-plus] [notepad-plus - Help] Copy lines that match search criteria?
SourceForge.net
2007-07-13 21:57:22 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4412101
By: nhartley


Is there a way to copy lines that match search criteria? I see you can mark
lines that match, but I have not found a way to copy these lines.

Any help would be greatly appreciated,

Nathan

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=331754
SourceForge.net
2007-07-14 15:43:44 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4412732
By: bullock

I write a keystroke macro for this purpose. With earlier versions, I could
use a clean, temporary editor tab as a staging ground:

<End>
<Shift-Home>
<Ctrl-C>
<Ctrl-Tab>
<Ctrl-V>
<Enter>
<Ctrl-Shift-Tab>
<F3>

Then I prepopulate the Find dialog with the search string, close the dialog,
and repeatedly play back the macro. When it's finished, the other editor tab
contains the matching lines.

This no longer works as is, as the macro recorder seems to no longer handle
the <Ctrl-Tab> & <Ctrl-Shift-Tab> keystrokes predictably, due to some recent
improvements to NP++ in navigation between tabs. So now I use the end of the
file as the staging ground:

<End>
<Shift-Home>
<Ctrl-C>
<Ctrl-F2>
<Ctrl-V>
<Enter>
<F2>
<Ctrl-F2>
<F3>

When it's finished, I cut the copied lines from the end of the file to the clipboard
with essentially the same result.

Regards.
Greg

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=331754
SourceForge.net
2007-07-16 03:10:24 UTC
Permalink
Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=4414220
By: pshute

Maybe you need to experiment with Plugins/TextFX TextViz/Show lines with clipboard
text. It'll hide all the lines that don't contain whatever's in the clipboard,
allowing you to copy those that do. Only for simple search criteria, I guess.

______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=331754

Loading...