[Vimperator] How to get the current location (URL)
Martin Stubenschrott
stubenschrott at gmx.net
Fri Dec 7 07:22:38 PST 2007
On Fri, Dec 07, 2007 at 01:54:48AM +0100, Andrzej Ostruszka wrote:
> 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
you can copy the current location with "y" or use the JavaScript:
vimperator.buffer.URL;
> 2. Use some prompt to query user for the title (if not given then skip
> this field) and the same for labels
We don't have prompts for now, you can just add a new command, so that
the user can do :mycommand myargs, foo....
--
Martin
More information about the Vimperator
mailing list