SlickEdit Community
SlickEdit Product Discussion => SlickEditĀ® => Slick-CĀ® Macro Programming => Topic started by: chrisant on September 07, 2008, 08:43:29 PM
-
This is a macro + DLL, so unfortunately it only works on Windows.
See the Readme.htm file for installation and usage instructions.
The new enhOpen command pops up an Open File dialog that is similar to the Files toolbar and the Open toolbar, but has some key differences:
- There are 3 tabs: Any (list files relative to current working directory), Project (list files from the current project), and Workspace (list files from the current workspace).
- There is only one column, which allows the list to show as much of the path as possible.
- Shows the OS file icons for each file, and the icons are retrieved on a background thread for optimal performance.
- The list is automatically filtered as you type: by default a prefix match is used for the filename portion of what you type, and a suffix match is used for the path portion of what you type. See the Readme file for some examples.
- Filtering allows * and ? wildcards. Star (*) matches any number of characters, and question mark (?) matches any one character. No need to learn a special syntax, it just uses normal file system wildcards.
There are a few configuration settings available.
See the Readme file in the ZIP file for more information.
Full source code for the DLL is included, but there is no makefile/etc. If you want to build it, you'll need to set that stuff up yourself (the only slightly atypical thing is that you'll need to preprocess the manifest.xml file to get the version number filled in properly).
-
@chrisant: The attached file is zero sized :( HS2
-
Hm, don't know what happened, probably a typo in the path when I uploaded it the first time.
Try now.
-
Got it :)
Thanks a lot for all your effort chrisant and get a big HP !
HS2
-
I got an "Identifier 'enhproj-dbg-dll' not declared" error on line 144 when loading the file. "enhproj_dbg_dll" is surrounded by #ifdef CHRISANT but enhOpen() has some code which uses it. I #ifdef'd CHRISANT that locally built copy part out in enhOpen() and it worked great.
One little nit that would be nice is if it could store/restore the window position and size. You know you've done really well when that's the only nit/suggestion I can come up with. :)
Thanks a ton Chrisant. This is massively cool.
-
I got an "Identifier 'enhproj-dbg-dll' not declared" error on line 144 when loading the file. "enhproj_dbg_dll" is surrounded by #ifdef CHRISANT but enhOpen() has some code which uses it. I #ifdef'd CHRISANT that locally built copy part out in enhOpen() and it worked great.
Oops!! :-[
Will fix that this afternoon.
One little nit that would be nice is if it could store/restore the window position and size. You know you've done really well when that's the only nit/suggestion I can come up with. :)
Oh yes, that's high on my wish list, but I completely forgot to include it in the "future" section. I'm having some trouble with getting SlickEdit to remember the config variables that get changed, so I didn't add that yet (have never had trouble with that before, and have no idea why it's not working for this macro). I may end up just storing stuff in the registry (or maybe in a .ini file in the same directory as the .dll file).
Thanks a ton Chrisant. This is massively cool.
You're welcome! :)
-
Update: Fixed macro compilation error (when CHRISANT symbol is not defined).
-
@chrisant: Please follow the SE paradigm and use an ini/xml/whatever file to store configurations etc.
Thanks, HS2
-
Update:
- Now remembers the position/size of the open file dialog.
- Fixed issue where configuration variables sometimes didn't get saved between sessions.
-
I got an error when loading in the macro enhOpen(): Identifier 's' not declared. Pretty easy to fix though and it's working great now. Love this macro. Opening files with filters on filenames and directories in incredibly useful. Thanks a ton Chrisant.
-
Sigh, again the #ifdef CHRISANT bit me. :-[
Here's a copy with the syntax error fixed.