Topic: FindFile.vdm (1 of 7), Read 36 times, 1 File Attachment
Conf: VEDIT Macro Library
From: Pauli Lindgren
Date: Saturday, November 06, 2010 09:00 AM

Sometimes you may need to open a file but you do not remember the location or the exact name of the file.
You could use Windows search utility, but it is quite cumbersome.

Now you can search for files directly from within Vedit, with my FindFile.vdm macro.

FindFile.vdm opens a simple dialog box where you can enter the name of the file to look for (or you can use wildcards), and the root directory for the search. Default directory is current files directory. You can use the [Browse] button to navigate to some other directory if needed.
Then just click OK. You will get a list of all files that match the search. Double-click on a file in the list to open it in Vedit.

Optionally, if only one file is found, it can be opened immediately without displaying the list.
File info (date/time, size, attributes) can be optionally displayed in the file list.
These options can be selected by checking an option in the simple dialog.

Click [Advanced] button to see more options (full dialog).
The advanced options allow you to limit the search by file size, time or attributes.

This macro is actually a front-end to Wildfilew.vdm. (You need Wildfilew.vdm V1.09 or later.)
If you do not have wildfilew.vdm, the latest version was attached with message
http://webboard.vedit.com/read?50294,40

It would probably have been easier to implement this function directly in Wildfilew.vdm itself. However, this macro also serves as an example of how to call Wildfilew.vdm from another macro.

--
Pauli

 
FindFile.vdm v1.1

 


Topic: Re: FindFile.vdm (2 of 7), Read 34 times
Conf: VEDIT Macro Library
From: Fritz Heberlein
Date: Sunday, November 07, 2010 08:49 AM

Am 06.11.2010 13:55, schrieb vedit-macros Listmanager:
>
> Now you can search for files directly from within Vedit, with my
> FindFile.vdm macro.

Thank you Pauli, I will start using it right now!

Fritz

--
Dr. Friedrich Heberlein
Akad. Direktor
Seminar für Klassische Philologie
der KU Eichstätt-Ingolstadt
Campus Eichstätt
85071 Eichstätt

 


Topic: Re: FindFile.vdm (3 of 7), Read 45 times
Conf: VEDIT Macro Library
From: Peter Rejto
Date: Friday, November 19, 2010 09:28 PM

On 11/7/2010 8:49:20 AM, Fritz Heberlein wrote:
>Am 06.11.2010 13:55, schrieb
>vedit-macros Listmanager:
>>
>> Now you can search for files directly from within Vedit, with my
>> FindFile.vdm macro.
>
>Thank you Pauli, I will start
>using it right now!
>
>Fritz
>
>--
>Dr. Friedrich Heberlein
>Akad. Direktor
>Seminar für Klassische
>Philologie
>der KU Eichstätt-Ingolstadt
>Campus Eichstätt
>85071 Eichstätt
>


I would like to join Fritz in extending my thanks to
Pauli.


-peter rejto

 


Topic: FindFile.vdm (4 of 7), Read 23 times
Conf: VEDIT Macro Library
From: Peter Rejto
Date: Friday, January 07, 2011 01:18 AM

Pauli,

I have trouble using your FINDFILE.VDM.
Specifically, I get a Vedit I Box with the following message:

LABEL MISSING :read_ini:

When I hit the OK button, I get the Statline Message:
Calling Wildfile.


So, I did check FINDFILE.VDM again.

I found the command,

Call_File(#20, "wildfilew.vdm", "read_ini")


I also checked that #20=11 and {Help, Text Registers} gave the content of T-Reg 11 as wildfilew.vdm. I looked for the label "read_ini", but could not find it.


The version of your file giving me this trouble is 1.1.
May be I should try an earlier version ?



Thanks as always.

-peter

 


Topic: FindFile.vdm (5 of 7), Read 26 times
Conf: VEDIT Macro Library
From: Pauli Lindgren
Date: Friday, January 07, 2011 04:00 AM

On 1/7/2011 1:18:46 AM, peter rejto wrote:
>Pauli,
>
> I have trouble using your FINDFILE.VDM.
> Specifically, I get a Vedit I Box with the
> following message:
>
> LABEL MISSING :read_ini:
...
>
> I also checked that #20=11 and {Help, Text Registers}
> gave the content of T-Reg 11 as wildfilew.vdm.
> I looked for the label "read_ini", but
> could not find it.

You are probably using an old version of wildfilew.vdm.
You need at least v1.09. The latest version posted here was v1.12.

If you have some old versions of wildfilew.vdm hanging around, you should delete or rename them.
Since Vedit first looks for a macro from "current directory", you can never be sure which version will be used.

--
Pauli

 


Topic: FindFile.vdm (6 of 7), Read 21 times
Conf: VEDIT Macro Library
From: Peter Rejto
Date: Friday, January 07, 2011 12:34 PM

On 1/7/2011 4:00:55 AM, Pauli Lindgren wrote:
>On 1/7/2011 1:18:46 AM, peter rejto
>wrote:
>>Pauli,
>>
>> I have trouble using your FINDFILE.VDM.
>> Specifically, I get a Vedit I Box with the
>> following message:
>>
>> LABEL MISSING :read_ini:
>...
>>
>> I also checked that #20=11 and {Help, Text Registers}
>> gave the content of T-Reg 11 as wildfilew.vdm.
>> I looked for the label "read_ini", but
>> could not find it.
>
>////////////////////////////////////////////
>You are probably using an old version of
>wildfilew.vdm.
>You need at least v1.09. The latest
>version posted here was v1.12.
>//////////////////////////////////////////
>
>If you have some old versions of
>wildfilew.vdm hanging around, you should
>delete or rename them.
>Since Vedit first looks for a macro from
>"current directory", you can never be
>sure which version will be used.

Thanks Pauli,


I did upgrade wildfilew.vdm to Version 1.12. It does work like a charm!


Actually, my version came from the Vedit 6.20 distribution.
It is a more recent version of 1.09. Specifically, Ted put
on a time stamp, saying
2010-12-02 by Ted Green.
Once again, this version of wildfilew.vdm had to be updated,
as per your instructions.

Incidentally, I have been searching your website for wildfilew.vdm. However, I could not find it.


Thanks as always.


-peter

 


Topic: FindFile.vdm (7 of 7), Read 16 times
Conf: VEDIT Macro Library
From: Peter Rejto
Date: Friday, January 07, 2011 01:30 PM

Pauli,

I would like to suggest a possible enhancement to your Findfile.vdm, Version 1.1.

Specifically, I would like to suggest to include the .cab files into the list of files to be searched. (For example, I would like to know from which .cab file did FindFile.vdm come from in my VEDIT MACROS directory.)

I can certainly can do the search manually, using my 7-Zip program. However, I just do not know how to do this in general.


Thanks as always,

-peter