How to Select All without selecting the hidden lines?

This forum is user-to-user based and not regularly monitored by IDM.
Please see the note at the top of this page on how to contact IDM.

How to Select All without selecting the hidden lines?

Postby GSimard » Wed Nov 17, 2010 10:19 pm

I performed a search and specified to hide the lines matching my search criteria. I then preformed a Select All and Copy operation.
In a new document, I pasted the clipboard content. The new file contained all the lines from the original document.

Is it possible to exclude all the hidden lines in a copy operation? Something like Select All Visible Lines, or a configuration option to exclude the hidden lines in a selection range.
GSimard
Newbie
 
Posts: 2
Joined: Tue Nov 16, 2010 11:23 am

Re: How to Select All without selecting the hidden lines?

Postby Mofi » Thu Nov 18, 2010 3:33 am

It is not possible to select/copy just visible lines in any way.

But you can copy the entire file and use a regular expression replace all to delete all lines of no interest. Or you do the opposite and run a Find with advanced find option List Lines Containing String to find all lines of interest, copy them to clipboard and paste them into a new file.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3936
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: How to Select All without selecting the hidden lines?

Postby GSimard » Thu Nov 18, 2010 9:59 am

The ability to perform advanced manipulations on visible/hidden lines is something that I hope will find its way in a future release of UE. Here is a simple example of what Kedit For Windows can do;

Given this simplistic file:

capable1
babylonl2
capricorn3
delta4
epsilon5


Kedit command: all /e (shows all the lines containing the character "e" and fold the other lines. Kedit fold mechanism is a bit different than UE

capable1
==== 2 hidden lines ===== (this line is actually displayed on the screen)
delta4
epsilon5

Kedit command: less /ep

capable1
==== 2 hidden lines =====
delta4
==== 1 hidden line =====

Kedit command: shadow off (this command hides the "hidden line(s)" lines

capable1
delta4

Now if I do a Ctrl-A (Select All) and a Ctrl-C (Copy) the clipboard will contain the 2 lines shown above. The excluded (hidden lines) will not have been copied to the clipboard.

Hopefully a future release of UE will go as far as Kedit in term of visible/hidden lines manipulations. Until them, I will have to use both editors.
Thanks for your reply Mofi.
GSimard
Newbie
 
Posts: 2
Joined: Tue Nov 16, 2010 11:23 am

Re: How to Select All without selecting the hidden lines?

Postby Mofi » Thu Nov 18, 2010 12:11 pm

It would be possible to write a script which copies all visible lines to the clipboard. But it would be horrible slow because the script has to copy and append each line separately to the clipboard. Therefore the two methods I posted are usually better and faster.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3936
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: How to Select All without selecting the hidden lines?

Postby bulgrien » Thu Nov 18, 2010 3:43 pm

I would encourage you to email IDM with an enhancement request to support selecting/copying all visible lines. IDM has already recieved requests for multi-select functionality (a selection that contains multiple non-contiguous lines). A selection that excludes hidden lines would fall into the same category. The more requests IDM receives for a particular enhancement, the more likely it is that it will be considered for future development.
User avatar
bulgrien
Master
Master
 
Posts: 92
Joined: Fri Dec 11, 2009 1:02 am
Location: Pennsylvania, USA

Re: How to Select All without selecting the hidden lines?

Postby Mofi » Mon Dec 06, 2010 1:18 am

I forgot a command very userful here because I rarely hide lines by the Find commands Hide Lines and Show Lines. When UltraEdit is displaying only the lines you are interested in, execute the command Edit - Delete - Delete All Hidden Lines. Now you can use File - Save As to save the remaining lines into a new file, or press Ctrl+A and Ctrl+C to copy them to clipboard.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 3936
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: How to Select All without selecting the hidden lines?

Postby johnc » Wed Jul 13, 2011 1:02 pm

Thanks very much for this topic. The various solutions work great. One useful clarification, when using Find with List Lines Containing String do not click on Show Lines or Hide Lines, click on Next or Previous. It is not so obvious but the Next results in a new floating dialog window that lists all the hits. From there use Clipboard button to copy that results list.
johnc
Newbie
 
Posts: 1
Joined: Wed Jul 13, 2011 1:00 pm

Re: How to Select All without selecting the hidden lines?

Postby daSpud » Sat Oct 22, 2011 5:14 pm

GSimard wrote:The ability to perform advanced manipulations on visible/hidden lines is something that I hope will find its way in a future release of UE. ......
Hopefully a future release of UE will go as far as Kedit in term of visible/hidden lines manipulations. Until them, I will have to use both editors.

Actually, you don't have to hide (shadow off) the lines in Kedit. They won't get selected for the copy.

I have been using Xedit then Kedit for over 30 years. Still love it very much. I really, really wish that UE could come up with a way to mimic the ALL command because I would like to move totally to UE for my editing needs.
daSpud
Newbie
 
Posts: 1
Joined: Sat Oct 22, 2011 3:34 pm

Re: How to Select All without selecting the hidden lines?

Postby sklad2 » Mon Oct 24, 2011 4:47 pm

As an old user of Kedit this was a really great feature!!!!!
User avatar
sklad2
Advanced User
Advanced User
 
Posts: 56
Joined: Thu Mar 08, 2007 12:00 am


Return to UltraEdit General Discussion