Jump to content
IGNORED

gemini protocol browser: VIRGIL99


jedimatt42

Recommended Posts

VIRGIL99 v1.7 - VIRGIL99

 

pull down menu consolidates access to address prompt, history page, and about page. 

 

history is a stack... so as you go back, things pop off it. history and about pages do not get added to history. Pages that fail to load do not get added to history. History is also constrained to a single 4K SAMS page, with the interesting behavior of a queue, so oldest items will fall off to make room for new items. History is never written to disk. 

 

some improvements to long URL handling... 

  • Like 1
Link to comment
Share on other sites

4 hours ago, jedimatt42 said:

VIRGIL99 v1.7 - VIRGIL99

 

pull down menu consolidates access to address prompt, history page, and about page. 

 

history is a stack... so as you go back, things pop off it. history and about pages do not get added to history. Pages that fail to load do not get added to history. History is also constrained to a single 4K SAMS page, with the interesting behavior of a queue, so oldest items will fall off to make room for new items. History is never written to disk. 

 

some improvements to long URL handling... 

Test driving it.  Slick interface!

  • Thanks 1
Link to comment
Share on other sites

  • 3 weeks later...

I've updated VIRGIL99 to support bookmarks (via the pull down menu) and view history. I think I have finally fixed the bugs in history/back button. 

You can also pass a DV80 file on the command line, or in the address editor to view local files... each record will be a line... If they are plain TI text, then they should display fine. If they are TI Writer CR enriched files, IDK... It'll either display fine, or you'll get doublespaced text... LOL... Feel free to let me know. 

TI Writer Formatter files with all the markup and stuff will just show the markup... some escape codes will just get gobbled up and hidden. It's just not meant for that. 

 

The default place the books go is TIPI.FC.VIRGIL.BOOKMARKS

You need to make that TIPI.FC.VIRGIL. directory cause I forgot too ( I'll fix that later ) 

You can also set the ForceCommand environment variable VIRGIL_FAVS to the full path of a file to use if you prefer some other location... 

 

makedir TIPI.FC.VIRGIL

 

or

 

makedir IDE1.VIRGIL
VIRGIL_FAVS=IDE1.VIRGIL.MYFAVS

 

You can add a bookmark to the current page by using the '+bookmark' menu item. You can edit and order the bookmarks in any DV80 editor, such as ED or Stevie. The format is simply a gemini URL per record(line).

 

ForceCommand v2.2 drop over at: 

 

 

  • Like 1
Link to comment
Share on other sites

Oh, Arcadeshopper had some astonishment about the format of URLs in the address entry field, which is true of links on a page and those passed in the command line... So it is worth explaining...

 

VIRGIL99 has 3 builtin URL scheme (the part before the first colon) 

- about

- history

- bookmarks

 

I didn't implement file loading as HTML browser's 'file' scheme cause that isn't natural on the command line, and I didn't want 2 ways to do things... It is a constrained computer after all.

 

So, if I can open the URL as a local file, VIRGIL99 will do so... There is a small amount of room for collision between page relative links, and local files... a => page.gmi  is not a valid file (cause of the period looking like a 4A device separator... ) unless you happen to have a directory in lowercase named 'page' and a file in there called 'gmi', also in lowercase... this just isn't very customary on a 4A so I'm not concerned. If it is a problem, the work-around would be to launch VIRGIL99 from the path while sitting in an empty directory.

 

The gemini spec says links look like:

- a fully qualified URL, therefore starts with a scheme, such as 'gemini' ':' '//' <hostname> [ '/' <path> ] * 

- a URL fragment starting with '//' causing the default scheme 'gemini' to be used. 

- a path relative to the host, so something starting with a single '/' and other path data.

- a path relative to the current page, so something not starting with a '/', assumed to at the same url path upto the last '/' and then page relative part added on.

 

The astonishment was that just typing in a hostname, like arcadeshopper.com into the address bar looks to VIRGIL99 like that last form of url.. 

 

So, this doesn't work like it does in a modern browser with resources ( and programmer time to waste ) :  VIRGIL99 arcadeshopper.com

But this does: VIRGIL99 //arcadeshopper.com

 

Oh, and it works because Arcadeshopper has stood up a gemini protocol server at his same domain... so you might want to bookmark that one :)

  • Like 2
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...