[Vimperator] How to get the current location (URL)

Andrzej Ostruszka krasnal at 2-0.pl
Thu Dec 6 16:54:48 PST 2007


Sorry, accidental keystroke ... continuing below

On Dec 7, 2007 1:49 AM, Andrzej Ostruszka <krasnal at 2-0.pl> wrote:
> Hi all,
>
> I've got easy question for you :).  How do I get the current URL?  I
> saw some discussion about % and expand but that is the future.  How do
> I do this at the present moment.  I don' t know javascript and what
> I'd like to do is to build a mapping that will mark current page with
> google bookmarks - so that I could get rid of the google toolbar :).
>
> I know that the URL for this task should be something like
>
> http://www.google.com/bookmarks/mark?op=<OP>&bkmk=<URL>&title=<TITLE>&labels=<LABEL>
>
> OP could be: add|edit (and I've seen also upload_selection)
> There are some other options (I could not

find a reference for this).  But at the moment I'd like to:

1. Get the current location so that I could put it in <URL> place
2. Use some prompt to query user for the title (if not given then skip
this field) and the same for labels

I'd appreciate your help with this

Best regards
Andrzej


More information about the Vimperator mailing list