aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/exline.go
Commit message (Collapse)AuthorAgeFilesLines
* Implement basic tab completion supportGregory Mullen2019-06-291-7/+17
| | | | | Tab completion currently only works on commands. Contextual completion will be added in the future.
* s/aerc2/aerc/gDrew DeVault2019-05-171-1/+1
|
* Add initial compose widgetDrew DeVault2019-05-121-1/+1
|
* Refactor ctx stashing out of exlineDrew DeVault2019-05-111-8/+2
|
* Split ex line text handling into dedicated widgetDrew DeVault2019-05-111-98/+18
|
* lib/ui: introduce InvalidatableSimon Ser2019-04-271-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Many Drawable implementations have their own Invalidate and OnInvalidate functions, with an unexported onInvalidate field. However OnInvalidate and Invalidate are usually not called in the same goroutine. This results in a race on this field, e.g.: Read at 0x00c000094748 by goroutine 7: git.sr.ht/~sircmpwn/aerc2/widgets.NewDirectoryList.func1() /home/simon/src/aerc2/widgets/dirlist.go:85 +0x56 git.sr.ht/~sircmpwn/aerc2/widgets.(*Spinner).Start.func1() /home/simon/src/aerc2/widgets/spinner.go:93 +0x1bb Previous write at 0x00c000094748 by main goroutine: [failed to restore the stack] Goroutine 7 (running) created at: git.sr.ht/~sircmpwn/aerc2/widgets.(*Spinner).Start() /home/simon/src/aerc2/widgets/spinner.go:46 +0x8f git.sr.ht/~sircmpwn/aerc2/widgets.NewDirectoryList() /home/simon/src/aerc2/widgets/dirlist.go:37 +0x286 git.sr.ht/~sircmpwn/aerc2/widgets.NewAccountView() /home/simon/src/aerc2/widgets/account.go:50 +0x5ca git.sr.ht/~sircmpwn/aerc2/widgets.NewAerc() /home/simon/src/aerc2/widgets/aerc.go:60 +0x800 main.main() /home/simon/src/aerc2/aerc.go:65 +0x33e To fix this, introduce a new type, Invalidatable, which protects the field. Unfortunately the Drawable must be passed to the callback function in Invalidate, so we still need to re-implement this in each Invalidatable user.
* Add basic terminal widgetDrew DeVault2019-03-171-0/+9
|
* Rig up key bindingsDrew DeVault2019-03-151-2/+6
|
* Implement key bindings subsystemDrew DeVault2019-03-151-4/+2
| | | | Which is not yet rigged up
* Add cursor handling in ex lineDrew DeVault2019-01-141-3/+9
|
* Apply gofmtDrew DeVault2018-06-111-3/+3
|
* switch to tcell from termboxMarkus Ongyerth2018-06-011-28/+21
| | | | | | | | | | | | | This is a simple mostly straight forward switch to tcell in favor of termbox. It uses the tcell native api (not the compat layer) but does not make use of most features. Further changes should include moving to tcell's views.TextArea and the general built in widget behaviour instead of the current ad hoc implementation. Regression: Cursor isn't shown in ex-line
* Add statusline widgetDrew DeVault2018-02-271-5/+14
|
* Make ex line fully unicode awareDrew DeVault2018-02-271-20/+19
|
* Split UI library and widgetsDrew DeVault2018-02-261-0/+129