mirror of
https://github.com/zoriya/bubbles.git
synced 2026-08-05 04:36:07 +00:00
chore: update import paths from github.com/charmbracelet/bubbles/v2 to charm.land/bubbles/v2
This commit is contained in:
@@ -11,7 +11,7 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
|
|
||||||
"github.com/charmbracelet/bubbles/v2/key"
|
"charm.land/bubbles/v2/key"
|
||||||
tea "charm.land/bubbletea/v2"
|
tea "charm.land/bubbletea/v2"
|
||||||
"github.com/charmbracelet/lipgloss/v2"
|
"github.com/charmbracelet/lipgloss/v2"
|
||||||
"github.com/dustin/go-humanize"
|
"github.com/dustin/go-humanize"
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ package help
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/charmbracelet/bubbles/v2/key"
|
"charm.land/bubbles/v2/key"
|
||||||
tea "charm.land/bubbletea/v2"
|
tea "charm.land/bubbletea/v2"
|
||||||
"github.com/charmbracelet/lipgloss/v2"
|
"github.com/charmbracelet/lipgloss/v2"
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -4,7 +4,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/charmbracelet/bubbles/v2/key"
|
"charm.land/bubbles/v2/key"
|
||||||
"github.com/charmbracelet/x/ansi"
|
"github.com/charmbracelet/x/ansi"
|
||||||
"github.com/charmbracelet/x/exp/golden"
|
"github.com/charmbracelet/x/exp/golden"
|
||||||
)
|
)
|
||||||
|
|||||||
+1
-1
@@ -5,7 +5,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/charmbracelet/bubbles/v2/key"
|
"charm.land/bubbles/v2/key"
|
||||||
tea "charm.land/bubbletea/v2"
|
tea "charm.land/bubbletea/v2"
|
||||||
"github.com/charmbracelet/lipgloss/v2"
|
"github.com/charmbracelet/lipgloss/v2"
|
||||||
"github.com/charmbracelet/x/ansi"
|
"github.com/charmbracelet/x/ansi"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package list
|
package list
|
||||||
|
|
||||||
import "github.com/charmbracelet/bubbles/v2/key"
|
import "charm.land/bubbles/v2/key"
|
||||||
|
|
||||||
// KeyMap defines keybindings. It satisfies to the help.KeyMap interface, which
|
// KeyMap defines keybindings. It satisfies to the help.KeyMap interface, which
|
||||||
// is used to render the menu.
|
// is used to render the menu.
|
||||||
|
|||||||
+5
-5
@@ -16,11 +16,11 @@ import (
|
|||||||
"github.com/charmbracelet/x/ansi"
|
"github.com/charmbracelet/x/ansi"
|
||||||
"github.com/sahilm/fuzzy"
|
"github.com/sahilm/fuzzy"
|
||||||
|
|
||||||
"github.com/charmbracelet/bubbles/v2/help"
|
"charm.land/bubbles/v2/help"
|
||||||
"github.com/charmbracelet/bubbles/v2/key"
|
"charm.land/bubbles/v2/key"
|
||||||
"github.com/charmbracelet/bubbles/v2/paginator"
|
"charm.land/bubbles/v2/paginator"
|
||||||
"github.com/charmbracelet/bubbles/v2/spinner"
|
"charm.land/bubbles/v2/spinner"
|
||||||
"github.com/charmbracelet/bubbles/v2/textinput"
|
"charm.land/bubbles/v2/textinput"
|
||||||
)
|
)
|
||||||
|
|
||||||
func clamp[T cmp.Ordered](v, low, high T) T {
|
func clamp[T cmp.Ordered](v, low, high T) T {
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package list
|
package list
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/charmbracelet/bubbles/v2/textinput"
|
"charm.land/bubbles/v2/textinput"
|
||||||
"github.com/charmbracelet/lipgloss/v2"
|
"github.com/charmbracelet/lipgloss/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ package paginator
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/charmbracelet/bubbles/v2/key"
|
"charm.land/bubbles/v2/key"
|
||||||
tea "charm.land/bubbletea/v2"
|
tea "charm.land/bubbletea/v2"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ package spinner_test
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/charmbracelet/bubbles/v2/spinner"
|
"charm.land/bubbles/v2/spinner"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSpinnerNew(t *testing.T) {
|
func TestSpinnerNew(t *testing.T) {
|
||||||
|
|||||||
+3
-3
@@ -4,9 +4,9 @@ package table
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/charmbracelet/bubbles/v2/help"
|
"charm.land/bubbles/v2/help"
|
||||||
"github.com/charmbracelet/bubbles/v2/key"
|
"charm.land/bubbles/v2/key"
|
||||||
"github.com/charmbracelet/bubbles/v2/viewport"
|
"charm.land/bubbles/v2/viewport"
|
||||||
tea "charm.land/bubbletea/v2"
|
tea "charm.land/bubbletea/v2"
|
||||||
"github.com/charmbracelet/lipgloss/v2"
|
"github.com/charmbracelet/lipgloss/v2"
|
||||||
"github.com/mattn/go-runewidth"
|
"github.com/mattn/go-runewidth"
|
||||||
|
|||||||
+2
-2
@@ -5,8 +5,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/charmbracelet/bubbles/v2/help"
|
"charm.land/bubbles/v2/help"
|
||||||
"github.com/charmbracelet/bubbles/v2/viewport"
|
"charm.land/bubbles/v2/viewport"
|
||||||
"github.com/charmbracelet/lipgloss/v2"
|
"github.com/charmbracelet/lipgloss/v2"
|
||||||
"github.com/charmbracelet/x/ansi"
|
"github.com/charmbracelet/x/ansi"
|
||||||
"github.com/charmbracelet/x/exp/golden"
|
"github.com/charmbracelet/x/exp/golden"
|
||||||
|
|||||||
@@ -12,13 +12,13 @@ import (
|
|||||||
"time"
|
"time"
|
||||||
"unicode"
|
"unicode"
|
||||||
|
|
||||||
|
"charm.land/bubbles/v2/cursor"
|
||||||
|
"charm.land/bubbles/v2/internal/memoization"
|
||||||
|
"charm.land/bubbles/v2/internal/runeutil"
|
||||||
|
"charm.land/bubbles/v2/key"
|
||||||
|
"charm.land/bubbles/v2/viewport"
|
||||||
tea "charm.land/bubbletea/v2"
|
tea "charm.land/bubbletea/v2"
|
||||||
"github.com/atotto/clipboard"
|
"github.com/atotto/clipboard"
|
||||||
"github.com/charmbracelet/bubbles/v2/cursor"
|
|
||||||
"github.com/charmbracelet/bubbles/v2/internal/memoization"
|
|
||||||
"github.com/charmbracelet/bubbles/v2/internal/runeutil"
|
|
||||||
"github.com/charmbracelet/bubbles/v2/key"
|
|
||||||
"github.com/charmbracelet/bubbles/v2/viewport"
|
|
||||||
"github.com/charmbracelet/lipgloss/v2"
|
"github.com/charmbracelet/lipgloss/v2"
|
||||||
"github.com/charmbracelet/x/ansi"
|
"github.com/charmbracelet/x/ansi"
|
||||||
rw "github.com/mattn/go-runewidth"
|
rw "github.com/mattn/go-runewidth"
|
||||||
|
|||||||
@@ -9,9 +9,9 @@ import (
|
|||||||
"unicode"
|
"unicode"
|
||||||
|
|
||||||
"github.com/atotto/clipboard"
|
"github.com/atotto/clipboard"
|
||||||
"github.com/charmbracelet/bubbles/v2/cursor"
|
"charm.land/bubbles/v2/cursor"
|
||||||
"github.com/charmbracelet/bubbles/v2/internal/runeutil"
|
"charm.land/bubbles/v2/internal/runeutil"
|
||||||
"github.com/charmbracelet/bubbles/v2/key"
|
"charm.land/bubbles/v2/key"
|
||||||
tea "charm.land/bubbletea/v2"
|
tea "charm.land/bubbletea/v2"
|
||||||
"github.com/charmbracelet/lipgloss/v2"
|
"github.com/charmbracelet/lipgloss/v2"
|
||||||
rw "github.com/mattn/go-runewidth"
|
rw "github.com/mattn/go-runewidth"
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
// Tea.
|
// Tea.
|
||||||
package viewport
|
package viewport
|
||||||
|
|
||||||
import "github.com/charmbracelet/bubbles/v2/key"
|
import "charm.land/bubbles/v2/key"
|
||||||
|
|
||||||
// KeyMap defines the keybindings for the viewport. Note that you don't
|
// KeyMap defines the keybindings for the viewport. Note that you don't
|
||||||
// necessary need to use keybindings at all; the viewport can be controlled
|
// necessary need to use keybindings at all; the viewport can be controlled
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import (
|
|||||||
"slices"
|
"slices"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/charmbracelet/bubbles/v2/key"
|
"charm.land/bubbles/v2/key"
|
||||||
tea "charm.land/bubbletea/v2"
|
tea "charm.land/bubbletea/v2"
|
||||||
"github.com/charmbracelet/lipgloss/v2"
|
"github.com/charmbracelet/lipgloss/v2"
|
||||||
"github.com/charmbracelet/x/ansi"
|
"github.com/charmbracelet/x/ansi"
|
||||||
|
|||||||
Reference in New Issue
Block a user