source code for simplicialcomplex's tilde.club gopherhole
git clone https://tilde.club/~simplicialcomplex/git/gophersource.git
Log | Files | Refs

commit 6c356b1e29612effe4c574a138ca838cd35066df
parent 1c511b338b769a679859658c1a7db5d43bfb7904
Author: simplicialcomplex <simplicialcomplex@tilde.club>
Date:   Mon, 20 Sep 2021 20:31:34 +0300

added links

Diffstat:
Mgophermap | 3+++
Alinks/getbookmarks.el | 16++++++++++++++++
Alinks/gophermap | 1+
3 files changed, 20 insertions(+), 0 deletions(-)

diff --git a/gophermap b/gophermap @@ -32,3 +32,6 @@ gopher looks promising? open list of open problems (what i don't know about using gopher) 1. why does gopher disallow accessing to gophermap as a textfile? but creating symbolic link and referencing to it as a file is ok + +1Git ./git +1Interesing or useful links ./links diff --git a/links/getbookmarks.el b/links/getbookmarks.el @@ -0,0 +1,16 @@ +#!/usr/bin/env -S emacs -Q --script + +(require 'seq) + +(princ +(mapconcat + (lambda (e) + (replace-regexp-in-string "^gopher://\\(.*?\\)/\\([0135789ghiIds;cM]\\)/\\(.*\\)$" (format "\\2%s\t/\\3\t\\1" (car e)) (cdr (assoc 'location (cdr e))))) + (seq-filter (lambda (entry) (equal (cdr (assoc 'handler (cdr entry))) 'elpher-bookmark-jump)) + (car (read-from-string + (with-temp-buffer + (insert-file-contents "/home/simplicialcomplex/.emacs.d/bookmarks") + (buffer-string))))) + + "\n" + )) diff --git a/links/gophermap b/links/gophermap @@ -0,0 +1 @@ +=(/home/simplicialcomplex/public_gopher/links/getbookmarks.el)