Update to tcell v2

This commit is contained in:
Zachary Yedidia
2020-09-05 14:52:35 -04:00
parent f35f507832
commit 11104fd093
21 changed files with 32 additions and 39 deletions

View File

@@ -13,7 +13,7 @@ import (
"github.com/zyedidia/micro/v2/internal/screen"
"github.com/zyedidia/micro/v2/internal/shell"
"github.com/zyedidia/micro/v2/internal/util"
"github.com/zyedidia/tcell"
"github.com/zyedidia/tcell/v2"
)
// ScrollUp is not an action

View File

@@ -13,7 +13,7 @@ import (
"github.com/zyedidia/json5"
"github.com/zyedidia/micro/v2/internal/config"
"github.com/zyedidia/micro/v2/internal/screen"
"github.com/zyedidia/tcell"
"github.com/zyedidia/tcell/v2"
)
var Binder = map[string]func(e Event, action string){
@@ -334,9 +334,9 @@ func UnbindKey(k string) error {
}
var mouseEvents = map[string]tcell.ButtonMask{
"MouseLeft": tcell.Button1,
"MouseMiddle": tcell.Button2,
"MouseRight": tcell.Button3,
"MouseLeft": tcell.ButtonPrimary,
"MouseMiddle": tcell.ButtonMiddle,
"MouseRight": tcell.ButtonSecondary,
"MouseWheelUp": tcell.WheelUp,
"MouseWheelDown": tcell.WheelDown,
"MouseWheelLeft": tcell.WheelLeft,

View File

@@ -13,7 +13,7 @@ import (
"github.com/zyedidia/micro/v2/internal/display"
ulua "github.com/zyedidia/micro/v2/internal/lua"
"github.com/zyedidia/micro/v2/internal/screen"
"github.com/zyedidia/tcell"
"github.com/zyedidia/tcell/v2"
)
type BufKeyAction func(*BufPane) bool

View File

@@ -6,7 +6,7 @@ import (
"fmt"
"strings"
"github.com/zyedidia/tcell"
"github.com/zyedidia/tcell/v2"
)
type Event interface {

View File

@@ -7,7 +7,7 @@ import (
"github.com/zyedidia/micro/v2/internal/display"
"github.com/zyedidia/micro/v2/internal/info"
"github.com/zyedidia/micro/v2/internal/util"
"github.com/zyedidia/tcell"
"github.com/zyedidia/tcell/v2"
)
type InfoKeyAction func(*InfoPane)

View File

@@ -3,7 +3,7 @@ package action
import (
"bytes"
"github.com/zyedidia/tcell"
"github.com/zyedidia/tcell/v2"
)
type PaneKeyAction func(Pane) bool

View File

@@ -6,7 +6,7 @@ import (
"github.com/zyedidia/micro/v2/internal/buffer"
"github.com/zyedidia/micro/v2/internal/display"
"github.com/zyedidia/tcell"
"github.com/zyedidia/tcell/v2"
)
type RawPane struct {

View File

@@ -6,7 +6,7 @@ import (
"github.com/zyedidia/micro/v2/internal/display"
"github.com/zyedidia/micro/v2/internal/screen"
"github.com/zyedidia/micro/v2/internal/views"
"github.com/zyedidia/tcell"
"github.com/zyedidia/tcell/v2"
)
// The TabList is a list of tabs and a window to display the tab bar

View File

@@ -8,7 +8,7 @@ import (
"github.com/zyedidia/micro/v2/internal/display"
"github.com/zyedidia/micro/v2/internal/screen"
"github.com/zyedidia/micro/v2/internal/shell"
"github.com/zyedidia/tcell"
"github.com/zyedidia/tcell/v2"
"github.com/zyedidia/terminal"
)