about summary refs log tree commit diff stats
path: root/aerc.go
Commit message (Collapse)AuthorAgeFilesLines
* Open mailto links in a new aerc instance if needed.Reto Brunner2019-09-291-2/+17
| | | | | | | | | | | | | Aerc tries to open mailto:// links via the socket of the already running aerc instance. If no socket exists this silently errored out. This commit starts up a new aerc instance if it can't connect to the socket (which I think is the most common error) and if not sets up a new aerc instance and retries to open the compositor. This fixes https://todo.sr.ht/~sircmpwn/aerc2/295 by implementing the desired behaviour.
* Add initial command to end of completionsJeffas2019-09-111-0/+1
| | | | | This means that if the user cycles through all completions then they will see the initial string they entered.
* aerc.go: simplify completionsDrew DeVault2019-09-041-9/+3
|
* aerc.go: remove unused variableDrew DeVault2019-09-041-1/+0
|
* Close backends prior to shutdownReto Brunner2019-08-081-0/+1
| | | | | | | We need some way to signal the backends that we are about to shutdown, allowing them to clean up (for example in notmuch committing the db changes). This commit implements a hook which gets called upon shutdown, providing backends implement the io.Closer interface.
* Remove aerc specific code from the uiNicolai Dagestad2019-08-031-1/+5
| | | | | Separatiing the ui code from aerc makes it usable as a library in other projects.
* Print errors from config load issues.Reto Brunner2019-07-291-1/+1
| | | | | | Currently we /dev/null stdout, if it is a tty. The checkConfigPerms function, as well as the error print were incorrectly writing to stdout and therefore weren't visible to most users.
* Add command history and cyclingGalen Abell2019-07-261-1/+1
| | | | | | Aerc will keep track of the previous 1000 commands, which the user can cycle through using the arrow keys while in the ex-line. Pressing up will move backwards in history while pressing down will move forward.
* Add new-email triggerJeffas2019-07-261-6/+6
| | | | | | | | | | | | | | | | | This patch sets up the trigger config section of aerc.conf. Each trigger has its own function which is called from the place where it is triggered. Currently only the new-email trigger is implemented. The triggers make use of format strings. For instance, in the new-email trigger this allows the user to select the trigger command and also the information extracted from the command and placed into their command. To actually execute the trigger commands the keypresses are simulated. Further triggers can be implemented in the future. Formatting of the command is moved to a new package.
* Discard stdout if not redirected to fileDaniel Bridges2019-07-231-0/+1
| | | | | Commit 97bee661 Printf statement at widgets/msgviewer.go#188 introduced bad formatting in the display if stdout was not being redirected.
* Forward mailto links to server via ./aerc <mailto>Drew DeVault2019-07-191-3/+8
|
* Add Unix socket for communicating with aercDrew DeVault2019-07-191-0/+10
|
* 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
7 14:18:57 +0200 Apply coding style' href='/danisanti/profani-tty/commit/src/event/client_events.c?id=a2726b6a7d16f5f846a882fbbe9127e4604bb8bb'>a2726b6a ^
acd2d230 ^
9b177a9e ^
a2726b6a ^

acd2d230 ^
a2726b6a ^
acd2d230 ^

524c7a86 ^
acd2d230 ^

2b7894cc ^
acd2d230 ^

d853284f ^


a2726b6a ^
32da6548 ^
665c3441 ^
a978bb12 ^
3aad0523 ^
a978bb12 ^
a2726b6a ^
83385cdb ^


665c3441 ^
a2726b6a ^
11181100 ^



0fb27dc4 ^
3e325a61 ^
a2726b6a ^
025c2fb1 ^





3e325a61 ^
2c94ee5a ^


a2726b6a ^
025c2fb1 ^





2c94ee5a ^
3e325a61 ^
3e325a61 ^
a2726b6a ^
025c2fb1 ^





c81931c3 ^
3e325a61 ^
c81931c3 ^

a2726b6a ^
c81931c3 ^
3e325a61 ^
a2726b6a ^
8c8c18c6 ^
a0a4fd04 ^
a4b53550 ^
3e325a61 ^






53f2a4a3 ^


a2726b6a ^
11181100 ^




a2726b6a ^
53f2a4a3 ^
a2726b6a ^
83385cdb ^


41fe8c22 ^
a2726b6a ^
4ec005e4 ^



a9d55dec ^

a2726b6a ^
4e1ffa6b ^
a0a4fd04 ^
4ec005e4 ^
4e1ffa6b ^
a9d55dec ^
a2726b6a ^
4e1ffa6b ^
a0a4fd04 ^
a4b53550 ^
e69f9475 ^
a9d55dec ^







a2726b6a ^
4e1ffa6b ^
9224331d ^
a4b53550 ^
e69f9475 ^
41fe8c22 ^


a9d55dec ^

53f2a4a3 ^


a2726b6a ^
4ec005e4 ^




a2726b6a ^
53f2a4a3 ^
150015fa ^

77e819e8 ^

150015fa ^
a2726b6a ^

41fe8c22 ^
a2726b6a ^
8c8c18c6 ^
a0a4fd04 ^
50271493 ^
a0a4fd04 ^
41fe8c22 ^

8c8c18c6 ^
41fe8c22 ^
8c8c18c6 ^
150015fa ^
80665ea0 ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264