cgmnlm

colorful gemini line mode browser
git clone https://git.clttr.info/cgmnlm.git
Log (Feed) | Files | Refs (Tags) | README | LICENSE

commit 84da4b3f2b95bead2c1609eb572a2369576eae77
parent f5d540bc5d0112895376aebe6bf54adb32545d6e
Author: René Wagner <rwagner@rw-net.de>
Date:   Wed, 23 Dec 2020 16:27:06 +0100

modify keybindings

Diffstat:
Msrc/gmnlm.c | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/gmnlm.c b/src/gmnlm.c @@ -71,13 +71,13 @@ const char *default_bookmarks = const char *help_msg = "The following commands are available:\n\n" "q\tQuit\n" - "N\tFollow Nth link (where N is a number)\n" - "p[N]\tShow URL of Nth link (where N is a number)\n" + "[N]\tFollow Nth link (where N is a number)\n" + "u[N]\tShow URL of Nth link (where N is a number)\n" "b\tBack (in the page history)\n" "f\tForward (in the page history)\n" "H\tView all page history\n" - "m\tSave bookmark\n" - "M\tBrowse bookmarks\n" + "a\tSave bookmark\n" + "B\tBrowse bookmarks\n" "r\tReload the page\n" "d <path>\tDownload page to <path>\n" "|<prog>\tPipe page into program\n" @@ -549,12 +549,12 @@ do_prompts(const char *prompt, struct browser *browser) } result = PROMPT_AGAIN; goto exit; - case 'm': + case 'a': if (in[1]) break; save_bookmark(browser); result = PROMPT_AGAIN; goto exit; - case 'M': + case 'B': if (in[1]) break; open_bookmarks(browser); result = PROMPT_ANSWERED; @@ -582,7 +582,7 @@ do_prompts(const char *prompt, struct browser *browser) result = PROMPT_AGAIN; goto exit; } - case 'p': + case 'u': if (!in[1]) break; struct link *link = browser->links; char *endptr;