Browse Source

1.0.34 (#243)

* bump version

* downgrade tview

* update man pages
pull/218/merge 1.0.34
Rasmus Lindroth 3 years ago committed by GitHub
parent
commit
dedd2d169f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/man/tut.1
  2. 4
      docs/man/tut.1.md
  3. 2
      docs/man/tut.5
  4. 4
      docs/man/tut.5.md
  5. 2
      docs/man/tut.7
  6. 4
      docs/man/tut.7.md
  7. 2
      go.mod
  8. 4
      go.sum
  9. 2
      main.go
  10. 4
      ui/cmdbar.go

2
docs/man/tut.1

@ -14,7 +14,7 @@
. ftr VB CB . ftr VB CB
. ftr VBI CBI . ftr VBI CBI
.\} .\}
.TH "tut" "1" "2022-12-31" "tut 1.0.33" "" .TH "tut" "1" "2023-01-01" "tut 1.0.34" ""
.hy .hy
.SH NAME .SH NAME
.PP .PP

4
docs/man/tut.1.md

@ -1,6 +1,6 @@
% tut(1) tut 1.0.33 % tut(1) tut 1.0.34
% Rasmus Lindroth % Rasmus Lindroth
% 2022-12-31 % 2023-01-01
# NAME # NAME
tut - a Mastodon TUI tut - a Mastodon TUI

2
docs/man/tut.5

@ -14,7 +14,7 @@
. ftr VB CB . ftr VB CB
. ftr VBI CBI . ftr VBI CBI
.\} .\}
.TH "tut" "5" "2022-12-31" "tut 1.0.33" "" .TH "tut" "5" "2023-01-01" "tut 1.0.34" ""
.hy .hy
.SH NAME .SH NAME
.PP .PP

4
docs/man/tut.5.md

@ -1,6 +1,6 @@
% tut(5) tut 1.0.33 % tut(5) tut 1.0.34
% Rasmus Lindroth % Rasmus Lindroth
% 2022-12-31 % 2023-01-01
# NAME # NAME
tut - configuration for tut(1) tut - configuration for tut(1)

2
docs/man/tut.7

@ -14,7 +14,7 @@
. ftr VB CB . ftr VB CB
. ftr VBI CBI . ftr VBI CBI
.\} .\}
.TH "tut" "7" "2022-12-31" "tut 1.0.33" "" .TH "tut" "7" "2023-01-01" "tut 1.0.34" ""
.hy .hy
.SH NAME .SH NAME
.PP .PP

4
docs/man/tut.7.md

@ -1,6 +1,6 @@
% tut(7) tut 1.0.33 % tut(7) tut 1.0.34
% Rasmus Lindroth % Rasmus Lindroth
% 2022-12-31 % 2023-01-01
# NAME # NAME
tut - keys and commands inside of tut(1) tut - keys and commands inside of tut(1)

2
go.mod

@ -12,7 +12,7 @@ require (
github.com/icza/gox v0.0.0-20221026131554-a08a8cdc726a github.com/icza/gox v0.0.0-20221026131554-a08a8cdc726a
github.com/microcosm-cc/bluemonday v1.0.21 github.com/microcosm-cc/bluemonday v1.0.21
github.com/pelletier/go-toml/v2 v2.0.6 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/rivo/uniseg v0.4.3
github.com/spf13/pflag v1.0.5 github.com/spf13/pflag v1.0.5
golang.org/x/exp v0.0.0-20221230185412-738e83a70c30 golang.org/x/exp v0.0.0-20221230185412-738e83a70c30

4
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/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 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 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-20221221172851-9c04916f4eaa h1:f5OVRPQnaO1dvCS5UdaSLsf+3RFG49UlQAUE/Jfstp0=
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/go.mod h1:lBUy/T5kyMudFzWUH/C2moN+NlU5qF505vzOyINXuUQ=
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc= 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 h1:utMvzDsuh3suAEnhH0RdHmoPbU648o6CvXxTx4SBMOw=
github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88= github.com/rivo/uniseg v0.4.3/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=

2
main.go

@ -8,7 +8,7 @@ import (
"github.com/rivo/tview" "github.com/rivo/tview"
) )
const version = "1.0.33" const version = "1.0.34"
func main() { func main() {
util.SetTerminalTitle("tut") util.SetTerminalTitle("tut")

4
ui/cmdbar.go

@ -19,7 +19,7 @@ func NewCmdBar(tv *TutView) *CmdBar {
View: NewInputField(tv.tut.Config), View: NewInputField(tv.tut.Config),
} }
c.View.SetAutocompleteFunc(c.Autocomplete) c.View.SetAutocompleteFunc(c.Autocomplete)
c.View.SetAutocompletedFunc(c.Autocompleted) //c.View.SetAutocompletedFunc(c.Autocompleted)
c.View.SetDoneFunc(c.DoneFunc) c.View.SetDoneFunc(c.DoneFunc)
return c return c
@ -315,6 +315,7 @@ func (c *CmdBar) Autocomplete(curr string) []string {
return entries return entries
} }
/*
func (c *CmdBar) Autocompleted(text string, index, source int) bool { func (c *CmdBar) Autocompleted(text string, index, source int) bool {
if source != tview.AutocompletedNavigate { if source != tview.AutocompletedNavigate {
c.View.SetText(text) 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 return source == tview.AutocompletedEnter || source == tview.AutocompletedClick
} }
*/

Loading…
Cancel
Save