From 9af1a4d642b1149a98048f6a4e8f73716c8f352d Mon Sep 17 00:00:00 2001 From: sloum Date: Sun, 12 Apr 2020 22:53:08 -0700 Subject: [PATCH 1/4] Adds quick-link navigation by number keys --- client.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client.go b/client.go index 855f79d..5322c08 100644 --- a/client.go +++ b/client.go @@ -162,6 +162,12 @@ func (c *client) TakeControlInput() { input := cui.Getch() switch input { + case '1', '2', '3', '4', '5', '6', '7', '8', '9', '0': + if input == '0' { + c.goToLink("10") + } else { + c.goToLink(string(input)) + } case 'j', 'J': // scroll down one line c.ClearMessage() From bfb6b85844acb6e308126d5fb88b8beb0d7eaa11 Mon Sep 17 00:00:00 2001 From: sloum Date: Sun, 12 Apr 2020 22:57:50 -0700 Subject: [PATCH 2/4] Updates man page with quick link information --- bombadillo.1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bombadillo.1 b/bombadillo.1 index f2da50e..ef3e479 100644 --- a/bombadillo.1 +++ b/bombadillo.1 @@ -106,6 +106,10 @@ R Reload the current page (does not destroy forward history). .TP .B +1, 2, 3, 4, 5, 6, 7, 8, 9, 0 +Quick navigation to the first 10 links on a page. The 0 key will navigate to the link numbered '10', all other numbers navigate to their matching link number. +.TP +.B u Scroll up an amount corresponding to 75% of your terminal window height in the current document. .TP From cdfec887fd020e3ad670696a281aaa7ae8477d70 Mon Sep 17 00:00:00 2001 From: sloum Date: Tue, 14 Apr 2020 18:26:03 +0000 Subject: [PATCH 3/4] Solves the issue where line wrapping is not turned back on --- cui/cui.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cui/cui.go b/cui/cui.go index 7f2be9f..676fcc6 100644 --- a/cui/cui.go +++ b/cui/cui.go @@ -56,8 +56,8 @@ func Exit(exitCode int, msg string) { // InitTerm sets the terminal modes appropriate for Bombadillo func InitTerm() { SetCharMode() - Tput("rmam") // turn off line wrapping Tput("smcup") // use alternate screen + Tput("rmam") // turn off line wrapping } // CleanupTerm reverts changs to terminal mode made by InitTerm From 961bdfc92f4ff8cd19773701d8743cb98341c0cf Mon Sep 17 00:00:00 2001 From: sloum Date: Thu, 23 Apr 2020 10:41:32 -0700 Subject: [PATCH 4/4] Minor release with improved term handling and quick link navigation --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index ccbccc3..c043eea 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.2.0 +2.2.1