Dear all,
here comes the latest Hypersearch Bundle.
New:
'multi jump function': If there are more than one occurrence of the search pattern within one line you can click at each emphasised match (or in between - see help) to jump to its position separately.
Changes:
-keyboard shortcuts are changed to TM's defaults; i.e. option+apple +r,i,w
-output window displays the file name --Here I had to hack the code for 'html_header' ---- export HTML_PAGE_TITLE="Hypersearch" export HTML_WINDOW_TITLE="${TM_FILENAME:-untitled} - Hypersearch" export HTML_SUB_TITLE="<big>$MTCH $CNT found for “$RES”</big>"
"${TM_RUBY:-ruby}" -r"$TM_SUPPORT_PATH/lib/web_preview.rb" -e 'puts html_head(:window_title => ENV["HTML_WINDOW_TITLE"], :page_title => ENV["HTML_PAGE_TITLE"], :sub_title => ENV ["HTML_SUB_TITLE"], :html_head => "")'
---- Maybe it would be worth to change html_header in such a way that you can specify window_title and page_title separately. web_preview.rb has this functionality yet.
-Error messages are shown as tooltips
-you can specify a group for regexp like '>(.*?)</' to highlight everything what is between '>' and '</' (see help)
-tiny format stuff
-I set the limit of output line to 3000 --The reason why is that if I close the HTML output page (with more than 5000 lines) TM freezes for seconds! It takes roughly a minute! ANY HINTS???
Bug fixes:
-\t, \n now works in regexp mode instead of \t, \n
-search within, and output of xml/html documents is now correct
-correct display of number of matches in case sensitive mode
As usual feedback is welcomed.
Have a nice day (or night)
Best,
Hans
On 7. Nov 2006, at 17:51, Hans-Joerg Bibiko wrote:
Maybe it would be worth to change html_header in such a way that you can specify window_title and page_title separately. web_preview.rb has this functionality yet.
I updated html_header to take 3 arguments, if given, these are then window title, page title, and sub heading.
Btw: use em-dash (—) in the window title.
-I set the limit of output line to 3000 --The reason why is that if I close the HTML output page (with more than 5000 lines) TM freezes for seconds! It takes roughly a minute! ANY HINTS???
Perhaps it is in releasing the various objects allocated to hold the page.
Could you tell me what line should be changed to remove the limit, I can do a simple profile, and perhaps send the WebKit team some useful benchmark case.
[...] As usual feedback is welcomed.
For generating the help, you can use:
"$TM_SUPPORT_PATH/lib/markdown_to_help.rb" <"$TM_BUNDLE_SUPPORT/ help.markdown"
It enumerates your sections and auto-generate the table of contents. You probably want to decrease the heading level for your sections, if you use this (so you don’t start with 1.1).
Maybe it would be worth to change html_header in such a way that you can specify window_title and page_title separately. web_preview.rb has this functionality yet.
I updated html_header to take 3 arguments, if given, these are then window title, page title, and sub heading.
Great!
Btw: use em-dash (—) in the window title.
OK
-I set the limit of output line to 3000 --The reason why is that if I close the HTML output page (with more than 5000 lines) TM freezes for seconds! It takes roughly a minute! ANY HINTS???
Perhaps it is in releasing the various objects allocated to hold the page.
Could you tell me what line should be changed to remove the limit, I can do a simple profile, and perhaps send the WebKit team some useful benchmark case.
You have two options: 1) Create an environment variable called 'TM_HYPERSEARCH_LIMIT' and set it to whatever. 2) Edit line 29 in 'hyperSearch.pl' ::> $limit = 3000;
[...] As usual feedback is welcomed.
For generating the help, you can use:
"$TM_SUPPORT_PATH/lib/markdown_to_help.rb" <"$TM_BUNDLE_SUPPORT/
help.markdown"
It enumerates your sections and auto-generate the table of contents. You probably want to decrease the heading level for your sections, if you use this (so you don’t start with 1.1).
Yes I know but I have some problems with it. 1) If I type echo "<base href='tm-file://${TM_BUNDLE_SUPPORT// /%20}/help.markdown'>" "$TM_SUPPORT_PATH/lib/markdown_to_help.rb" <"$TM_BUNDLE_SUPPORT/ help.markdown"
the links in Table of Content are broken.
2) If I don't echo <base..> I loose my image but Table of Content works.
3) If the hyperlinks of Table of Content works the actual jump address is hidden under Soryu's nice page header. Try it out, press e.g. at TODO, it jumps to TODO but you can't see the beginning because of the header.
Best,
Hans
On 8. Nov 2006, at 10:03, Hans-Joerg Bibiko wrote:
For generating the help, you can use:
"$TM_SUPPORT_PATH/lib/markdown_to_help.rb"
<"$TM_BUNDLE_SUPPORT/help.markdown"
It enumerates your sections and auto-generate the table of contents. You probably want to decrease the heading level for your sections, if you use this (so you don’t start with 1.1).
Yes I know but I have some problems with it.
- If I type
echo "<base href='tm-file://${TM_BUNDLE_SUPPORT// /%20}/ help.markdown'>" "$TM_SUPPORT_PATH/lib/markdown_to_help.rb" <"$TM_BUNDLE_SUPPORT/ help.markdown"
the links in Table of Content are broken.
Ah, true.
[...]
- If the hyperlinks of Table of Content works the actual jump
address is hidden under Soryu's nice page header. Try it out, press e.g. at TODO, it jumps to TODO but you can't see the beginning because of the header.
Yeah, this is a general problem with this theme -- I think Kevin did something with object embedding for the R help, but not sure it solved it, though it definitely is something we need to solve.