-- Leo's gemini proxy
-- Connecting to gmn.clttr.info:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini
'cgmnlm' is a colorful gemini line-mode client
cgmnlm should be able to run on any POSIX-compatible system that supports BearSSL. This should be pretty much every up-to-date linux distro and BSDs. It even runs on a Raspberry Pi.
bookmarks
page history
regex searches within pages
basic client certificate support (no autocreation of client certs currently)
no inlining of any link type
no caching of page content
no persistent history
I created this project for my own use, it includes the following changes that won't be included upstream. Besides this adjustments i'll try to keep track of upstream changes or send patches to upstream if appropiate.
Notable changes to upstream:
colored headings & links (see next chapter)
default 4 char indenting
s command to search in geminispace (via geminispace.info)
l command to search for backlinks to the current page (via geminispace.info)
K command to remove the bookmark for the current page
u command to navigate 1 path element up
e[N] command to open a link or the current URI in default external program (requires `xdg-open`)
t[N] command to download the content behind a link or the current URI to a temporary file
T command line switch to automatically open files downloaded with `t` command (requires `xdg-open`)
a command and A command line switch to toggle between preformatted text and the associated alt text
The actual colors used depend on your terminal palette:
heading 1: light red
heading 2: light yellow
heading 3: light green
gemini link on same capsule: light cyan
gemini link to another capsule: dark cyan
non-gemini link: light magenta
preformatted text: light gray
<Enter> read more lines (if available) <url> go to url [N] Follow Nth link p[N] Print URL of Nth link e[N] Send URL of current page or Nth link to external default program (N is optional) t[N] Download content of current page or Nth link to a temporary file (N is optional) b[N] Jump back N entries in history (N is optional, default 1) f[N] Jump forward N entries in history (N is optional, default 1) u Navigate one path element up H View all page history m Save bookmark M Browse bookmarks K Remove bookmark for current page r Reload the page s Search via geminispace.info /<text> Search for text (POSIX regular expression) n Jump to next search match d[N] [path] Download page, or Nth link, to path (N is optional) [N]|<prog> Pipe page, or Nth link, into program (N is optional) a Toggle display of alt text instead of preformatted text q Quit [N] must be replaced with a number >= 0
$ git clone https://git.clttr.info/cgmnlm.git $ mkdir build && cd build $ ../configure $ make $ sudo make install
Drop me a note if you are interested in packaging or have demand for a specific package.
-- Response ended
-- Page fetched on Sun May 19 03:18:38 2024