Skip to content
Myr

junegunn/uniseg -> rivo/uniseg

Before adoption: this commit came in with the history the project adopted, so no landing records it.

https://github.com/rivo/uniseg/pull/47

authored by Junegunn Choi · committed by Junegunn Choi · parent a34e8dc · Browse files · 9 files+16 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • https: //github.com/rivo/uniseg/pull/47

Diff stats

9 files+16 added−12 removed

  • other:+16 added−12 removed

9 files+16 added−12 removed

modified:src/tui/light.go+1 added-1 removed
8 unmodified lines
9 "strings"10 "time"11 "unicode/utf8"1213 "github.com/junegunn/uniseg"13 "github.com/rivo/uniseg"1415 "golang.org/x/term"16)17
1105 unmodified lines
modified:src/tui/tcell.go+1 added-1 removed
8 unmodified lines
9 "github.com/gdamore/tcell/v2"10 "github.com/gdamore/tcell/v2/encoding"11 "github.com/junegunn/fzf/src/util"1213 "github.com/junegunn/uniseg"13 "github.com/rivo/uniseg"14)1516func HasFullscreenRenderer() bool {17 return true
775 unmodified lines
modified:src/tui/tui.go+1 added-1 removed
4 unmodified lines
5 "os"6 "strconv"7 "time"89 "github.com/junegunn/uniseg"9 "github.com/rivo/uniseg"10)1112// Types of user action13type EventType int
808 unmodified lines
modified:src/util/util.go+1 added-1 removed
4 unmodified lines
5 "os"6 "strings"7 "time"89 "github.com/junegunn/uniseg"9 "github.com/mattn/go-isatty"10 "github.com/rivo/uniseg"11)1213// StringWidth returns string width where each CR/LF character takes 1 column14func StringWidth(s string) int {
164 unmodified lines
modified:src/options.go+1 added-1 removed
9 unmodified lines
1011 "github.com/junegunn/fzf/src/algo"12 "github.com/junegunn/fzf/src/tui"13 "github.com/junegunn/fzf/src/util"14 "github.com/junegunn/uniseg"1415 "github.com/mattn/go-shellwords"16 "github.com/rivo/uniseg"17)1819const usage = `usage: fzf [options]20
2161 unmodified lines
modified:src/terminal.go+1 added-1 removed
15 unmodified lines
16 "sync"17 "syscall"18 "time"1920 "github.com/junegunn/uniseg"20 "github.com/rivo/uniseg"2122 "github.com/junegunn/fzf/src/tui"23 "github.com/junegunn/fzf/src/util"24)
4173 unmodified lines
modified:CHANGELOG.md+7 added
1CHANGELOG2=========340.46.15------6- Fixed Windows binaries7- Downgraded Go version to 1.20 to support older versions of Windows8 - https://tip.golang.org/doc/go1.21#windows9- Updated [rivo/uniseg](https://github.com/rivo/uniseg) dependency to v0.4.510110.46.012------13- Added two new events14 - `result` - triggered when the filtering for the current query is complete and the result list is ready
1852 unmodified lines
modified:go.mod+1 added-2 removed
1module github.com/junegunn/fzf23require (4 github.com/gdamore/tcell/v2 v2.5.45 github.com/junegunn/uniseg v0.0.0-20240120174029-b504da4f6ed25 github.com/mattn/go-isatty v0.0.176 github.com/mattn/go-shellwords v1.0.127 github.com/rivo/uniseg v0.4.58 github.com/saracen/walker v0.1.39 golang.org/x/sys v0.16.010 golang.org/x/term v0.16.011)
1 unmodified line
13require (14 github.com/gdamore/encoding v1.0.0 // indirect15 github.com/lucasb-eyer/go-colorful v1.2.0 // indirect16 github.com/mattn/go-runewidth v0.0.14 // indirect17 github.com/rivo/uniseg v0.4.4 // indirect17 golang.org/x/sync v0.5.0 // indirect18 golang.org/x/text v0.5.0 // indirect19)20
1 unmodified line
modified:go.sum+2 added-4 removed
1github.com/gdamore/encoding v1.0.0 h1:+7OoQ1Bc6eTm5niUzBa0Ctsh6JbMW6Ra+YNuAtDBdko=2github.com/gdamore/encoding v1.0.0/go.mod h1:alR0ol34c49FCSBLjhosxzcPHQbf2trDkoo5dl+VrEg=3github.com/gdamore/tcell/v2 v2.5.4 h1:TGU4tSjD3sCL788vFNeJnTdzpNKIw1H5dgLnJRQVv/k=4github.com/gdamore/tcell/v2 v2.5.4/go.mod h1:dZgRy5v4iMobMEcWNYBtREnDZAT9DYmfqIkrgEMxLyw=5github.com/junegunn/uniseg v0.0.0-20240120174029-b504da4f6ed2 h1:oEwPBh29BPu1MaTsz2dM9bDrkOgKBoYFC0u6uY2izWo=6github.com/junegunn/uniseg v0.0.0-20240120174029-b504da4f6ed2/go.mod h1:ywqF55XaSE3/uS2tkJqVFKiE0oIYAXRvU2N7DU4y3XQ=5github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=6github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=7github.com/mattn/go-isatty v0.0.17 h1:BTarxUcIeDqL27Mc+vyvdWYSL28zpIhv3RoTdsLMPng=8github.com/mattn/go-isatty v0.0.17/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
1 unmodified line
10github.com/mattn/go-runewidth v0.0.14/go.mod h1:Jdepj2loyihRzMpdS35Xk/zdY8IAYHsh153qUoGf23w=11github.com/mattn/go-shellwords v1.0.12 h1:M2zGm7EW6UQJvDeQxo4T51eKPurbeFbe8WtebGE2xrk=12github.com/mattn/go-shellwords v1.0.12/go.mod h1:EZzvwXDESEeg03EKmM+RmDnNOPKG4lLtQsUlTZDWQ8Y=13github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=16github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=17github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=14github.com/rivo/uniseg v0.4.5 h1:I1LlsYBcfG4ggKsNaL6bi8pL7Z8SizVPVBrh3Y8F/BA=15github.com/rivo/uniseg v0.4.5/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=16github.com/saracen/walker v0.1.3 h1:YtcKKmpRPy6XJTHJ75J2QYXXZYWnZNQxPCVqZSHVV/g=17github.com/saracen/walker v0.1.3/go.mod h1:FU+7qU8DeQQgSZDmmThMJi93kPkLFgy0oVAcLxurjIk=18github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=19golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
31 unmodified lines