From dedd2d169f0536578c769447b8bda6989897788b Mon Sep 17 00:00:00 2001 From: Rasmus Lindroth Date: Sun, 1 Jan 2023 12:26:19 +0100 Subject: [PATCH] 1.0.34 (#243) * bump version * downgrade tview * update man pages --- docs/man/tut.1 | 2 +- docs/man/tut.1.md | 4 ++-- docs/man/tut.5 | 2 +- docs/man/tut.5.md | 4 ++-- docs/man/tut.7 | 2 +- docs/man/tut.7.md | 4 ++-- go.mod | 2 +- go.sum | 4 ++-- main.go | 2 +- ui/cmdbar.go | 4 +++- 10 files changed, 16 insertions(+), 14 deletions(-) diff --git a/docs/man/tut.1 b/docs/man/tut.1 index a71878d..a28fdd1 100644 --- a/docs/man/tut.1 +++ b/docs/man/tut.1 @@ -14,7 +14,7 @@ . ftr VB CB . ftr VBI CBI .\} -.TH "tut" "1" "2022-12-31" "tut 1.0.33" "" +.TH "tut" "1" "2023-01-01" "tut 1.0.34" "" .hy .SH NAME .PP diff --git a/docs/man/tut.1.md b/docs/man/tut.1.md index 19cd7ea..57d823c 100644 --- a/docs/man/tut.1.md +++ b/docs/man/tut.1.md @@ -1,6 +1,6 @@ -% tut(1) tut 1.0.33 +% tut(1) tut 1.0.34 % Rasmus Lindroth -% 2022-12-31 +% 2023-01-01 # NAME tut - a Mastodon TUI diff --git a/docs/man/tut.5 b/docs/man/tut.5 index 1779a2c..9206a7f 100644 --- a/docs/man/tut.5 +++ b/docs/man/tut.5 @@ -14,7 +14,7 @@ . ftr VB CB . ftr VBI CBI .\} -.TH "tut" "5" "2022-12-31" "tut 1.0.33" "" +.TH "tut" "5" "2023-01-01" "tut 1.0.34" "" .hy .SH NAME .PP diff --git a/docs/man/tut.5.md b/docs/man/tut.5.md index 1332cda..0cfff58 100644 --- a/docs/man/tut.5.md +++ b/docs/man/tut.5.md @@ -1,6 +1,6 @@ -% tut(5) tut 1.0.33 +% tut(5) tut 1.0.34 % Rasmus Lindroth -% 2022-12-31 +% 2023-01-01 # NAME tut - configuration for tut(1) diff --git a/docs/man/tut.7 b/docs/man/tut.7 index bfa7242..bf24f2c 100644 --- a/docs/man/tut.7 +++ b/docs/man/tut.7 @@ -14,7 +14,7 @@ . ftr VB CB . ftr VBI CBI .\} -.TH "tut" "7" "2022-12-31" "tut 1.0.33" "" +.TH "tut" "7" "2023-01-01" "tut 1.0.34" "" .hy .SH NAME .PP diff --git a/docs/man/tut.7.md b/docs/man/tut.7.md index 90f66e1..a99cc64 100644 --- a/docs/man/tut.7.md +++ b/docs/man/tut.7.md @@ -1,6 +1,6 @@ -% tut(7) tut 1.0.33 +% tut(7) tut 1.0.34 % Rasmus Lindroth -% 2022-12-31 +% 2023-01-01 # NAME tut - keys and commands inside of tut(1) diff --git a/go.mod b/go.mod index 3dc42cc..3f67ba1 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/icza/gox v0.0.0-20221026131554-a08a8cdc726a github.com/microcosm-cc/bluemonday v1.0.21 github.com/pelletier/go-toml/v2 v2.0.6 - github.com/rivo/tview v0.0.0-20221229180733-b86a50a5126c + github.com/rivo/tview v0.0.0-20221221172851-9c04916f4eaa github.com/rivo/uniseg v0.4.3 github.com/spf13/pflag v1.0.5 golang.org/x/exp v0.0.0-20221230185412-738e83a70c30 diff --git a/go.sum b/go.sum index d157ea0..217e576 100644 --- a/go.sum +++ b/go.sum @@ -44,8 +44,8 @@ github.com/pelletier/go-toml/v2 v2.0.6/go.mod h1:eumQOmlWiOPt5WriQQqoM5y18pDHwha github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/rivo/tview v0.0.0-20221229180733-b86a50a5126c h1:Xa0IDAwI/b4D3AQwFOhvOeYB/H0N8Bhhe3XJWSa2vjg= -github.com/rivo/tview v0.0.0-20221229180733-b86a50a5126c/go.mod h1:lBUy/T5kyMudFzWUH/C2moN+NlU5qF505vzOyINXuUQ= +github.com/rivo/tview v0.0.0-20221221172851-9c04916f4eaa h1:f5OVRPQnaO1dvCS5UdaSLsf+3RFG49UlQAUE/Jfstp0= +github.com/rivo/tview v0.0.0-20221221172851-9c04916f4eaa/go.mod h1:lBUy/T5kyMudFzWUH/C2moN+NlU5qF505vzOyINXuUQ= github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= github.com/rivo/uniseg v0.4.3 h1:utMvzDsuh3suAEnhH0RdHmoPbU648o6CvXxTx4SBMOw= github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= diff --git a/main.go b/main.go index 5d556c9..a17e810 100644 --- a/main.go +++ b/main.go @@ -8,7 +8,7 @@ import ( "github.com/rivo/tview" ) -const version = "1.0.33" +const version = "1.0.34" func main() { util.SetTerminalTitle("tut") diff --git a/ui/cmdbar.go b/ui/cmdbar.go index 65e7156..a6c6021 100644 --- a/ui/cmdbar.go +++ b/ui/cmdbar.go @@ -19,7 +19,7 @@ func NewCmdBar(tv *TutView) *CmdBar { View: NewInputField(tv.tut.Config), } c.View.SetAutocompleteFunc(c.Autocomplete) - c.View.SetAutocompletedFunc(c.Autocompleted) + //c.View.SetAutocompletedFunc(c.Autocompleted) c.View.SetDoneFunc(c.DoneFunc) return c @@ -315,6 +315,7 @@ func (c *CmdBar) Autocomplete(curr string) []string { return entries } +/* func (c *CmdBar) Autocompleted(text string, index, source int) bool { if source != tview.AutocompletedNavigate { c.View.SetText(text) @@ -322,3 +323,4 @@ func (c *CmdBar) Autocompleted(text string, index, source int) bool { return source == tview.AutocompletedEnter || source == tview.AutocompletedClick } +*/