Dear all,
I rewrote the Hypersearch bundle to use the marvelous tm_dialog.
While doing this I also changed the following things:
- Hypersearch displays also the number of matches, not only the number of lines - Error handling for non-valid regular expressions - some tiny format things within the HTML output - add a command 'Reinit' to reset Hypersearch after a crash (It could happen that while using Hypersearch TM, Mac, or the world crashes. This could cause that the temporary plist file contains non-valid XML code.) - the dialog now makes use of a NSSearchField instead of NSTextField -- now you can press ESCAPE for deleting the field content; or press twice for canceling the dialog
Please check this release for any bugs.
Have a nice day
Hans
Two suggestions:
- The output option within the "Search" command, should be discard. Then, the last line of the command should be "exit_show_html". This delays the display of the show html output window until the results are available. Having the window display before the search dialog is opened is a little weird.
- The tm_dialog command should be invoked with the '-c' switch to center the dialog within the active document window.
-Brad
On Nov 2, 2006, at 4:21 AM, Hans-Joerg Bibiko wrote:
Dear all,
I rewrote the Hypersearch bundle to use the marvelous tm_dialog.
While doing this I also changed the following things:
- Hypersearch displays also the number of matches, not only the
number of lines
- Error handling for non-valid regular expressions
- some tiny format things within the HTML output
- add a command 'Reinit' to reset Hypersearch after a crash (It
could happen that while using Hypersearch TM, Mac, or the world crashes. This could cause that the temporary plist file contains non-valid XML code.)
- the dialog now makes use of a NSSearchField instead of NSTextField
-- now you can press ESCAPE for deleting the field content; or press twice for canceling the dialog
Please check this release for any bugs.
Have a nice day
Hans
<Hypersearch.tmbundle.zip>
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On 2. Nov 2006, at 22:30, Brad Choate wrote:
- The tm_dialog command should be invoked with the '-c' switch to
center the dialog within the active document window.
I was thinking you should set an AutoSave name in IB (attributes for the window) so the window remembers its position.
As for the recent searches binding, I can’t make that work either -- but now I am quite hooked on actually getting it to work ;) if I find the time to figure this out, I’ll write back.
On 2. Nov 2006, at 13:21, Hans-Joerg Bibiko wrote:
I rewrote the Hypersearch bundle to use the marvelous tm_dialog.
Btw: I probably didn’t mention this anywhere, but if you run tm_dialog with a relative path, it will search (in this order):
* current directory * TM_BUNDLE_SUPPORT/nibs * TM_SUPPORT_PATH/nibs
The .nib extension is also optional. So you can do “tm_dialog hypersearch” and it will actually load: "$TM_BUNDLE_SUPPORT/nibs/ hypersearch.nib".
Allan wrote:
I was thinking you should set an AutoSave name in IB (attributes for the window) so the window remembers its position.
Yes, of course.
Brad wrote:
- The output option within the "Search" command, should be discard.
Then, the last line of the command should be "exit_show_html". This delays the display of the show html output window until the results are available. Having the window display before the search dialog is opened is a little weird.
This is the hint I looked for. Many thanks!!
Allan wrote:
Btw: I probably didn’t mention this anywhere, but if you run tm_dialog with a relative path, it will search (in this order):
- current directory
- TM_BUNDLE_SUPPORT/nibs
- TM_SUPPORT_PATH/nibs
The .nib extension is also optional. So you can do “tm_dialog hypersearch” and it will actually load: "$TM_BUNDLE_SUPPORT/nibs/ hypersearch.nib".
I did.
Thanks a lot!!
Hans