Richard Heck schrieb:
[EMAIL PROTECTED] wrote:
On Tue, 5 Jun 2007, Bernhard Roider wrote:
Richard Heck schrieb:
 I finally got around to writing this:
     javascript:(function(){var x; x=prompt("Enter bug number:", "");
if(x!=null){document.location.href="http://bugzilla.lyx.org/show_bug.cgi?id=";
 + x; }} )();
 I'll put it on the wiki at some point.

what about this:

javascript:(function(){var x = "%s"; if (x=="%"+"s") x=prompt("Enter bug number:", ""); if(x!=null){document.location.href="http://bugzilla.lyx.org/show_bug.cgi?id="; + x; }} )();

assigning a shortcut, say lb, to the bookmarklet you can either type
lb bug# <return>
and get no prompt or
lb <return>
and are prompted for the bug#
If you want, I can add a prompt on the wiki's development pages that accepts a bug number and jumps you to that bug.

/Christian (who didn't understand what the bookmarklet thing is)

PS. In Opera, I'd just define a dedicated "search" for it, so that entering e.g.
    b 232
will get you to bug 232.
In Firefox, you can create a bookmark and put the above as the URL. Then choosing the bookmark will pop up a dialog asking for the bug number and send you there.

I didn't really understand the shortcut bit. How do we do that?


In the properties of the Bookmark the keyword is the shortcut. enter the shortcut in the address field an press return -> ping!
You mean this?

Bernhard

Reply via email to