Suggestion for search option

Ideas for new features

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
w7my
Posts: 1
Joined: Mon Oct 20, 2003 9:20 pm
Location: Richland WA USA

Suggestion for search option

Post by w7my »

In the days long ago when I used a MAC, I had an editor that had a few unique attributes I found extremely useful but not available elsewhere. These attributes were:

1) Delete lines containing. The search option had a check box that allowed the search element to delete the entire record (line) containing the search text. This is wonderful for cleaning up messy log files.

2) Copy lines containing. Similar to above but copies entire line of text that contains the search string to the clip board so you can paste the results into a separate file. (I would have preferred it to copy the lines directly into a separate file.)

3) Delete duplicate lines. Yes, Textpad has this feature and that why I use it soooo much. Thank you!


Your consideration for 1 and 2 will be appreciated.

Greg
User avatar
Bob Hansen
Posts: 1517
Joined: Sun Mar 02, 2003 8:15 pm
Location: Salem, NH
Contact:

Post by Bob Hansen »

1) Delete lines containing. The search option had a check box that allowed the search element to delete the entire record (line) containing the search text.
Try this:
Search, Find, Mark All.
Edit, Cut Other, Bookmarked Lines.
(Make into a macro)

2) Copy lines containing. Similar to above but copies entire line of text that contains the search string to the clip board so you can paste the results into a separate file.
Try this:
Search, Find, Mark All.
Edit, Copy Other, Bookmarked Lines.
File, New, Paste.
(Make into a macro)
Hope this was helpful.............good luck,
Bob
Jason Shallcross
Posts: 13
Joined: Tue Sep 02, 2003 2:43 pm
Location: Brighton, East Sussex
Contact:

Negative Search

Post by Jason Shallcross »

I'd like to be able to flip the logic on searches, ie say "find lines that don't contain the following text".

In particular, doing negative regular expressions without having "!~" is a real pain! It only needs a little checkbox and the "if" turned into a "if not", a fairly easy one to add I would have thought compared with some suggestions.

I posted this suggestion long ago but it wasn't incorporated in the latest version, despite being told at the time by the development team that they thought it was a good idea. Maybe it got forgotten about.
Post Reply