From 41e35f8d697e8ddec54c7a24971e33501df5b399 Mon Sep 17 00:00:00 2001 From: Trevor Slocum Date: Sat, 3 Apr 2021 08:11:20 -0700 Subject: [PATCH] Add code.rocketnine.space migration notice --- .gitlab-ci.yml | 20 ---------------- CONTRIBUTING.md | 6 ++--- DESIGN.md | 4 ++-- FORK.md | 18 +++++++------- README.md | 28 +++++++++++++--------- demos/box/main.go | 2 +- demos/button/main.go | 2 +- demos/checkbox/main.go | 2 +- demos/dropdown/main.go | 2 +- demos/flex/main.go | 2 +- demos/focusmanager/main.go | 4 ++-- demos/form/main.go | 2 +- demos/frame/main.go | 2 +- demos/grid/main.go | 2 +- demos/inputfield/autocomplete/main.go | 2 +- demos/inputfield/autocompleteasync/main.go | 2 +- demos/inputfield/simple/main.go | 2 +- demos/list/main.go | 2 +- demos/modal/main.go | 2 +- demos/panels/main.go | 2 +- demos/presentation/center.go | 2 +- demos/presentation/code.go | 2 +- demos/presentation/colors.go | 2 +- demos/presentation/cover.go | 2 +- demos/presentation/end.go | 4 ++-- demos/presentation/flex.go | 2 +- demos/presentation/form.go | 4 ++-- demos/presentation/grid.go | 2 +- demos/presentation/inputfield.go | 4 ++-- demos/presentation/introduction.go | 2 +- demos/presentation/main.go | 2 +- demos/presentation/slider.go | 4 ++-- demos/presentation/table.go | 2 +- demos/presentation/textview.go | 4 ++-- demos/presentation/treeview.go | 4 ++-- demos/presentation/window.go | 2 +- demos/primitive/main.go | 2 +- demos/progressbar/main.go | 2 +- demos/tabbedpanels/main.go | 2 +- demos/table/main.go | 2 +- demos/textview/main.go | 2 +- demos/treeview/main.go | 2 +- demos/unicode/main.go | 2 +- doc.go | 2 +- doc_test.go | 2 +- go.mod | 2 +- keys.go | 2 +- 47 files changed, 80 insertions(+), 94 deletions(-) delete mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml deleted file mode 100644 index 4b8775a..0000000 --- a/.gitlab-ci.yml +++ /dev/null @@ -1,20 +0,0 @@ -image: golang:latest - -stages: - - validate - - build - -fmt: - stage: validate - script: - - make check-fmt - -vet: - stage: validate - script: - - make vet - -test: - stage: validate - script: - - make test diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 6222a34..049d415 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -5,11 +5,11 @@ suggestions and patches. Please include as much relevant information as possible. -Review project [documentation](https://docs.rocketnine.space/gitlab.com/tslocum/cview) +Review project [documentation](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview) before submitting an issue. -Share issues and suggestions on the [issue tracker](https://gitlab.com/tslocum/cview/issues). +Share issues and suggestions on the [issue tracker](https://code.rocketnine.space/tslocum/cview/issues). # Patches (pull requests) -Submit patches as [pull requests](https://gitlab.com/tslocum/cview/merge_requests). +Submit patches as [pull requests](https://code.rocketnine.space/tslocum/cview/pulls). diff --git a/DESIGN.md b/DESIGN.md index d355140..8c7e776 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -3,8 +3,8 @@ This document lists architectural details of cview. # Focus-related style attributes are unset by default This applies to all widgets except Button and TabbedPanels, which require a -style change to indicate focus. See [ColorUnset](https://docs.rocketnine.space/gitlab.com/tslocum/cview#pkg-variables). +style change to indicate focus. See [ColorUnset](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview#pkg-variables). # Widgets always use `sync.RWMutex` -See [#30](https://gitlab.com/tslocum/cview/-/issues/30). +See [#30](https://code.rocketnine.space/tslocum/cview/issues/30). diff --git a/FORK.md b/FORK.md index 4023aa2..c8c057a 100644 --- a/FORK.md +++ b/FORK.md @@ -1,5 +1,5 @@ This document explains why [tview](https://github.com/rivo/tview) was forked to -create [cview](https://gitlab.com/tslocum/cview). It also explains any +create [cview](https://code.rocketnine.space/tslocum/cview). It also explains any differences between the projects and tracks which tview pull requests have been merged into cview. @@ -33,11 +33,11 @@ might accidentally end the chain with a different return type than the first method call. This could result in unexpected return types. For example, ending a chain with `SetTitle` would result in a `Box` rather than the original primitive. -## cview is [thread-safe](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#hdr-Concurrency) +## cview is [thread-safe](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview/#hdr-Concurrency) tview [is not thread-safe](https://godoc.org/github.com/rivo/tview#hdr-Concurrency). -## [Application.QueueUpdate](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#Application.QueueUpdate) and [Application.QueueUpdateDraw](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#Application.QueueUpdateDraw) do not block +## [Application.QueueUpdate](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview/#Application.QueueUpdate) and [Application.QueueUpdateDraw](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview/#Application.QueueUpdateDraw) do not block tview [blocks until the queued function returns](https://github.com/rivo/tview/blob/fe3052019536251fd145835dbaa225b33b7d3088/application.go#L510). @@ -58,16 +58,16 @@ func (w *Widget) Draw(screen tcell.Screen) { ## Setting a primitive's background color to `tcell.ColorDefault` does not result in transparency -Call [Box.SetBackgroundTransparent](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#Box.SetBackgroundTransparent) +Call [Box.SetBackgroundTransparent](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview/#Box.SetBackgroundTransparent) to enable background transparency. ## Double clicks are not handled by default -All clicks are handled as single clicks until an interval is set with [Application.SetDoubleClickInterval](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#Application.SetDoubleClickInterval). +All clicks are handled as single clicks until an interval is set with [Application.SetDoubleClickInterval](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview/#Application.SetDoubleClickInterval). ## Tables are sorted when a fixed row is clicked by default -Call [Table.SetSortClicked](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#Table.SetSortClicked) +Call [Table.SetSortClicked](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview/#Table.SetSortClicked) to disable this behavior. ## Lists and Forms do not wrap around by default @@ -81,8 +81,8 @@ remaining unchanged. ## TextViews store their text as []byte instead of string -This greatly improves buffer efficiency. [TextView.Write](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#TextView.Write) -is 90% faster and [TextView.Draw](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#TextView.Draw) +This greatly improves buffer efficiency. [TextView.Write](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview/#TextView.Write) +is 90% faster and [TextView.Draw](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview/#TextView.Draw) is 50% faster. ## `Pages` has been renamed as `Panels` @@ -95,7 +95,7 @@ tview moves the updated panel to the end. ## `Application.ForceDraw` has been removed -Because cview is [thread-safe](https://docs.rocketnine.space/gitlab.com/tslocum/cview/#hdr-Concurrency), +Because cview is [thread-safe](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview/#hdr-Concurrency), application draws must be queued. Call `Application.QueueUpdateDraw` to queue an update that requires the application to be drawn when completed. diff --git a/README.md b/README.md index d3d6767..5935b13 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,22 @@ +!!! cview has moved to [code.rocketnine.space](https://code.rocketnine.space/tslocum/cview) !!! +==== + +Please visit https://code.rocketnine.space/tslocum/cview + +------------ + # cview - Terminal-based user interface toolkit -[![GoDoc](https://gitlab.com/tslocum/godoc-static/-/raw/master/badge.svg)](https://docs.rocketnine.space/gitlab.com/tslocum/cview) -[![CI status](https://gitlab.com/tslocum/cview/badges/master/pipeline.svg)](https://gitlab.com/tslocum/cview/commits/master) +[![GoDoc](https://code.rocketnine.space/tslocum/godoc-static/raw/branch/master/badge.svg)](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview) [![Donate](https://img.shields.io/liberapay/receives/rocketnine.space.svg?logo=liberapay)](https://liberapay.com/rocketnine.space) This package is a fork of [tview](https://github.com/rivo/tview). -See [FORK.md](https://gitlab.com/tslocum/cview/blob/master/FORK.md) for more information. +See [FORK.md](https://code.rocketnine.space/tslocum/cview/src/branch/master/FORK.md) for more information. ## Demo `ssh cview.rocketnine.space -p 20000` -[![Recording of presentation demo](https://gitlab.com/tslocum/cview/-/raw/master/cview.svg)](https://gitlab.com/tslocum/cview/tree/master/demos/presentation) +[![Recording of presentation demo](https://code.rocketnine.space/tslocum/cview/raw/branch/master/cview.svg)](https://code.rocketnine.space/tslocum/cview/src/branch/master/demos/presentation) ## Features @@ -29,16 +35,16 @@ Available widgets: Widgets may be customized and extended to suit any application. -[Mouse support](https://docs.rocketnine.space/gitlab.com/tslocum/cview#hdr-Mouse_Support) is available. +[Mouse support](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview#hdr-Mouse_Support) is available. ## Applications -A list of applications powered by cview is available via [pkg.go.dev](https://pkg.go.dev/gitlab.com/tslocum/cview?tab=importedby). +A list of applications powered by cview is available via [pkg.go.dev](https://pkg.go.dev/code.rocketnine.space/tslocum/cview?tab=importedby). ## Installation ```bash -go get gitlab.com/tslocum/cview +go get code.rocketnine.space/tslocum/cview ``` ## Hello World @@ -49,7 +55,7 @@ This basic example creates a TextView titled "Hello, World!" and displays it in package main import ( - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) func main() { @@ -67,7 +73,7 @@ func main() { } ``` -Examples are available via [godoc](https://docs.rocketnine.space/gitlab.com/tslocum/cview#pkg-examples) +Examples are available via [godoc](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview#pkg-examples) and in the "demos" subdirectory. For a presentation highlighting the features of this package, compile and run @@ -75,7 +81,7 @@ the program in the "demos/presentation" subdirectory. ## Documentation -Package documentation is available via [godoc](https://docs.rocketnine.space/gitlab.com/tslocum/cview). +Package documentation is available via [godoc](https://docs.rocketnine.space/code.rocketnine.space/tslocum/cview). An [introduction tutorial](https://rocketnine.space/post/tview-and-you/) is also available. @@ -86,5 +92,5 @@ This package is based on [github.com/gdamore/tcell](https://github.com/gdamore/t ## Support -[CONTRIBUTING.md](https://gitlab.com/tslocum/cview/blob/master/CONTRIBUTING.md) describes how to share +[CONTRIBUTING.md](https://code.rocketnine.space/tslocum/cview/src/branch/master/CONTRIBUTING.md) describes how to share issues, suggestions and patches (pull requests). diff --git a/demos/box/main.go b/demos/box/main.go index ce5174f..7d9228b 100644 --- a/demos/box/main.go +++ b/demos/box/main.go @@ -2,8 +2,8 @@ package main import ( + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/button/main.go b/demos/button/main.go index 903119c..0ad962d 100644 --- a/demos/button/main.go +++ b/demos/button/main.go @@ -1,7 +1,7 @@ // Demo code for the Button primitive. package main -import "gitlab.com/tslocum/cview" +import "code.rocketnine.space/tslocum/cview" func main() { app := cview.NewApplication() diff --git a/demos/checkbox/main.go b/demos/checkbox/main.go index 93b3ac9..e26c216 100644 --- a/demos/checkbox/main.go +++ b/demos/checkbox/main.go @@ -2,7 +2,7 @@ package main import ( - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) func main() { diff --git a/demos/dropdown/main.go b/demos/dropdown/main.go index f500e59..514afc6 100644 --- a/demos/dropdown/main.go +++ b/demos/dropdown/main.go @@ -1,7 +1,7 @@ // Demo code for the DropDown primitive. package main -import "gitlab.com/tslocum/cview" +import "code.rocketnine.space/tslocum/cview" func main() { app := cview.NewApplication() diff --git a/demos/flex/main.go b/demos/flex/main.go index 55ca07d..b78b2e0 100644 --- a/demos/flex/main.go +++ b/demos/flex/main.go @@ -2,7 +2,7 @@ package main import ( - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) func demoBox(title string) *cview.Box { diff --git a/demos/focusmanager/main.go b/demos/focusmanager/main.go index 4bf1533..0b2c3e1 100644 --- a/demos/focusmanager/main.go +++ b/demos/focusmanager/main.go @@ -4,9 +4,9 @@ package main import ( "log" - "github.com/gdamore/tcell/v2" "code.rocketnine.space/tslocum/cbind" - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" + "github.com/gdamore/tcell/v2" ) func wrap(f func()) func(ev *tcell.EventKey) *tcell.EventKey { diff --git a/demos/form/main.go b/demos/form/main.go index 355c579..11073a5 100644 --- a/demos/form/main.go +++ b/demos/form/main.go @@ -2,7 +2,7 @@ package main import ( - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) func main() { diff --git a/demos/frame/main.go b/demos/frame/main.go index b1f7c47..e3a1142 100644 --- a/demos/frame/main.go +++ b/demos/frame/main.go @@ -2,8 +2,8 @@ package main import ( + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/grid/main.go b/demos/grid/main.go index 9557d67..f0e8ae9 100644 --- a/demos/grid/main.go +++ b/demos/grid/main.go @@ -2,7 +2,7 @@ package main import ( - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) func main() { diff --git a/demos/inputfield/autocomplete/main.go b/demos/inputfield/autocomplete/main.go index 2f75db7..7485b71 100644 --- a/demos/inputfield/autocomplete/main.go +++ b/demos/inputfield/autocomplete/main.go @@ -3,8 +3,8 @@ package main import ( "strings" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) // 1,000 most common English words. diff --git a/demos/inputfield/autocompleteasync/main.go b/demos/inputfield/autocompleteasync/main.go index 59cc8d0..d9ed093 100644 --- a/demos/inputfield/autocompleteasync/main.go +++ b/demos/inputfield/autocompleteasync/main.go @@ -7,8 +7,8 @@ import ( "strings" "sync" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) type company struct { diff --git a/demos/inputfield/simple/main.go b/demos/inputfield/simple/main.go index 3ff1421..31bde30 100644 --- a/demos/inputfield/simple/main.go +++ b/demos/inputfield/simple/main.go @@ -2,8 +2,8 @@ package main import ( + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) func main() { diff --git a/demos/list/main.go b/demos/list/main.go index 3a18e0f..056de23 100644 --- a/demos/list/main.go +++ b/demos/list/main.go @@ -4,7 +4,7 @@ package main import ( "fmt" - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) func main() { diff --git a/demos/modal/main.go b/demos/modal/main.go index 4b7d5c0..93df908 100644 --- a/demos/modal/main.go +++ b/demos/modal/main.go @@ -2,7 +2,7 @@ package main import ( - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) func main() { diff --git a/demos/panels/main.go b/demos/panels/main.go index dee77bb..8fc09bd 100644 --- a/demos/panels/main.go +++ b/demos/panels/main.go @@ -4,7 +4,7 @@ package main import ( "fmt" - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) const panelCount = 5 diff --git a/demos/presentation/center.go b/demos/presentation/center.go index df99037..4ac7a7a 100644 --- a/demos/presentation/center.go +++ b/demos/presentation/center.go @@ -1,6 +1,6 @@ package main -import "gitlab.com/tslocum/cview" +import "code.rocketnine.space/tslocum/cview" // Center returns a new primitive which shows the provided primitive in its // center, given the provided primitive's size. diff --git a/demos/presentation/code.go b/demos/presentation/code.go index e9d4ea4..62467f6 100644 --- a/demos/presentation/code.go +++ b/demos/presentation/code.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) // The width of the code window. diff --git a/demos/presentation/colors.go b/demos/presentation/colors.go index 850321d..7eea4c9 100644 --- a/demos/presentation/colors.go +++ b/demos/presentation/colors.go @@ -1,8 +1,8 @@ package main import ( + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) const colorsText = `You can use color tags almost everywhere to partially change the color of a string. diff --git a/demos/presentation/cover.go b/demos/presentation/cover.go index ecb39dc..08fb82d 100644 --- a/demos/presentation/cover.go +++ b/demos/presentation/cover.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) const logo = ` diff --git a/demos/presentation/end.go b/demos/presentation/end.go index b5c537b..63f6b17 100644 --- a/demos/presentation/end.go +++ b/demos/presentation/end.go @@ -3,8 +3,8 @@ package main import ( "fmt" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) // End shows the final slide. @@ -13,7 +13,7 @@ func End(nextSlide func()) (title string, content cview.Primitive) { textView.SetDoneFunc(func(key tcell.Key) { nextSlide() }) - url := "https://gitlab.com/tslocum/cview" + url := "https://code.rocketnine.space/tslocum/cview" fmt.Fprint(textView, url) return "End", Center(len(url), 1, textView) } diff --git a/demos/presentation/flex.go b/demos/presentation/flex.go index e63587c..7b2f6cd 100644 --- a/demos/presentation/flex.go +++ b/demos/presentation/flex.go @@ -1,8 +1,8 @@ package main import ( + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) func demoBox(title string) *cview.Box { diff --git a/demos/presentation/form.go b/demos/presentation/form.go index e7bceaf..02a438e 100644 --- a/demos/presentation/form.go +++ b/demos/presentation/form.go @@ -1,13 +1,13 @@ package main import ( - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) const form = `[green]package[white] main [green]import[white] ( - [red]"gitlab.com/tslocum/cview"[white] + [red]"code.rocketnine.space/tslocum/cview"[white] ) [green]func[white] [yellow]main[white]() { diff --git a/demos/presentation/grid.go b/demos/presentation/grid.go index e7f5438..440e3df 100644 --- a/demos/presentation/grid.go +++ b/demos/presentation/grid.go @@ -1,8 +1,8 @@ package main import ( + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) // Grid demonstrates the grid layout. diff --git a/demos/presentation/inputfield.go b/demos/presentation/inputfield.go index 2c91a8e..a7129c4 100644 --- a/demos/presentation/inputfield.go +++ b/demos/presentation/inputfield.go @@ -1,8 +1,8 @@ package main import ( + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) const inputField = `[green]package[white] main @@ -11,7 +11,7 @@ const inputField = `[green]package[white] main [red]"strconv"[white] [red]"github.com/gdamore/tcell/v2"[white] - [red]"gitlab.com/tslocum/cview"[white] + [red]"code.rocketnine.space/tslocum/cview"[white] ) [green]func[white] [yellow]main[white]() { diff --git a/demos/presentation/introduction.go b/demos/presentation/introduction.go index 3cf799d..805c363 100644 --- a/demos/presentation/introduction.go +++ b/demos/presentation/introduction.go @@ -1,6 +1,6 @@ package main -import "gitlab.com/tslocum/cview" +import "code.rocketnine.space/tslocum/cview" // Introduction returns a cview.List with the highlights of the cview package. func Introduction(nextSlide func()) (title string, content cview.Primitive) { diff --git a/demos/presentation/main.go b/demos/presentation/main.go index 5ff7398..cabd99a 100644 --- a/demos/presentation/main.go +++ b/demos/presentation/main.go @@ -20,8 +20,8 @@ import ( _ "net/http/pprof" "strconv" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) // Slide is a function which returns the slide's main primitive and its title. diff --git a/demos/presentation/slider.go b/demos/presentation/slider.go index 1dd888a..035722c 100644 --- a/demos/presentation/slider.go +++ b/demos/presentation/slider.go @@ -3,8 +3,8 @@ package main import ( "fmt" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) const sliderCode = `[green]package[white] main @@ -13,7 +13,7 @@ const sliderCode = `[green]package[white] main [red]"fmt"[white] [red]"github.com/gdamore/tcell/v2"[white] - [red]"gitlab.com/tslocum/cview"[white] + [red]"code.rocketnine.space/tslocum/cview"[white] ) [green]func[white] [yellow]main[white]() { diff --git a/demos/presentation/table.go b/demos/presentation/table.go index 0a84721..67d1de9 100644 --- a/demos/presentation/table.go +++ b/demos/presentation/table.go @@ -4,8 +4,8 @@ import ( "fmt" "strings" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) const tableData = `OrderDate|Region|Rep|Item|Units|UnitCost|Total diff --git a/demos/presentation/textview.go b/demos/presentation/textview.go index b93e9aa..cbcf2ba 100644 --- a/demos/presentation/textview.go +++ b/demos/presentation/textview.go @@ -5,8 +5,8 @@ import ( "strconv" "time" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) const textView1 = `[green]func[white] [yellow]main[white]() { @@ -66,7 +66,7 @@ const textView2 = `[green]package[white] main [red]"strconv"[white] [red]"github.com/gdamore/tcell/v2"[white] - [red]"gitlab.com/tslocum/cview"[white] + [red]"code.rocketnine.space/tslocum/cview"[white] ) [green]func[white] [yellow]main[white]() { diff --git a/demos/presentation/treeview.go b/demos/presentation/treeview.go index b98e200..051a54d 100644 --- a/demos/presentation/treeview.go +++ b/demos/presentation/treeview.go @@ -3,13 +3,13 @@ package main import ( "strings" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) const treeAllCode = `[green]package[white] main -[green]import[white] [red]"gitlab.com/tslocum/cview"[white] +[green]import[white] [red]"code.rocketnine.space/tslocum/cview"[white] [green]func[white] [yellow]main[white]() { $$$ diff --git a/demos/presentation/window.go b/demos/presentation/window.go index 1d3af46..cea9cb2 100644 --- a/demos/presentation/window.go +++ b/demos/presentation/window.go @@ -1,7 +1,7 @@ package main import ( - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) const loremIpsumText = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum." diff --git a/demos/primitive/main.go b/demos/primitive/main.go index be315af..a99ef81 100644 --- a/demos/primitive/main.go +++ b/demos/primitive/main.go @@ -4,8 +4,8 @@ package main import ( "fmt" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) // RadioButtons implements a simple primitive for radio button selections. diff --git a/demos/progressbar/main.go b/demos/progressbar/main.go index 3c13169..e5d117c 100644 --- a/demos/progressbar/main.go +++ b/demos/progressbar/main.go @@ -4,7 +4,7 @@ package main import ( "time" - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) func main() { diff --git a/demos/tabbedpanels/main.go b/demos/tabbedpanels/main.go index 15ba26a..4eb4edd 100644 --- a/demos/tabbedpanels/main.go +++ b/demos/tabbedpanels/main.go @@ -4,7 +4,7 @@ package main import ( "fmt" - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) const panelCount = 5 diff --git a/demos/table/main.go b/demos/table/main.go index 2ab3575..d4ddcbe 100644 --- a/demos/table/main.go +++ b/demos/table/main.go @@ -4,8 +4,8 @@ package main import ( "strings" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) const loremIpsumText = "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet." diff --git a/demos/textview/main.go b/demos/textview/main.go index 3e5e60d..79e0c84 100644 --- a/demos/textview/main.go +++ b/demos/textview/main.go @@ -7,8 +7,8 @@ import ( "strings" "time" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) const corporate = `Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment. diff --git a/demos/treeview/main.go b/demos/treeview/main.go index 628d0a6..27acbc5 100644 --- a/demos/treeview/main.go +++ b/demos/treeview/main.go @@ -5,8 +5,8 @@ import ( "io/ioutil" "path/filepath" + "code.rocketnine.space/tslocum/cview" "github.com/gdamore/tcell/v2" - "gitlab.com/tslocum/cview" ) // Show a navigable tree view of the current directory. diff --git a/demos/unicode/main.go b/demos/unicode/main.go index 91a7b44..be3fe1f 100644 --- a/demos/unicode/main.go +++ b/demos/unicode/main.go @@ -4,7 +4,7 @@ package main import ( "fmt" - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) func main() { diff --git a/doc.go b/doc.go index f0bba45..8f12f00 100644 --- a/doc.go +++ b/doc.go @@ -194,7 +194,7 @@ containing the text "Hello, world!": package main import ( - "gitlab.com/tslocum/cview" + "code.rocketnine.space/tslocum/cview" ) func main() { diff --git a/doc_test.go b/doc_test.go index 8b4f724..1ac2a29 100644 --- a/doc_test.go +++ b/doc_test.go @@ -28,7 +28,7 @@ func ExampleNewApplication() { // Create about layout using Grid. aboutTextView := NewTextView() aboutTextView.SetTextAlign(AlignCenter) - aboutTextView.SetText("cview muti-layout application example\n\nhttps://gitlab.com/tslocum/cview") + aboutTextView.SetText("cview muti-layout application example\n\nhttps://code.rocketnine.space/tslocum/cview") aboutLayout := NewGrid() aboutLayout.AddItem(aboutTextView, 0, 0, 1, 1, 0, 0, false) diff --git a/go.mod b/go.mod index 112d39e..079c7e6 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module gitlab.com/tslocum/cview +module code.rocketnine.space/tslocum/cview go 1.12 diff --git a/keys.go b/keys.go index ff9a6cb..28ad2e0 100644 --- a/keys.go +++ b/keys.go @@ -1,8 +1,8 @@ package cview import ( - "github.com/gdamore/tcell/v2" "code.rocketnine.space/tslocum/cbind" + "github.com/gdamore/tcell/v2" ) // Key defines the keyboard shortcuts of an application.