aboutsummaryrefslogtreecommitdiffstats
path: root/config/config.go
Commit message (Collapse)AuthorAgeFilesLines
* Add postpone commandJeffas2020-04-241-4/+6
| | | | | | | This command uses the Postpone folder from the account config to save messages to. Messages are saved as though they were sent so have a valid 'to' recipient address and should be able to be read back in for later editing.
* Add pinned tabsJeffas2020-03-091-0/+2
| | | | | | This adds the commands pin-tab and unpin-tab. Once pinned a tab lives on the left of the tabstrip and has a configurable marker, defaulting to ` before its name.
* config: Strongly type context typeReto Brunner2020-01-241-4/+7
| | | | | | | | The go compiler can't help much with untyped int constants. Even though the only valid constants are 0-3 it will happily accept 4 as input. Let's let the go compiler worry about correctness here. This also allows people not very familiar with the code to use it properly via auto completion.
* Contextual UI ConfigurationSrivathsan Murali2020-01-241-10/+100
| | | | | | | | | + Adds parsing of contextual ui sections to aerc config. + Add GetUiConfig method for AercConfig that is used to get the specialized UI config. + Add UiConfig method to AccountView to get specialized UI Config. + Modifies Aerc codebase to use specialized UIConfig instead. + Adds documentation for Contextual UI Configuration
* Fix handling of multiple template-dirsBen Burwell2020-01-241-3/+3
| | | | | | | | Before, while the docs stated that template-dirs was a colon-separated list, a delimiter was not specified in the struct tag, so it was falling back to the default for the ini library (a comma). Also added a note to the docs to clarify that templates are configured in the [templates] section.
* Add address book completion in composerBen Burwell2019-12-211-2/+3
| | | | | Complete email address fields in the message composer with an external address book command, compatible with mutt's query_cmd.
* Show textinput completions in popoversBen Burwell2019-12-211-15/+20
| | | | | | Rather than showing completions inline in the text input, show them in a popover which can be scrolled by repeatedly pressing the tab key. The selected completion can be executed by pressing enter.
* Add custom sorting for foldersMichele Finotto2019-12-091-0/+1
| | | | | | | | | | | | | | A new config options for accounts.conf (folders-sort) was added to allow a user to choose which folders should be shown on top. My use case was to avoid stepping into heavy, but rarely viewed folders when cycling through other often accessed ones. To test add this to your account.conf: folders-sort = INBOX,Sent,Archive INBOX, Sent and Archive should then show at the top of your dirlist, and all other folders should come next in alphabetical order.
* Add some defaults for template optionsDrew DeVault2019-11-101-1/+9
|
* Add Templates with ParsingSrivathsan Murali2019-11-101-9/+35
| | | | | | | | | | | | | | | + Changes NewComposer to return error. + Add lib to handle templates using "text/template". + Add -T option to following commands - compose. - reply - forward + Quoted replies using templates. + Forwards as body using templates + Default templates are installed similar to filters. + Templates Config in aerc.conf. - Required templates are parsed while loading config. + Add aerc-templates.7 manual for using template data.
* Config for deleting message from message viewerSrivathsan Murali2019-09-201-24/+26
| | | | | As suggested in #268, this adds a behaviour setting for deleting message from message viewer.
* Add sorting functionalityJeffas2019-09-201-0/+1
| | | | | | | | There is a command and config option. The criteria are a list of the sort criterion and each can be individually reversed. This only includes support for sorting in the maildir backend currently. The other backends are not supported in this patch.
* Add signaturesJeffas2019-09-121-0/+2
| | | | | | | | | | | | | This adds the ability for per-account signatures in the accounts.conf config file. The signature is added to emails in the editor at the bottom of the email. This includes when forwarding, replying to, and composing emails. There are two config options: signature-file and signature-cmd. The former allows a signature to be read from a file and the latter allows an arbitrary command to be executed to return the signature. The config options have been documented in aerc-config
* Add display of unread messages in dirlistJeffas2019-09-111-3/+4
| | | | | | | Add an onUpdateDirs handler. This is used to invalidate the dirlist and redraw with the correct number of recent/unread/total messages is shown. A config option and formatting options are provided.
* Allow custom spinner via config filePaul Spooren2019-08-301-0/+5
| | | | | | | | | | | Allows to set `ui.spinner=` to a string which is then split by `ui.spinner-delimiter=` (Default: comma) instead of having a hard coded animation. This implementation doesn't use INIs capabilities to split strings as it trims whitespaces breaking the default animation. Signed-off-by: Paul Spooren <mail@aparcar.org>
* Pass os stdin to credential commandJonas Mueller2019-08-121-0/+1
| | | | | This is neccessary for `gpg-agent` to display a prompt and get the key to unlock a given password. See https://todo.sr.ht/~sircmpwn/aerc2/250.
* Ring bell when new messages arrive0.2.0Ben Burwell2019-07-291-0/+2
| | | | | | | | Add a "new-message-bell" option to the UI section of aerc.conf. A new hook into the message store allows the msglist widget to detect new messages being added to the displayed list. When new messages are delivered, and the new-message-bell option is enabled (as it is by default), the terminal will beep.
* Print errors from config load issues.Reto Brunner2019-07-291-3/+3
| | | | | | 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.
* Support configurable header layout in compose widgetDaniel Bridges2019-07-261-1/+15
|
* Add new-email triggerJeffas2019-07-261-0/+11
| | | | | | | | | | | | | | | | | 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.
* Add :cp alias for :copyDrew DeVault2019-07-171-2/+2
|
* Add option to always show mimetype in viewerJeffas2019-07-171-4/+5
| | | | | | | | | | 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.
* Display user specified headers in viewer if presentDaniel Bridges2019-07-171-1/+25
|
* Add MouseEnabled config settingJeffas2019-07-171-0/+2
| | | | | This patch adds the ability to control whether aerc captures mouseevents or not. By default it will be set to not capture events.
* 71: Allow user to change config options at runtimePedro L. Ramos2019-07-151-50/+59
| | | | | | | | | 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.
* Don't bind $noinheritEyal Sawady2019-07-111-0/+1
| | | | | | Fixes #112 Signed-off-by: Eyal Sawady <eyalsawady@gmail.com>
* add DefaultSavePath configReto Brunner2019-06-251-0/+10
|
* Set empty message in dirlist if no folder exist.Reto Brunner2019-06-141-0/+2
|
* Add archive commandRobert Günzler2019-06-091-0/+4
| | | | | | | | | | | | | | | Adds an archive command that moves the current message into the folder specified in the account config entry. Supports three layouts at this point: - flat: puts all messages next to each other - year: creates a folder per year - month: same as above, plus folders per month This also adds a "-p" argument to "cp" and "mv" that works like "--parents" on mkdir(1). We use this to auto-create the directories for the archive layout.
* Message list: implement index-format optionYash Srivastav2019-06-071-2/+2
|
* implements ability to view headers in message viewYash Srivastav2019-06-071-0/+1
|
* config: sort account foldersChris Kinniburgh2019-06-051-1/+4
| | | | directory list depends on these being sorted
* Install default configs to XDG config if not foundDrew DeVault2019-05-221-4/+34
|
* Show account wizard if no accounts configuredDrew DeVault2019-05-221-6/+3
|
* New account wizard, part oneDrew DeVault2019-05-211-0/+9
|
* Use kebab-case for cred-cmdsDrew DeVault2019-05-211-2/+2
|
* Implement loading passwords from external commandsGalen Abell2019-05-181-8/+61
| | | | * Resolves #80
* Implement ui.empty-message config optionDrew DeVault2019-05-171-4/+0
| | | | | Also removes some options that aren't going to be supported any time soon.
* Abort if accounts.conf is world readableReto Brunner2019-05-161-1/+26
| | | | Fixes #32
* Revert "Abort if accounts.conf is world readable"Drew DeVault2019-05-161-25/+1
| | | | This reverts commit a755608ef9d5893b68dc4c774bbda06503481552.
* Revert "s/aerc.conf/address.conf/ in permission check"Drew DeVault2019-05-161-1/+1
| | | | This reverts commit 66ba099ca0bfa83cd050050d92663ec45da20141.
* s/aerc.conf/address.conf/ in permission checkCole Helbling2019-05-161-1/+1
| | | | | Small typo in a recent commit: should abort if accounts.conf is world readable, not aerc.conf.
* Abort if accounts.conf is world readableReto Brunner2019-05-161-1/+25
| | | | Fixes #32
* Copy sent emails to the Sent folderDrew DeVault2019-05-151-0/+3
| | | | Or rather, to a user-specified folder
* Add $EDITOR, internal config for composeDrew DeVault2019-05-141-0/+10
|
* Add distinct keybindings for each compose viewDrew DeVault2019-05-141-10/+17
|
* Populate "From" header from config for new emailsDrew DeVault2019-05-131-0/+3
|
* Add outgoing account configurationDrew DeVault2019-05-121-5/+8
|
* Use shell to execute filters, fix non-determinismDrew DeVault2019-03-311-1/+2
|
* Improve plaintext.pyDrew DeVault2019-03-311-1/+0
|