Skip to content
Myr

Bump bubbles in examples and remove NewModel function in pager example

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

authored by Christian Rocha · committed by Christian Rocha · parent 6d919a9 · Browse files · 4 files+9 added−7 removed
This commit

State

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

Diff stats

4 files+9 added−7 removed

  • other:+9 added−7 removed

4 files+9 added−7 removed

modified:examples/pager/main.go+1 added-1 removed
104 unmodified lines
105 // to wait until we've received the window dimensions before we106 // can initialize the viewport. The initial dimensions come in107 // quickly, though asynchronously, which is why we wait for them108 // here.109 m.viewport = viewport.NewModel(msg.Width, msg.Height-verticalMargins)109 m.viewport = viewport.Model{Width: msg.Width, Height: msg.Height - verticalMargins}110 m.viewport.YPosition = headerHeight111 m.viewport.HighPerformanceRendering = useHighPerformanceRenderer112 m.viewport.SetContent(m.content)113 m.ready = true
52 unmodified lines
modified:examples/go.mod+2 added
10 unmodified lines
11 github.com/mattn/go-runewidth v0.0.912 github.com/muesli/termenv v0.7.013 golang.org/x/sys v0.0.0-20200728102440-3e129f6d46b1 // indirect14)1516replace github.com/charmbracelet/bubbles => ../../bubbles
modified:go.mod+2 added-2 removed
3 unmodified lines
45require (6 github.com/muesli/termenv v0.5.3-0.20200625163851-04b5c30e4c047 github.com/pkg/term v0.0.0-20200520122047-c3ffed290a038 golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf99 golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4 // indirect8 golang.org/x/crypto v0.0.0-20200709230013-948cd5f358999 golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae // indirect10)
modified:go.sum+4 added-4 removed
7 unmodified lines
8github.com/muesli/termenv v0.5.3-0.20200625163851-04b5c30e4c04/go.mod h1:O1/I6sw+6KcrgAmcs6uiUVr7Lui+DNVbHTzt9Lm/PlI=9github.com/pkg/term v0.0.0-20200520122047-c3ffed290a03 h1:pd4YKIqCB0U7O2I4gWHgEUA2mCEOENmco0l/bM957bU=10github.com/pkg/term v0.0.0-20200520122047-c3ffed290a03/go.mod h1:Z9+Ul5bCbBKnbCvdOWbLqTHhJiYV414CURZJba6L8qA=11golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=12golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9 h1:vEg9joUBmeBcK9iSJftGNf3coIG4HqZElCPehJsfAYM=13golang.org/x/crypto v0.0.0-20200604202706-70a84ac30bf9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=12golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899 h1:DZhuSZLsGlFL4CmhA8BcRA0mnthyA/nZ00AqCUo7vHg=13golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=14golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=15golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=16golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=17golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=18golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4 h1:5/PjkGUjvEU5Gl6BxmvKRPpqo2uNMv4rcHBMwzk/st8=19golang.org/x/sys v0.0.0-20200622214017-ed371f2e16b4/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=18golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae h1:Ih9Yo4hSPImZOpfGuA4bR/ORKTAbhZo2AbWNRCnevdo=19golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=20golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=