Skip to content

Commit

Permalink
1.0.34 (#243)
Browse files Browse the repository at this point in the history
* bump version

* downgrade tview

* update man pages
  • Loading branch information
RasmusLindroth authored Jan 1, 2023
1 parent 6d0a1db commit dedd2d1
Show file tree
Hide file tree
Showing 10 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/man/tut.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/man/tut.1.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/man/tut.5
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/man/tut.5.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion docs/man/tut.7
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions docs/man/tut.7.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"github.com/rivo/tview"
)

const version = "1.0.33"
const version = "1.0.34"

func main() {
util.SetTerminalTitle("tut")
Expand Down
4 changes: 3 additions & 1 deletion ui/cmdbar.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -315,10 +315,12 @@ 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)
}
return source == tview.AutocompletedEnter || source == tview.AutocompletedClick
}
*/

0 comments on commit dedd2d1

Please sign in to comment.