cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit e299aec4a10ba3aaf01c50263cbcabe8d39a5214
parent 9a195d92566b5790b2b7d3ca848987a095bf3d9c
Author: René Wagner <rwagner@rw-net.de>
Date:   Sun, 24 Jan 2021 21:00:18 +0100

revert kay binding modification

we'd stay close to upstream if possible

Diffstat:
MREADME.md | 11+++++++++--
Msrc/gmnlm.c | 16++++++++--------
2 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/README.md b/README.md @@ -11,15 +11,22 @@ This is a [Gemini](https://gemini.circumlunar.space/) client. Included are: - Regex searches - Bookmarks +## Non-Features: + +- no inlinig of any link type +- no caching of page content +- no persistent history across sessions + ### Modifications compared to upstream This project is of fork of https://git.sr.ht/~sircmpwn/gmni It includes the following modifications: +- colored headings & links - default 4 char indenting +- k command to remove the bookmark for the current page - e[N] command to open a link in default external program (requires `xdg-open`) - t[N] command to download the content behind a link to a temporary file -- colored headings & links The actual colors used depend on your terminal palette: - heading 1: light red @@ -36,7 +43,7 @@ Besides this rendering adjustments i'll try to keep track of upstream changes or - A POSIX-like system and a C11 compiler - OpenSSL -- [scdoc](https://sr.ht/~sircmpwn/scdoc/) (optional) +- [scdoc](https://sr.ht/~sircmpwn/scdoc/) (optional, build only) ## Compiling diff --git a/src/gmnlm.c b/src/gmnlm.c @@ -81,15 +81,15 @@ const char *help_msg = "<Enter>\t\tread more lines (if available)\n" "<url>\t\tgo to url\n" "[N]\t\tFollow Nth link (where N is a number)\n" - "u[N]\t\tShow URL of Nth link (where N is a number)\n" + "p[N]\t\tPrint URL of Nth link (where N is a number)\n" "e[N]\t\tSend URL of Nth link in external default program\n" "t[N]\t\tDownload content of Nth link to a temporary file\n" "b\t\tBack (in the page history)\n" "f\t\tForward (in the page history)\n" "H\t\tView all page history\n" - "a\t\tSave bookmark\n" - "s\t\tRemove bookmark for current URL\n" - "B\t\tBrowse bookmarks\n" + "m\t\tSave bookmark\n" + "M\t\tBrowse bookmarks\n" + "k\t\tRemove bookmark for current page\n" "r\t\tReload the page\n" "/<text>\t\tsearch for text (POSIX regular expression)\n" "n\t\tjump to next search match\n" @@ -603,17 +603,17 @@ do_prompts(const char *prompt, struct browser *browser) } result = PROMPT_AGAIN; goto exit; - case 'a': + case 'm': if (in[1]) break; save_bookmark(browser); result = PROMPT_AGAIN; goto exit; - case 's': + case 'k': if (in[1]) break; remove_bookmark(browser); result = PROMPT_AGAIN; goto exit; - case 'B': + case 'M': if (in[1]) break; open_bookmarks(browser); result = PROMPT_ANSWERED; @@ -642,7 +642,7 @@ do_prompts(const char *prompt, struct browser *browser) goto exit; } case 'e': - case 'u': + case 'p': case 't': if (!in[1]) break; linksel = (int)strtol(in+1, &endptr, 10);