~sircmpwn/aerc

ref: dadc9bf2b3e992851d2539d6f459a4f29001e686 aerc/aerc.go -rw-r--r-- 4.2 KiB
Sort command completions

Previously the completions weren't sorted which led to a difficult to
navigate list, especially for the command names as it would randomly
jump through the alphabet.
templates: add version func

Fixes #316
Initial support for PGP decryption & signatures
Don't use current input as a possible completion

Now that completions are being shown in the popover, it doesn't make
sense to show the unfinished command as a potential completion.
Open mailto links in a new aerc instance if needed.

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 completions

This means that if the user cycles through all completions then they
will see the initial string they entered.
aerc.go: simplify completions
aerc.go: remove unused variable
Close backends prior to shutdown

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 ui

Separatiing the ui code from aerc makes it usable as a library in
other projects.
Print errors from config load issues.

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 cycling

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 trigger

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 file

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>
Add Unix socket for communicating with aerc
Show usage on getopt.Getopts error
71: Allow user to change config options at runtime

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.
2a096170 — Gregory Mullen 2 years ago
Implement basic tab completion support

Tab completion currently only works on commands. Contextual completion
will be added in the future.
Add aerc -v to print the installed version
Next