Docs., appended to the mod_http plugin, where this functionality lives,
are pasted below.
Screen shot of the form which pops up when you click the Bookmark
button in your browser attached. The body text of the corresponding
bookmark node created in Leo is:
Leo's Home Page
http://webpages.charter.net/edreamleo/front.html
Tags: leo, python
Leo's Home Page
Collected: Sun 02 Oct 2011 02:52:51 PM CDT
Keep this under your pillow.
If you had some text selected on the page in your browser that would
also appear in the above, and repeatedly bookmarking the same page with
different selections incrementally adds such quotes to the bookmark
node.
Here are the docs.:
Can also be used for bookmarking directly from the browser to Leo. To
do this, add a bookmark to the browser with the following URL / Location:
javascript:w=window;if(w.content){w=w.content}; d=w.document; w.open('http://localhost:8130/_/add/bkmk/?&name=' + escape(d.title) + '&selection=' + escape(window.getSelection()) + '&url=' + escape(w.location.href),%22_blank%22,%22toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=yes, copyhistory=no, width=800, height=300, status=no%22);void(0)
and edit the port (8130 in the example above) to match the port you're using
for mod_http.
Bookmarks are created as the first node in the outline which has been opened longest.
You can set the ``@string`` ``http_bookmark_unl`` to specify an alternative location,
e.g.::
@string http_bookmark_unl = /home/tbrown/.bookmarks.leo#@bookmarks-->Incoming
to place them in the `Incoming` node in the `@bookmarks` node in the `.bookmarks.leo` outline.
The headline is preceeded with '@url ' *unless* the ``bookmarks`` plugin is loaded.
If the ``bookmarks`` plugin is loaded the bookmark will have to be moved to a ``@bookmarks`` tree to be useful.
The browser may or may not be able to close the bookmark form window for you, depending on settings - set ``dom.allow_scripts_to_close_windows`` to true
in ``about:config`` in Firefox.
cool! it was exactly this feature which let met start using
www.delicio.us for my bookmarks (with seondary attractive feature
being tags, and available from any computer being the last desirable).
> and repeatedly bookmarking the same page with
> different selections incrementally adds such quotes to the bookmark
> node.
very thoughtful extra. I'll definitely be having a look at this, thanks Terry.
--matt
I agree, this is totally cool. However, this was not working for me::
@string http_bookmark_unl = ~/ekr.leo#Notes-->Bookmarks
I was getting (from g.openWithFileName) the message::
can not open ~/ekr.leo#Notes-->Bookmarks
Rev 4521 contains a proposed fix to add_bookmark, marked with EKR,
which works for me on Windows 7.
Please take a look and see if the fix makes sense. Thanks.
Edward
The only way I can see that it makes sense is if the behavior of
urlparse is different in different OSes / python versions. That seems
unlikely.
Also I think the code ensures the UNL search won't happen - is it
working for you? It seems the the initial path.find() removes the '#'
so calling urlparse on the unl part would leave you with
parsed.fragment == ''
Cheers -Terry
> Edward
>
> Also I think the code ensures the UNL search won't happen - is it
> working for you? It seems the the initial path.find() removes the '#'
> so calling urlparse on the unl part would leave you with
> parsed.fragment == ''
Hmm, I guess that's not the case, I was off by one, the unl fragment
has the '#' at the start of it, so calling urlparse on it is ok, but it
still makes no sense to me why the original code (which of course was
working for me) wouldn't work.
A mystery, but perhaps not a very important one.
Cheers -Terry
> it still makes no sense to me why the original code (which of course was
> working for me) wouldn't work.
>
> A mystery, but perhaps not a very important one.
It's important enough :-) Presumably there is some platform-dependent
difference. I'll test on Ubuntu next.
The code is mostly working for me, although sometimes the bookmark is
created as a child of a previous bookmark.
I'm sure we will get to the bottom of these glitches. The
communication between Leo and the browser is the important part, and
that seems to be working well.
BTW, I wish, once again, that Bernhard Mulder could see the fruits of
his good work. He would be happy with what you have done...
Edward
Our work for 2013-2014 is being driven by our grant from the Sloan Foundation. More details of this grant can be found here. For 2013, we are going to focus on really solidifying the single-user notebook experience, which is principally in two major areas:
Following that, in 2014, we will begin the development of the multi-user notebook. This multi-user notebook will be similar to the single-user notebook, but the server will map directly onto Linux users on a single environment, so that you only need to run a single server for all users of your system (be it a local shared machine, EC2 image, etc.). This multi-user notebook server will be focus on the usage case of small-medium sized groups of trusted users. It will not have features that allow it to scale to large numbers of users on the open internet
I've added web page bookmarking from your browser to Leo.
Docs., appended to the mod_http plugin, where this functionality lives,
are pasted below.