about summary refs log tree commit diff stats
path: root/aerc.go
Commit message (Collapse)AuthorAgeFilesLines
* Show usage on getopt.Getopts errorAsger Hautop Drewsen2019-07-171-2/+7
|
* 71: Allow user to change config options at runtimePedro L. Ramos2019-07-151-1/+1
| | | | | | | | | There is a LoadConf and a LoadConfFromFile. LoadConfFromFile reads the iniFile into memory and and calls LoadConf, which executes the old parsing commands from LoadConf (old func). The remaining of the LoadConfFromFile is the same as the old OldConf.
* Implement basic tab completion supportGregory Mullen2019-06-291-20/+40
| | | | | Tab completion currently only works on commands. Contextual completion will be added in the future.
* Add aerc -v to print the installed versionDrew DeVault2019-06-181-0/+18
|
* widget: Add ProvidesMessage interfaceKevin Kuehler2019-06-021-0/+3
| | | | | | | | | | | Consists of 3 functions * Store: Access to MessageStore type * SelectedAccount: Access to Account widget that the target widget belongs to * SelectedMessage: Current message (selected in msglist or the one we are viewing) Signed-off-by: Kevin Kuehler <keur@ocf.berkeley.edu>
* Install default configs to XDG config if not foundDrew DeVault2019-05-221-1/+6
|
* Update internal state and draw from the same goroutineSimon Ser2019-05-191-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | This commit introduces a new Aerc.Tick function that should be called to refresh the internal state. This in turn makes each AccountView process worker events. The UI goroutine repeatedly refreshes the internal state before drawing a new frame. The reason for this is that many worker messages may need to be processed for a single frame, and drawing the UI is far slower than refreshing the internal state. This has been confirmed in my testing (calling Aerc.Tick only once per frame results in a slower display). Many synchronization code has been removed. We can now write widgets without having to care so much about races. The remaining sync users are: - widgets/spinner: the spinner value is updated from inside an internal goroutine - lib/ui/invalidatable: Invalidate may be called from any goroutine - lib/ui/grid: same - lib/ui/ui: an internal goroutine needs read access to UI.exit - worker/types/worker: Worker.callbacks is used for both worker and UI callbacks The exact goroutine requirements for Drawable have been documented.
* s/aerc2/aerc/gDrew DeVault2019-05-171-8/+8
|
* Abort if accounts.conf is world readableReto Brunner2019-05-161-3/+5
| | | | Fixes #32
* Revert "Abort if accounts.conf is world readable"Drew DeVault2019-05-161-5/+3
| | | | This reverts commit a755608ef9d5893b68dc4c774bbda06503481552.
* Abort if accounts.conf is world readableReto Brunner2019-05-161-3/+5
| | | | Fixes #32
* Implement :{next,prev}-field in compose viewDrew DeVault2019-05-121-1/+2
|
* Add initial compose widgetDrew DeVault2019-05-121-0/+5
|
* lib/ui: fix UI.Exit race conditionSimon Ser2019-05-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | UI.Exit can be accessed from goroutines drawing, goroutines executing commands and goroutines waiting for events. Write at 0x00c0002b2040 by main goroutine: main.main.func1() /home/simon/src/aerc2/aerc.go:76 +0x33d git.sr.ht/~sircmpwn/aerc2/widgets.(*Aerc).BeginExCommand.func1() /home/simon/src/aerc2/widgets/aerc.go:245 +0x89 git.sr.ht/~sircmpwn/aerc2/widgets.(*ExLine).Event() /home/simon/src/aerc2/widgets/exline.go:131 +0x442 git.sr.ht/~sircmpwn/aerc2/widgets.(*Aerc).Event() /home/simon/src/aerc2/widgets/aerc.go:116 +0x83c git.sr.ht/~sircmpwn/aerc2/widgets.(*Aerc).simulate() /home/simon/src/aerc2/widgets/aerc.go:109 +0x12a git.sr.ht/~sircmpwn/aerc2/widgets.(*Aerc).Event() /home/simon/src/aerc2/widgets/aerc.go:142 +0x722 git.sr.ht/~sircmpwn/aerc2/lib/ui.(*UI).Tick() /home/simon/src/aerc2/lib/ui/ui.go:75 +0x33f main.main() /home/simon/src/aerc2/aerc.go:94 +0x497 Previous read at 0x00c0002b2040 by goroutine 19: git.sr.ht/~sircmpwn/aerc2/lib/ui.Initialize.func1() /home/simon/src/aerc2/lib/ui/ui.go:45 +0x97 Goroutine 19 (running) created at: git.sr.ht/~sircmpwn/aerc2/lib/ui.Initialize() /home/simon/src/aerc2/lib/ui/ui.go:44 +0x372 main.main() /home/simon/src/aerc2/aerc.go:87 +0x3a9
* Add message view commands, :closeDrew DeVault2019-03-301-0/+6
|
* Add basic message viewer mockupDrew DeVault2019-03-301-1/+1
|
* Add terminal command contextDrew DeVault2019-03-211-1/+7
|
* Add context-specific commandsDrew DeVault2019-03-211-5/+31
|
* Add :quit commandDrew DeVault2019-03-151-3/+11
|
* Start building out command subsystemDrew DeVault2019-03-101-1/+7
|
* Add basic account widget, populate real acct viewsDrew DeVault2019-01-131-3/+5
|
* Switch to vgoDrew DeVault2018-03-021-0/+45