elpher.git
3 weeks agoRelease to allow opening links in new buffer. master v3.6.0
plugd [Sun, 24 Mar 2024 13:07:33 +0000 (14:07 +0100)]
Release to allow opening links in new buffer.

2 months agoPatch release. v3.5.1
plugd [Wed, 14 Feb 2024 09:52:44 +0000 (10:52 +0100)]
Patch release.

2 months agoProper handling of query-only gemini links.
plugd [Wed, 14 Feb 2024 09:49:24 +0000 (10:49 +0100)]
Proper handling of query-only gemini links.

11 months agoFixed small cert-related bugs, updated docs. v3.5.0
plugd [Fri, 5 May 2023 08:17:17 +0000 (10:17 +0200)]
Fixed small cert-related bugs, updated docs.

11 months agoPrespecify client certs for certain URLs.
plugd [Thu, 4 May 2023 11:23:00 +0000 (13:23 +0200)]
Prespecify client certs for certain URLs.

12 months agoAdded missing @node for several sections in the texinfo.
plugd [Fri, 31 Mar 2023 07:49:24 +0000 (09:49 +0200)]
Added missing @node for several sections in the texinfo.

12 months agoCleanly handle C-g at client certificate prompt.
plugd [Fri, 31 Mar 2023 07:40:40 +0000 (09:40 +0200)]
Cleanly handle C-g at client certificate prompt.

12 months agoAdded gophers (gopher with TLS) to external link handlers.
plugd [Wed, 29 Mar 2023 07:31:42 +0000 (09:31 +0200)]
Added gophers (gopher with TLS) to external link handlers.

12 months agoPatch release. v3.4.3
plugd [Thu, 23 Mar 2023 12:54:16 +0000 (13:54 +0100)]
Patch release.

12 months agoSensibly handle C-g when requesting gemini input.
plugd [Thu, 23 Mar 2023 12:48:24 +0000 (13:48 +0100)]
Sensibly handle C-g when requesting gemini input.

18 months agoOpened issue regarding client certificate scope.
plugd [Wed, 12 Oct 2022 07:37:31 +0000 (09:37 +0200)]
Opened issue regarding client certificate scope.

20 months agoMake elpher-go-current respect default url scheme.
plugd [Tue, 9 Aug 2022 02:53:31 +0000 (12:53 +1000)]
Make elpher-go-current respect default url scheme.

20 months agoRemoved useless page creation.
plugd [Tue, 9 Aug 2022 00:42:02 +0000 (10:42 +1000)]
Removed useless page creation.

20 months agoAdded rx dependency to resolve flycheck warning.
plugd [Tue, 9 Aug 2022 00:40:22 +0000 (10:40 +1000)]
Added rx dependency to resolve flycheck warning.

20 months agoFixed issue to do with current buffer changing during download.
plugd [Tue, 9 Aug 2022 00:38:42 +0000 (10:38 +1000)]
Fixed issue to do with current buffer changing during download.

Thanks to Troels Henriksen for reporting this issue.

20 months agoFixed a text/gemini parsing regression.
plugd [Sun, 7 Aug 2022 23:27:19 +0000 (09:27 +1000)]
Fixed a text/gemini parsing regression.

21 months agoFixed an issue with parsing scheme://@host urls.
plugd [Fri, 15 Jul 2022 06:12:23 +0000 (16:12 +1000)]
Fixed an issue with parsing scheme://@host urls.

21 months agoComment cleanup and version bump. v3.4.2
plugd [Fri, 15 Jul 2022 04:58:07 +0000 (14:58 +1000)]
Comment cleanup and version bump.

21 months agoChanged default preformatted face to default.
plugd [Mon, 11 Jul 2022 23:44:22 +0000 (09:44 +1000)]
Changed default preformatted face to default.

21 months agoReplaced custom preformatted text face.
plugd [Mon, 11 Jul 2022 05:27:46 +0000 (15:27 +1000)]
Replaced custom preformatted text face.

22 months agoRemoved last remaining url-port usage.
plugd [Mon, 30 May 2022 12:19:38 +0000 (14:19 +0200)]
Removed last remaining url-port usage.

23 months agoPatch release. v3.4.1
plugd [Tue, 3 May 2022 08:33:36 +0000 (10:33 +0200)]
Patch release.

23 months agoRemoved preformatted-specific face.
plugd [Mon, 2 May 2022 15:40:45 +0000 (17:40 +0200)]
Removed preformatted-specific face.

This was causing multiple issues, including (a) conflicts with the
ANSI interpreter and (b) producing non-monospaced output even with the
face set to inherit from fixed-pitch due (I think?) to Unicode font
rendering wierdness.

23 months agoUpdated welcome page documentation to also mention non-GNU elpa.
plugd [Mon, 2 May 2022 10:03:51 +0000 (12:03 +0200)]
Updated welcome page documentation to also mention non-GNU elpa.

23 months agoDocumentation update for 3.4.0. v3.4.0
plugd [Sun, 1 May 2022 20:21:02 +0000 (22:21 +0200)]
Documentation update for 3.4.0.

23 months agoAdded option to hide preformatted text by default.
plugd [Sun, 1 May 2022 19:27:21 +0000 (21:27 +0200)]
Added option to hide preformatted text by default.

2 years agoPatch release. v3.3.3
plugd [Mon, 11 Apr 2022 08:18:20 +0000 (10:18 +0200)]
Patch release.

2 years agoPrevents indenting gemini lines prefixed only with spaces.
plugd [Mon, 11 Apr 2022 08:12:40 +0000 (10:12 +0200)]
Prevents indenting gemini lines prefixed only with spaces.

Addresses this comment from the elpher feedback page:
Admittedly, this is a small complaint, but elpher has problems
with indentations in paragraphs in gemini (haven't tested with
gopher). It is supposed to stop indenting after the first line
break, but doesn't do so, instead keeping the indentation for the
whole paragraph. I uploaded a picture showing on the top the
expected result and on the bottom what elpher shows.
https://ttm.sh/if_.png

2 years agoPre-define xterm-color vars to avoid compiler warnings.
plugd [Mon, 28 Feb 2022 13:06:22 +0000 (14:06 +0100)]
Pre-define xterm-color vars to avoid compiler warnings.

2 years agoAllow square brackets around IPv6 addresses. v3.3.2
plugd [Tue, 8 Feb 2022 17:10:45 +0000 (18:10 +0100)]
Allow square brackets around IPv6 addresses.

2 years agoPrevent xterm-color ansi state from persisting across pages.
plugd [Wed, 2 Feb 2022 21:38:17 +0000 (22:38 +0100)]
Prevent xterm-color ansi state from persisting across pages.

2 years agoUpdated installation instructions in README. v3.3.1
plugd [Wed, 2 Feb 2022 13:02:10 +0000 (14:02 +0100)]
Updated installation instructions in README.

2 years agoFixed issues flagged by flycheck.
plugd [Wed, 2 Feb 2022 12:46:38 +0000 (13:46 +0100)]
Fixed issues flagged by flycheck.

Issues included:
1. Missing documentation on elpher-build-current-imenu-index
2. Variable referenced out of scope in elpher-gemini-insert-link

This second issue has been around for a while, but never caused
problems because the particular statement was unreachable. The
patch simply removes the unreachable code.

2 years agoUpdated documentation for minor release. v3.3.0
plugd [Wed, 2 Feb 2022 12:12:11 +0000 (13:12 +0100)]
Updated documentation for minor release.

2 years agoAllow xterm-color to modify properties (broken otherwise).
plugd [Tue, 1 Feb 2022 15:41:11 +0000 (16:41 +0100)]
Allow xterm-color to modify properties (broken otherwise).

2 years agoFix bookmark jumping when buffer doesn't exist. (Daniel Semyonov)
plugd [Mon, 17 Jan 2022 14:45:46 +0000 (15:45 +0100)]
Fix bookmark jumping when buffer doesn't exist. (Daniel Semyonov)

2 years agoOpened issue.
plugd [Fri, 19 Nov 2021 08:27:11 +0000 (09:27 +0100)]
Opened issue.

2 years agoPrevent buffer switching when *elpher* already visible.
Tim Vaughan [Fri, 8 Oct 2021 12:17:23 +0000 (14:17 +0200)]
Prevent buffer switching when *elpher* already visible.

2 years agoAvoid type error when browse-url-br-fun is not a symbol.
Tim Vaughan [Thu, 7 Oct 2021 09:14:39 +0000 (11:14 +0200)]
Avoid type error when browse-url-br-fun is not a symbol.

2 years agoExplicitly disable adaptive (not auto) fill mode for gemini maps.
Tim Vaughan [Wed, 6 Oct 2021 10:43:18 +0000 (12:43 +0200)]
Explicitly disable adaptive (not auto) fill mode for gemini maps.

2 years agoMaybe skip advice of browse-url-browser-function
Alex Schroeder [Sat, 11 Sep 2021 20:38:55 +0000 (22:38 +0200)]
Maybe skip advice of browse-url-browser-function

If the value of browse-url-browser-function is an alist instead of a
symbol, we're probably better off not advising it. Thus, check the
value of browse-url-browser-function before doing anything. Only
advise it if it is a function, i.e. fboundp.

2 years agoDisplay both URL and IRI for page info when they differ.
plugd [Mon, 23 Aug 2021 09:41:07 +0000 (11:41 +0200)]
Display both URL and IRI for page info when they differ.

2 years agoDisplay IRI instead of URI for the info page
Alex Schroeder [Sat, 21 Aug 2021 19:16:27 +0000 (21:16 +0200)]
Display IRI instead of URI for the info page

elpher-info-page ('i') is called to show the URL to a human, so use
the IRI. Useful for such pages as gemini://namu.blue/

2 years agoAdded Daniel to the copyright list.
plugd [Fri, 20 Aug 2021 12:43:31 +0000 (14:43 +0200)]
Added Daniel to the copyright list.

2 years agoFail gracefully on unsupported image formats.
plugd [Fri, 20 Aug 2021 06:54:00 +0000 (08:54 +0200)]
Fail gracefully on unsupported image formats.

2 years agoBug fix: typo in elpher-go-current
plugd [Mon, 16 Aug 2021 14:53:12 +0000 (16:53 +0200)]
Bug fix: typo in elpher-go-current

2 years agoGemini link prefix strings are back.
plugd [Thu, 12 Aug 2021 14:46:16 +0000 (16:46 +0200)]
Gemini link prefix strings are back.

2 years agoMerge alex/local-files-display
plugd [Thu, 12 Aug 2021 14:04:29 +0000 (16:04 +0200)]
Merge alex/local-files-display

2 years agoFixed display of link-only IRIs in text/gemini.
plugd [Thu, 12 Aug 2021 13:08:18 +0000 (15:08 +0200)]
Fixed display of link-only IRIs in text/gemini.

2 years agoFix display of local file links
Alex Schroeder [Tue, 10 Aug 2021 22:58:14 +0000 (00:58 +0200)]
Fix display of local file links

The code that shows an IRI for URLs if no display-string is provided
used to display with double slashes when it happened upon a simple
local filename link, like this:

=> /some/file.gmi

Result:

→ ///some/file.gmi

In order to fix this, we need to make sure that url-fullness remains
nil. This commit makes sure that it is only set if the URL in question
does in fact have a non-empty host (an empty host results in a host of
"" is a true value, so we need an extra test using string-empty-p).

This happens in both elpher-address-from-url and
elpher-address-from-gemini-url.

2 years agoShow IRIs when no display text is available
Alex Schroeder [Tue, 10 Aug 2021 17:16:33 +0000 (19:16 +0200)]
Show IRIs when no display text is available

When using the URL in a Gemini link-line as a display-string, turn it
into an IRI.

2 years agoFixed imenu caching bug.
plugd [Tue, 10 Aug 2021 20:20:59 +0000 (22:20 +0200)]
Fixed imenu caching bug.

2 years agoMerged Alex's gemini link line filling.
plugd [Tue, 10 Aug 2021 09:49:10 +0000 (11:49 +0200)]
Merged Alex's gemini link line filling.

2 years agoBetter handling of default URL schemes.
plugd [Tue, 10 Aug 2021 09:36:00 +0000 (11:36 +0200)]
Better handling of default URL schemes.

2 years agoFixed gopher type predicate function.
plugd [Tue, 10 Aug 2021 07:50:10 +0000 (09:50 +0200)]
Fixed gopher type predicate function.

2 years agoCan now open gophermap files with file:.
plugd [Mon, 9 Aug 2021 14:45:23 +0000 (16:45 +0200)]
Can now open gophermap files with file:.

2 years agoFill links
Alex Schroeder [Tue, 3 Aug 2021 13:15:58 +0000 (15:15 +0200)]
Fill links

Currently unhappy about it because fill-prefix is hard-coded to three
spaces since that's the apparent width of "→ " (possibly font
related?).

2 years agoFixed match data clobbering introduced by previous commit.
plugd [Mon, 9 Aug 2021 08:38:04 +0000 (10:38 +0200)]
Fixed match data clobbering introduced by previous commit.

2 years agoMerged Alex's IRI support, with tiny changes.
plugd [Mon, 9 Aug 2021 08:16:38 +0000 (10:16 +0200)]
Merged Alex's IRI support, with tiny changes.

2 years agoCleaning up.
plugd [Wed, 4 Aug 2021 14:37:28 +0000 (16:37 +0200)]
Cleaning up.

2 years agoAdd IRI support
Alex Schroeder [Wed, 4 Aug 2021 14:27:17 +0000 (16:27 +0200)]
Add IRI support

When getting the address of a URL, use the current scheme as URL type,
if one exists. If no scheme is provided for a URL, the current context
specifies the scheme to use, so if we’re looking at a gemini page,
then the default type is "gemini" even if elpher-default-url-type is
"gopher".

When creating the display-string for a page from a URL, use a new
functino that creates an IRI instead. It decodes percent-escapes and
handles punycode in the host name. It also hides the password, if any,
since that's what RFC 3986 says we should do.

When getting the display-string of a Gemini link line without a text,
do the same: don't just use the URL, use the corresponding IRI,
decoding percent-escapes and handling punycode in the host name.

When getting the URL of a Gemini link line, do the reverse: if this is
an IRI instead of a URI, use punycode for the host; percent-escaping
is already handled by url-generic-parse-url.

2 years agoBug fix in gemini path normalization code.
plugd [Wed, 4 Aug 2021 13:58:19 +0000 (15:58 +0200)]
Bug fix in gemini path normalization code.

2 years agoOpened an issue.
plugd [Wed, 4 Aug 2021 12:01:22 +0000 (14:01 +0200)]
Opened an issue.

2 years agoVersion bump. v3.2.2
plugd [Wed, 4 Aug 2021 09:17:51 +0000 (11:17 +0200)]
Version bump.

2 years agoBug fix: elpher-go was erroring out when elpher wasn't already open.
plugd [Wed, 4 Aug 2021 09:14:52 +0000 (11:14 +0200)]
Bug fix: elpher-go was erroring out when elpher wasn't already open.

2 years agoBookmarks link on main page now a regular page link.
plugd [Tue, 3 Aug 2021 12:24:11 +0000 (14:24 +0200)]
Bookmarks link on main page now a regular page link.

2 years agoURLs now unhexed and decoded prior to use as display strings.
plugd [Tue, 3 Aug 2021 10:43:21 +0000 (12:43 +0200)]
URLs now unhexed and decoded prior to use as display strings.

2 years agoAlex's elegant fix for the newline styling issue.
plugd [Tue, 3 Aug 2021 10:00:11 +0000 (12:00 +0200)]
Alex's elegant fix for the newline styling issue.

2 years agoSanitize display strings for use in header.
plugd [Tue, 3 Aug 2021 08:09:39 +0000 (10:09 +0200)]
Sanitize display strings for use in header.

2 years agoSwitched to window-body-* for getting window dimensions.
plugd [Tue, 3 Aug 2021 07:43:38 +0000 (09:43 +0200)]
Switched to window-body-* for getting window dimensions.

2 years agoImproved image rendering: fix max-height
Alex Schroeder [Tue, 3 Aug 2021 07:21:24 +0000 (09:21 +0200)]
Improved image rendering: fix max-height

window-pixel-height's return value includes the mode line and header
line and the bottom divider, if any. In order for the image to fit
exactly, we therefore subtract window-header-line-height,
window-mode-line-height window, window-scroll-bar-height window, and
window-bottom-divider-width.

2 years agotext/gemini formatting improvements.
plugd [Mon, 2 Aug 2021 12:31:56 +0000 (14:31 +0200)]
text/gemini formatting improvements.

2 years agoVersion bump. v3.2.1
plugd [Mon, 2 Aug 2021 09:40:09 +0000 (11:40 +0200)]
Version bump.

2 years agoBug fix: elpher-ipv4-only wasn't being respected.
plugd [Mon, 2 Aug 2021 09:38:42 +0000 (11:38 +0200)]
Bug fix: elpher-ipv4-only wasn't being respected.

2 years agoChanged wording re local gophermap files. v3.2.0
plugd [Mon, 2 Aug 2021 08:24:15 +0000 (10:24 +0200)]
Changed wording re local gophermap files.

2 years agoVersion bump.
plugd [Mon, 2 Aug 2021 08:07:29 +0000 (10:07 +0200)]
Version bump.

2 years agoUpdated news section of manual.
plugd [Mon, 2 Aug 2021 08:05:59 +0000 (10:05 +0200)]
Updated news section of manual.

2 years agoRemoved superfluous function, better bm error handling.
plugd [Mon, 2 Aug 2021 07:52:59 +0000 (09:52 +0200)]
Removed superfluous function, better bm error handling.

2 years agoUpdated manual, working on news section.
plugd [Sun, 1 Aug 2021 21:54:48 +0000 (23:54 +0200)]
Updated manual, working on news section.

2 years agoDelinting.
plugd [Sun, 1 Aug 2021 21:54:15 +0000 (23:54 +0200)]
Delinting.

2 years ago"Special" pages are now referred to as "about" pages.
plugd [Sun, 1 Aug 2021 15:23:40 +0000 (17:23 +0200)]
"Special" pages are now referred to as "about" pages.

Also fixes some encoding and relative link issues with "file:", as
well as making the "about:bookmarks" getter responsible for all of
the logic re opening the bookmarks page.

2 years agoFixed up special page predicate and associated tests.
plugd [Sat, 31 Jul 2021 12:42:12 +0000 (14:42 +0200)]
Fixed up special page predicate and associated tests.

2 years agoMade start page configurable.
plugd [Sat, 31 Jul 2021 12:03:48 +0000 (14:03 +0200)]
Made start page configurable.

2 years agoMerge branch 'master' into about-pages
plugd [Sat, 31 Jul 2021 11:44:12 +0000 (13:44 +0200)]
Merge branch 'master' into about-pages

2 years agoPrevent elpher-go* interpreting empty input.
plugd [Sat, 31 Jul 2021 10:27:31 +0000 (12:27 +0200)]
Prevent elpher-go* interpreting empty input.

2 years agoSpeed up rendering of large gemini pages.
plugd [Fri, 30 Jul 2021 22:20:49 +0000 (00:20 +0200)]
Speed up rendering of large gemini pages.

2 years agoAdd declaration to avoid compiler warning.
plugd [Fri, 30 Jul 2021 22:20:01 +0000 (00:20 +0200)]
Add declaration to avoid compiler warning.

2 years agoReified special pages using "about:" pseudo-type.
plugd [Fri, 30 Jul 2021 19:55:37 +0000 (21:55 +0200)]
Reified special pages using "about:" pseudo-type.

2 years agoSet default max width and height of images.
plugd [Fri, 30 Jul 2021 12:35:44 +0000 (14:35 +0200)]
Set default max width and height of images.

2 years agoAdded Abhiseck Paira to the list of contributors.
plugd [Thu, 29 Jul 2021 11:22:05 +0000 (13:22 +0200)]
Added Abhiseck Paira to the list of contributors.

2 years agoMerge.
plugd [Thu, 29 Jul 2021 10:08:05 +0000 (12:08 +0200)]
Merge.

2 years agolet elpher handle gemini, gopher links in eww buffer
Abhiseck Paira [Thu, 29 Jul 2021 07:08:46 +0000 (12:38 +0530)]
let elpher handle gemini, gopher links in eww buffer

In a eww buffer, clicking on gemini, gopher, finger links will give
error "Unknown url scheme" as eww would try to open it itself.

Eww calls browse-url if a link matches regexp as defined in
`eww-use-browse-url' variable. Elpher has already defined
`elpher-browse-url-elpher' handler to handle gemini links, so browse-url
would open those links in elpher appropriately.

2 years agoVersion bump. v3.1.0
plugd [Wed, 28 Jul 2021 19:34:46 +0000 (21:34 +0200)]
Version bump.

2 years agoReplaced eval-with-clean-buffer debug declaration.
plugd [Wed, 28 Jul 2021 19:26:08 +0000 (21:26 +0200)]
Replaced eval-with-clean-buffer debug declaration.

2 years agoReplaced missing check for elpher bookmark handler.
plugd [Wed, 28 Jul 2021 19:00:27 +0000 (21:00 +0200)]
Replaced missing check for elpher bookmark handler.

2 years agoFixed indenting of history page headers.
plugd [Wed, 28 Jul 2021 11:17:57 +0000 (13:17 +0200)]
Fixed indenting of history page headers.

2 years agoDelinting, fixed indenting in start page.
plugd [Wed, 28 Jul 2021 09:51:08 +0000 (11:51 +0200)]
Delinting, fixed indenting in start page.

2 years agoUpdated manual.
plugd [Tue, 27 Jul 2021 20:01:22 +0000 (22:01 +0200)]
Updated manual.

2 years agoAnother text correction.
plugd [Tue, 27 Jul 2021 16:35:25 +0000 (18:35 +0200)]
Another text correction.

2 years agoSpelling correction.
plugd [Tue, 27 Jul 2021 16:33:30 +0000 (18:33 +0200)]
Spelling correction.