lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] Saving bookmars during one session - Questions about usin


From: Fadi Barbàra
Subject: Re: [Lynx-dev] Saving bookmars during one session - Questions about using multiple bookmarks sessions
Date: Tue, 5 Jan 2021 15:37:42 +0100

Hi Ondrej,
reply is below.

On Tue, Jan 05, 2021 at 10:07:12AM +0100, mit-o@post.cz wrote:
> 
> Hi,
> 
> I've got question about Lynx. I have found it intriguing when testing it, 
> but It seems a bit rough whilst working with the bookmarks.
> 
> Let's say, that I will want to use one primary bookmark file for primary 
> links of interest and secondary bookmark file for secondary links.
> 
> Step 1 is that I will create my primary bookmark file and then save it. Done
> 
> Step 2 - I want to change the bookmark file in Options Menu by changing the 
> path to different bookmarks file.
> 
> Step 3 - this is where the problem lies, I have to exit the links and exit 
> the terminal in order to apply saved changes and then open it again.
> 

I did not read the code directly, but as I understand, the bookmarks
file is loaded when lynx is opened. So, if you change the file during
the session, it still has loaded the same file for that
session and you do not see any changes.
 
> 
> Is there any way of how to change the path to bookmarks without ending the 
> current session in the terminal?
> 
> I am sure that I can use the bookmarks without any need of changing the path
> for different bookmark file, I was just curios if there is any possibility 
> of how to perhaps apply changes in Lynx options without escaping the 
> terminal and starting it again.

As I understand it, you are saying that you could use one single
bookmark file. Another way could be to use different html files as if
they were bookmark file.

Let's say that in /home/ondrej you have file `b1.html` with those lines:

    <a href="https://google.com";>google</a><br>
    <a href="https://duckduckgo.com/lite";>duckduckgo</a><br>

and in file `b2.html` you have

    <a href="https://debian.org";>debian</a><br>
    <a href="https://openbsd.org";>openbsd</a><br>


then if you start lynx from your home direcory, by pressing `g` (default
open new url) and typing `b1.html` you access your first file of
bookmarks which shows you `google` and `duckduckgo` as your only links
in the page. Same by pressing `b2.html` to access your second bookmark
file. Being html pages, the added benefit is that you can customize the
page as you like, with titles, descriptions of the links, etc.

By using externals (`,` and `.` by default) you can then add
pages/bookmarks in one of those files during a lynx session (maybe you
have to reload your bookmark page to see the effects). Of course you can
also add pages manually. No need to exit from your session in this way.

Fadi



reply via email to

[Prev in Thread] Current Thread [Next in Thread]