summary refs log tree commit diff stats
Commit message (Collapse)AuthorAgeFilesLines
* Move msgstore map to dirstoreJeffas2019-07-263-27/+48
| | | | | | This map represents a mapping from directory names to their associated messagestores anyway so they should be under dirstore. This simply moves them there and adds some methods required to interact with them.
* Add new-email triggerJeffas2019-07-2611-35/+175
| | | | | | | | | | | | | | | | | 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.
* Show the directory being selected in grayJeffas2019-07-251-0/+3
|
* Fix :close on terminal panicJeffas2019-07-252-1/+5
| | | | | | | | Executing :close on a terminal would panic due to it already having been removed. This is also related to the fact that removing a tab doesn't check for whether it actually found a tab to remove or not.
* Add space which was missingJeffas2019-07-251-1/+1
|
* Fix grid creating too large subcontextsJeffas2019-07-251-0/+9
| | | | | | | | The grid was not checking there was enough space for the cells so would just attempt to create subcontexts that don't actually fit. This attempts to use the remaining space and then if there is no space then it just skips drawing this cell.
* Fix panic when tabs.popHistory is nonexistentDrew DeVault2019-07-251-1/+1
|
* Make :next-result :prev-result relative to cursorKevin Kuehler2019-07-251-0/+9
| | | | Signed-off-by: Kevin Kuehler <keur@ocf.berkeley.edu>
* Makefile: Use GO variable to specify compiler pathKacper Kołodziej2019-07-231-1/+2
| | | | | | | | It is useful when somebody has different Go versions across one system and first go in $PATH points to version older than 1.12 (common in stable distributions). Signed-off-by: Kacper Kołodziej <kacper@kolodziej.it>
* 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.
* Add change tab commandJeffas2019-07-233-5/+90
| | | | | | | | | | This command allows the user to change tab by giving the tab name. This can be tab completed too. The previous tab is stored in the tabs module so that when a new tab is created it is still possible to go to the previous one. Normal invocation is :ct folder Previous tab is :ct -
* Fix error handling in maildir workerNicolai Dagestad2019-07-191-14/+7
|
* Use latest go-maildirBen Burwell2019-07-192-1/+3
|
* Fix alternatives configDrew DeVault2019-07-191-2/+5
|
* Add [a]ttach to the review message promptsDrew DeVault2019-07-191-1/+1
|
* Register worker in init.Reto Brunner2019-07-195-20/+53
| | | | | This allows backends which can't always be compiled due to missing dependencies (say libnotmuch) to be compiled conditionally with buildflags.
* Forward mailto links to server via ./aerc <mailto>Drew DeVault2019-07-192-3/+25
|
* Add Unix socket for communicating with aercDrew DeVault2019-07-194-0/+139
|
* aerc(1): fix scdoc syntax errorDrew DeVault2019-07-191-1/+1
|
* aerc(1): document missing commandsDrew DeVault2019-07-191-6/+48
|
* aerc(1): Fix fallback ex key documentationDrew DeVault2019-07-191-1/+1
|
* Implement :filter, :clearKevin Kuehler2019-07-198-41/+134
| | | | Signed-off-by: Kevin Kuehler <keur@ocf.berkeley.edu>
* Change default attach keybindingDrew DeVault2019-07-191-1/+1
|
* Add :attach command for composeGalen Abell2019-07-193-17/+190
| | | | | | Allow users to add attachments to emails in the Compose view. Syntax is :attach <path>, where path is a valid file. Attachments will show up in the pre-send review screen.
* Add :cp alias for :copyDrew DeVault2019-07-172-3/+3
|
* Add option to always show mimetype in viewerJeffas2019-07-174-8/+21
| | | | | | | | | | A user may want to be able to see what mimetype they are viewing, so that they can determine what program it may be opened in or for some other reason. The config option is under the [viewer] section and is called 'always-show-mime'. It defaults to false to preserve the current behaviour.
* Remove passing of showHeaders explicitlyJeffas2019-07-171-12/+12
| | | | | Where it is needed the configs are already available so just extract the value from these.
* Ensure new partswitcher doesn't start on multipartJeffas2019-07-171-0/+2
|
* maildir: Watch for new messagesBen Burwell2019-07-174-14/+76
| | | | | | | | When a directory is opened, start watching its "new" subdirectory for incoming messages using the fsnotify library. When creation events are detected, run the Unseen routine to move the message from new to cur and add new UIDs to the store, updating the UI's list of directory contents as we go.
* Display user specified headers in viewer if presentDaniel Bridges2019-07-175-41/+116
|
* Show currently pressed keys in statuslineJeffas2019-07-172-1/+17
| | | | | | This patch adds the currently pressed keys to the statusline. This is useful when keybindings are multiple keys long and you might forget which keys are already pressed.
* Add an option to toggle between read and unreadNicolai Dagestad2019-07-172-3/+33
|
* Revert "Ensure new partswitcher doesn't start on multipart"Drew DeVault2019-07-171-1/+0
| | | | This reverts commit 41390bc3e1e557eff15e8159767f206b3b74ea30.
* Add show-headers to aerc-configJeffas2019-07-171-0/+6
|
* Fix grid widths when using weighted widthsJeffas2019-07-171-3/+14
| | | | | | | | | | If the column weights do not collectively divide the extent of the grid layout then some width was not used and so would not be redrawn, resulting in previous drawings showing through. This fixes this by checking if there is any remainingExact width and if there is it is assigned to the weighted columns by their proportion from left to right.
* Add MouseEnabled config settingJeffas2019-07-174-1/+15
| | | | | This patch adds the ability to control whether aerc captures mouseevents or not. By default it will be set to not capture events.
* When reviewing an email don't pass characters onJeffas2019-07-171-1/+4
| | | | | This stops characters being passed to the focused box when reviewing an email. To edit headers the user should go back to the edit page.
* Fix text input cursor position with non-ASCII textTuomas Siipola2019-07-171-3/+3
| | | | Fixes #171
* Show usage on getopt.Getopts errorAsger Hautop Drewsen2019-07-171-2/+7
|
* Ensure new partswitcher doesn't start on multipartJeffas2019-07-171-0/+1
|
* Update status message to include destinationJeffas2019-07-171-1/+1
|
* lowercase all key bindingsReto Brunner2019-07-171-32/+32
|
* Fix header decodingBen Burwell2019-07-171-13/+16
| | | | | | | | | | | | | Email headers can be encoded with different charsets, which is signalled using a special character sequence. The go-message package provides two different methods for accessing header values, Get(key) (actually inherited from the embedded textproto.Header) which returns the raw header value and Text(key), which returns the header's value decoded as UTF-8. Before, in the maildir backend, we were using the Get method which sometimes resulted in encoded headers being displayed in the UI. This patch replaces the incorrect usage of Get() with Text().
* commands: Don't crash when store is nilKevin Kuehler2019-07-158-4/+28
| | | | | | | On a slow network connection, running these commands without this guard will cause aerc to panic. Signed-off-by: Kevin Kuehler <keur@ocf.berkeley.edu>
* 71: Allow user to change config options at runtimePedro L. Ramos2019-07-153-51/+129
| | | | | | | | | 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.
* Update README.mdDrew DeVault2019-07-141-0/+2
|
* Escape plus symbol in hldiff filter.EdOverflow2019-07-131-1/+1
| | | | | | I was getting errors when using the hldiff filter with aerc because the plus symbol on line 28 wasn't escaped. This commit escapes the plus symbol in the regex on line 28.
* Fix missing format fields in maildir/container.goDrew DeVault2019-07-131-2/+2
|
* Don't initialize an invalid pty sizeDrew DeVault2019-07-131-0/+3
|
* Fix read reply flag formattingJeffas2019-07-121-5/+19
| | | | | The readFlag was displaying wrong and not using combinations of the flags to decide the string.