multiple line search / filter explorer view / word swap

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.

multiple line search / filter explorer view / word swap

Postby ganda » Mon Dec 04, 2006 8:53 pm

I bought UE.

I can't find some things:

a) How to find multiple lines of text?
b) How to filter the explorer window for only .txt messages and other filters?
c) Is there a word swap function?

Thanks in advance for any help.

Ganda
User avatar
ganda
Basic User
Basic User
 
Posts: 11
Joined: Wed Mar 23, 2005 12:00 am

Re: multiple line search / filter explorer view / word swap

Postby Mofi » Tue Dec 05, 2006 12:55 pm

  1. Use forum search - there is a big thread which explains how to find/replace multiple lines.

  2. Mark in the File Tree View a drive letter. Then press secondary (normally right) mouse button to open the context menu and click on "Set Filter". The file filter can be specified only on the drives, not on the subdirectories. The Browser button in the File Filter dialog will show you 2 predefined filters and and you you can edit/modify the filter list too.

  3. No. Create a macro for it with a macro hot key if you often need word swapping. Simply record a manual word swap. Save the macro in a macro file which you specify as being auto-loaded at every start of UltraEdit.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4051
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: multiple line search / filter explorer view / word swap

Postby ganda » Tue Dec 05, 2006 1:57 pm

Thank you Mofi.

a) ok.
b) thank you. it works.
c) I've tried to create a macro but the macro does not do what I want to do.

Ganda
User avatar
ganda
Basic User
Basic User
 
Posts: 11
Joined: Wed Mar 23, 2005 12:00 am

Re: multiple line search / filter explorer view / word swap

Postby mrainey56 » Tue Dec 05, 2006 2:08 pm

c) I've tried to create a macro but the macro does not do what I want to do.

You need to explain exactly what you want to do.
User avatar
mrainey56
Master
Master
 
Posts: 212
Joined: Tue Jul 27, 2004 11:00 pm
Location: Spartanburg, South Carolina

Re: multiple line search / filter explorer view / word swap

Postby ganda » Tue Dec 05, 2006 2:29 pm

I would like to click within a word and swap that word with the word right of it. It is a beautiful option in boxer text editor.
I often swap words when I write texts
User avatar
ganda
Basic User
Basic User
 
Posts: 11
Joined: Wed Mar 23, 2005 12:00 am

Re: multiple line search / filter explorer view / word swap

Postby Mofi » Wed Dec 06, 2006 7:46 am

Here is an example your swap words feature could be done with a macro:

InsertMode
ColumnModeOff
HexOff
Clipboard 7
ClearClipboard
StartSelect
SelectWord
Cut
EndSelect
IfCharIs 32
Key DEL
Key Ctrl+RIGHT ARROW
Paste
" "
Else
Paste
EndIf
ClearClipboard
Clipboard 0
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4051
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna

Re: multiple line search / filter explorer view / word swap

Postby ganda » Wed Dec 06, 2006 7:57 am

yes!!
thank you very much Mofi.

Is it not possible in UE to autoload 2 macros on startup?

Thanks again for your help.
User avatar
ganda
Basic User
Basic User
 
Posts: 11
Joined: Wed Mar 23, 2005 12:00 am

Re: multiple line search / filter explorer view / word swap

Postby Mofi » Wed Dec 06, 2006 9:01 am

At Macro - Set Auto Load you can specify to load a macro file. A macro file can contain more than 1 macro. Every macro recorded is appended to the existing macros from currently loaded macro file.

If you already have 2 macro files with 1 macro in each file. Load the first macro file, then use Macro - Load and Append to Existing and save the macro file which now contains 2 macros. Specify this macro file as being automatically load.

See also my first post at Help with macro creating how to create a new macro with macro code posted in the forums.

Please note:
For quick usage Macro - Quick Record can be used. But a quick recorded macro does not have a macro name and it is not allowed to have 2 macros in a macro file with identical macro name. So quick recorded macros should be always renamed with Macro - Delete Macro/Modify Properties before saving the macros into a macro file.

If you have 2 macro files with 1 quick recorded macro in each file, rename the first macro before appending the second macro file and then rename also the second macro. This is important for the macro list view - see View - Views/Lists - Macro List.

Bego has written about the PlayMacro macro command for running several macros from within a macro. I think you don't need this here. Bego misunderstood your problem.

At Macro - Set Auto Load you can also specify to automatically run 1 of the macros in the macro file once on all opened files specified on the command line when UltraEdit is started. That's what Bego is talking about.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4051
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to UltraEdit General Discussion