mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-23 17:27:14 +09:00
gofmt after renaming the URL
This commit is contained in:
@@ -18,8 +18,6 @@ import (
|
||||
|
||||
"github.com/go-errors/errors"
|
||||
isatty "github.com/mattn/go-isatty"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
"github.com/micro-editor/micro/v2/internal/action"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/clipboard"
|
||||
@@ -27,6 +25,8 @@ import (
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/shell"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -7,12 +7,12 @@ import (
|
||||
"testing"
|
||||
|
||||
"github.com/go-errors/errors"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/micro-editor/micro/v2/internal/action"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
var tempDir string
|
||||
|
||||
@@ -11,7 +11,6 @@ import (
|
||||
"time"
|
||||
|
||||
shellquote "github.com/kballard/go-shellquote"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/clipboard"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
@@ -19,6 +18,7 @@ import (
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/shell"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
)
|
||||
|
||||
// ScrollUp is not an action
|
||||
|
||||
@@ -12,10 +12,10 @@ import (
|
||||
"unicode"
|
||||
|
||||
"github.com/micro-editor/json5"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
)
|
||||
|
||||
var Binder = map[string]func(e Event, action string){
|
||||
|
||||
@@ -6,14 +6,14 @@ import (
|
||||
|
||||
luar "layeh.com/gopher-luar"
|
||||
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
"github.com/micro-editor/micro/v2/internal/display"
|
||||
ulua "github.com/micro-editor/micro/v2/internal/lua"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
)
|
||||
|
||||
type BufAction any
|
||||
|
||||
@@ -3,12 +3,12 @@ package action
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
"github.com/micro-editor/micro/v2/internal/display"
|
||||
"github.com/micro-editor/micro/v2/internal/info"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
)
|
||||
|
||||
type InfoKeyAction func(*InfoPane)
|
||||
|
||||
@@ -4,9 +4,9 @@ import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/display"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
)
|
||||
|
||||
type RawPane struct {
|
||||
|
||||
@@ -3,13 +3,13 @@ package action
|
||||
import (
|
||||
luar "layeh.com/gopher-luar"
|
||||
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
"github.com/micro-editor/micro/v2/internal/display"
|
||||
ulua "github.com/micro-editor/micro/v2/internal/lua"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/views"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
)
|
||||
|
||||
// The TabList is a list of tabs and a window to display the tab bar
|
||||
|
||||
@@ -4,13 +4,13 @@ import (
|
||||
"errors"
|
||||
"runtime"
|
||||
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/terminal"
|
||||
"github.com/micro-editor/micro/v2/internal/clipboard"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
"github.com/micro-editor/micro/v2/internal/display"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/shell"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/terminal"
|
||||
)
|
||||
|
||||
type TermKeyAction func(*TermPane)
|
||||
|
||||
@@ -17,12 +17,12 @@ import (
|
||||
|
||||
luar "layeh.com/gopher-luar"
|
||||
|
||||
dmp "github.com/sergi/go-diff/diffmatchpatch"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
ulua "github.com/micro-editor/micro/v2/internal/lua"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
"github.com/micro-editor/micro/v2/pkg/highlight"
|
||||
dmp "github.com/sergi/go-diff/diffmatchpatch"
|
||||
"golang.org/x/text/encoding"
|
||||
"golang.org/x/text/encoding/htmlindex"
|
||||
"golang.org/x/text/encoding/unicode"
|
||||
|
||||
@@ -5,11 +5,11 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
ulua "github.com/micro-editor/micro/v2/internal/lua"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
"github.com/stretchr/testify/assert"
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
)
|
||||
|
||||
type operation struct {
|
||||
|
||||
@@ -4,11 +4,11 @@ import (
|
||||
"bytes"
|
||||
"time"
|
||||
|
||||
dmp "github.com/sergi/go-diff/diffmatchpatch"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
ulua "github.com/micro-editor/micro/v2/internal/lua"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
dmp "github.com/sergi/go-diff/diffmatchpatch"
|
||||
luar "layeh.com/gopher-luar"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
package buffer
|
||||
|
||||
import (
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
)
|
||||
|
||||
type MsgType int
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"errors"
|
||||
"time"
|
||||
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
)
|
||||
|
||||
type terminalClipboard struct{}
|
||||
|
||||
@@ -4,8 +4,8 @@ import (
|
||||
"errors"
|
||||
"log"
|
||||
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
ulua "github.com/micro-editor/micro/v2/internal/lua"
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
)
|
||||
|
||||
// ErrNoSuchFunction is returned when Call is executed on a function that does not exist
|
||||
|
||||
@@ -14,9 +14,9 @@ import (
|
||||
|
||||
"github.com/blang/semver"
|
||||
"github.com/micro-editor/json5"
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
ulua "github.com/micro-editor/micro/v2/internal/lua"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
)
|
||||
|
||||
var (
|
||||
|
||||
@@ -12,8 +12,8 @@ import (
|
||||
"strings"
|
||||
|
||||
"github.com/micro-editor/json5"
|
||||
"github.com/zyedidia/glob"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
"github.com/zyedidia/glob"
|
||||
"golang.org/x/text/encoding/htmlindex"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@ import (
|
||||
"strings"
|
||||
|
||||
runewidth "github.com/mattn/go-runewidth"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
)
|
||||
|
||||
// The BufWindow provides a way of displaying a certain section of a buffer.
|
||||
|
||||
@@ -2,12 +2,12 @@ package display
|
||||
|
||||
import (
|
||||
runewidth "github.com/mattn/go-runewidth"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
"github.com/micro-editor/micro/v2/internal/info"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
)
|
||||
|
||||
type InfoWindow struct {
|
||||
|
||||
@@ -10,12 +10,12 @@ import (
|
||||
luar "layeh.com/gopher-luar"
|
||||
|
||||
runewidth "github.com/mattn/go-runewidth"
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
ulua "github.com/micro-editor/micro/v2/internal/lua"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
lua "github.com/yuin/gopher-lua"
|
||||
)
|
||||
|
||||
// StatusLine represents the information line at the bottom
|
||||
|
||||
@@ -2,11 +2,11 @@ package display
|
||||
|
||||
import (
|
||||
runewidth "github.com/mattn/go-runewidth"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
)
|
||||
|
||||
type TabWindow struct {
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
package display
|
||||
|
||||
import (
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/terminal"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/micro/v2/internal/shell"
|
||||
"github.com/micro-editor/micro/v2/internal/util"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/terminal"
|
||||
)
|
||||
|
||||
type TermWindow struct {
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"os"
|
||||
"sync"
|
||||
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
"github.com/micro-editor/micro/v2/internal/config"
|
||||
"github.com/micro-editor/tcell/v2"
|
||||
)
|
||||
|
||||
// Screen is the tcell screen we use to draw to the terminal
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"os/exec"
|
||||
"strconv"
|
||||
|
||||
"github.com/micro-editor/terminal"
|
||||
"github.com/micro-editor/micro/v2/internal/buffer"
|
||||
"github.com/micro-editor/micro/v2/internal/screen"
|
||||
"github.com/micro-editor/terminal"
|
||||
)
|
||||
|
||||
type TermType int
|
||||
|
||||
Reference in New Issue
Block a user