aboutsummaryrefslogtreecommitdiff
path: root/widgets/aerc.go
AgeCommit message (Collapse)Author
2019-07-29Ring bell when new messages arrive0.2.0Ben Burwell
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.
2019-07-27Add index option to change-tabJeffas
This allows selection of a tab using its index. It attempts to parse the given argument as a number, if it fails then it uses it as a name. Also supports relative indexes using prefixed + or -.
2019-07-26Add command history and cyclingGalen Abell
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.
2019-07-26Support configurable header layout in compose widgetDaniel Bridges
2019-07-26Add new-email triggerJeffas
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.
2019-07-23Add change tab commandJeffas
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 -
2019-07-19Add Unix socket for communicating with aercDrew DeVault
2019-07-17Show currently pressed keys in statuslineJeffas
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.
2019-07-11Add clickable tabsJeffas
This introduces a new interface `Clickable`. I'd imagine this would be implemented for most widgets eventually and would allow for programs run in the terminal to also have their mouse events forwarded to them. For the tabs it was relatively simple to check that the position of the click is within the boxes for the tabs. For other components I'd imagine that some state representing their currently drawn bounding box would be useful.
2019-06-29Implement basic tab completion supportGregory Mullen
Tab completion currently only works on commands. Contextual completion will be added in the future.
2019-06-21Fix Cc & Bcc handling in repliesDrew DeVault
2019-06-11lib/ui/tab: Add Replace methodKevin Kuehler
Also expose a light wrapper method in aerc.go for tab replacement Signed-off-by: Kevin Kuehler <kkuehler@brave.com>
2019-05-27Add :save and :pipe commands to viewerGalen Abell
* :save takes a path and saves the current message part to that location * :pipe is the same as pipe on the account page, but uses the current message part rather than the whole email (ie :pipe gzip -d) * Refactored account:pipe and extracted common pipe code to commands.util.QuickTerm * Added helper command aerc.PushError
2019-05-22Show account wizard if no accounts configuredDrew DeVault
2019-05-22Fix always showing last account tabDrew DeVault
2019-05-21New account wizard, part oneDrew DeVault
2019-05-19Update internal state and draw from the same goroutineSimon Ser
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.
2019-05-17s/aerc2/aerc/gDrew DeVault
2019-05-14Add distinct keybindings for each compose viewDrew DeVault
2019-05-12Add initial compose widgetDrew DeVault
2019-03-31Make the message viewer real, part oneDrew DeVault
2019-03-30Add message view commands, :closeDrew DeVault
2019-03-30Add basic message viewer mockupDrew DeVault
2019-03-30Correct color of error messagesDrew DeVault
2019-03-30Use tcell.Style.Reverse instead of black on whiteDrew DeVault
2019-03-21Expire status errors on inputDrew DeVault
2019-03-21Use : for keybindings even when ex is overriddenDrew DeVault
2019-03-21Rig up terminal keybinding groupDrew DeVault
2019-03-21Use user's configured ex keyDrew DeVault
2019-03-21Add context-specific keybindingsDrew DeVault
2019-03-17Wrap Terminal in TermHostDrew DeVault
2019-03-17Add :term-closeDrew DeVault
2019-03-17Handle terminal title, login shellDrew DeVault
2019-03-17Implement :next-tab, :prev-tabDrew DeVault
2019-03-17Move exline handling up to aerc, add :termDrew DeVault
2019-03-17commands: handle case where no account selectedDrew DeVault
2019-03-17Add basic terminal widgetDrew DeVault
2019-03-15Implement sidebar-width config optionDrew DeVault
2019-03-15Rig up key bindingsDrew DeVault
2019-03-10Start building out command subsystemDrew DeVault
2019-02-10Fix buildElias Naur
2019-01-20Implement Container interface in widgets/Drew DeVault
2019-01-14Send commands up to the top-level aerc widgetDrew DeVault
2019-01-13Move ex line into accountDrew DeVault
2019-01-13Move status line into account, update behaviorDrew DeVault
2019-01-13Initialize worker in account widgetDrew DeVault
2019-01-13Add basic account widget, populate real acct viewsDrew DeVault
2018-06-12Apply gofmtDrew DeVault
2018-06-11Apply gofmtDrew DeVault
2018-06-11Move sidebar into account tabsDrew DeVault
This is accomplished through a bit of a hack, the statusbar is able to be a child of multiple dudes