Browse Source

downgrade tview

pull/243/head
Rasmus Lindroth 3 years ago
parent
commit
f6884f577e
  1. 2
      go.mod
  2. 4
      go.sum
  3. 4
      ui/cmdbar.go

2
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

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/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=

4
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
}
*/

Loading…
Cancel
Save