Commit Graph

138 Commits

Author SHA1 Message Date
Dirk-Jan C. Binnema 117600ef20 mu4e-main: cosmetics / docs 2023-11-10 16:47:23 +02:00
Thierry Volpiatto 67c8ff75a7 Fix missing or incorrect descriptions in file headers
Try to make useful descriptions and use conventional --- to separate filename
from description.
2023-09-20 22:04:48 +03:00
Dirk-Jan C. Binnema d5129052df mu4e: implement mu4e-search-query
Pick a query using completing-read with a new command mu4e-search-query.
Update docs.
2023-08-09 23:24:47 +03:00
Dirk-Jan C. Binnema 31bb84182b mu4e: add prefix arg to mu4e-quit
Remove mu4e-main-quit-or-bury and simply update mu4e-quit
to take a prefix which, if non-nil, make mu4e-quit
bury the buffer rather than quite mu4e.

Also make the mu4e check for an existing mu4e buffer, and if found,
switch to it rather start mu4e.
2023-08-07 23:15:48 +03:00
Dirk-Jan C. Binnema c59d493296 mu4e: fix mu4e-main-quit-or-bury
Typo... fixes #2512.
2023-07-06 11:01:32 +03:00
Dirk-Jan C. Binnema c3a756a207 mu4e: main: add mu4e-main-quit-or-bury
So instead of quitting, you can do C-u q to merely bury the buffer.
2023-07-05 20:39:47 +03:00
Dirk-Jan C. Binnema 881c3cb4c1 mu4e: fix mu4e--main-action alt
As per #2439.
2023-03-30 23:58:45 +03:00
Nicholas Vollmer 45ecfebce5 mu4e--main-action: guard against nil ALT argument
Otherwise, if ALT is not provided the initial binding of bindstr can fail with:
Wrong type argument: characterp, nil
2023-02-23 09:13:38 -05:00
Dirk-Jan C. Binnema 558745bf00 mu4e-main: attempt to handle overridden bindings gracefully
Rebinding existing functions to different keys works fine, *but* it seems
some 3rd party code rebinds existing keys to different functions; that's
not really supported but use to half-work. Attempt to make it half-work
again, and document.
2023-02-18 20:08:56 +02:00
Dirk-Jan C. Binnema d55cba7237 mu4e: fix quotes in some docstrings
Escape correctly.
2023-02-15 12:29:24 +02:00
Dirk-Jan C. Binnema c70d4b70d2 mu4e-main: better handle :name workaround for maildirs
Distinguish between the lambda and normal activation functions.
2023-02-12 11:07:42 +02:00
Dirk-Jan C. Binnema e1a160a8e5 mu4e-main: just mu4e-search for maildir query
When activated.
2023-02-12 00:34:06 +02:00
Dirk-Jan C. Binnema 6559f0f86e mu4e: show actual keybindings in main-view
Let the main-screen show a representation of the *actual* keybindings
rather than assuming the defaults.

For that to work, we need to invoke mu4e-main-mode earlier; add a new
hook mu4e-main-mode-rendered-hook which is invoked after rendering is
complete.

Add a few helpers for this to mu4e-helpers.
2023-02-11 17:50:58 +02:00
Dirk-Jan C. Binnema 66d20d04f5 mu4e-main: small cleanups 2023-02-02 23:48:16 +02:00
Dirk-Jan C. Binnema 29e6c21ed8 mu4e: use mu4e-join-paths 2023-01-27 09:25:40 +02:00
Dirk-Jan C. Binnema 85d2fdcdd7 mu4e: ignore bookmarks/maildirs without characterp keys 2023-01-19 22:37:50 +02:00
Dirk-Jan C. Binnema ae10d3a3f8 mu4e-main: put bookmark/maildir query in help-echo 2023-01-18 19:41:25 +02:00
Dirk-Jan C. Binnema 74fb72035a mu4e: tweak main-view updating 2023-01-17 18:45:40 +02:00
Dirk-Jan C. Binnema 22b2d44b96 mu4e: tweak query-items refreshing
Try to make it a bit less confusing. The baseline becomes a bit more
implicit, and a `g` in the main view refreshes / resets.
2023-01-16 13:15:40 +02:00
Dirk-Jan C. Binnema 4182e599de mu4e-view: update baseline display
Make it a bit less prominent; and add a command mu4e-baseline-time.
2023-01-14 09:04:43 +02:00
Dirk-Jan C. Binnema 10041eb2e1 mu4e: implement mu4e-query-items
Implement function / datas structure to conveniently aggregate all
query-related data, for reuse in various places in mu4e...

... to start with the main menu, which gets much simpler. And the
modeline.
2023-01-13 21:56:15 +02:00
Dirk-Jan C. Binnema f5f03e8f91 mu4e-main: add menu to menubar 2023-01-09 22:45:53 +02:00
Dirk-Jan C. Binnema b11293147f mu4e: move mu4e~headers-jump-to-maildir to search
... to mu4e-search-maildir.

Where we can, we move appropriate code from the overpopulated
mu4e-headers.el to mu4e-search, and update users.
2023-01-09 22:43:39 +02:00
Dirk-Jan C. Binnema 5e5a74ed22 mu4e: use caching for modeline items
Avoid excessive (unnecessary) recalculation.
2023-01-08 13:54:47 +02:00
Dirk-Jan C. Binnema 49e094531c mu4e: add support for :favorite bookmark
Show favorite bookmark in main-screen (highlighted)

Add baseline-reset when main screen is shown or when the favority
bookmark is searched.

Some code cleanup
2023-01-07 15:40:30 +02:00
Dirk-Jan C. Binnema ba5026e7dc mu4e: support showing 'baseline' query-results
Add the concept of a query results baseline, i.e., the result for
bookmark-queries at some particular point in time. Later, we can compare
the results with the then-current query-results.

Show the delta in the main view. Add mu4e-reset-baseline-query-results
to reset the baseline to 'now'. By default, we automatically reset when
explicitly (interactively) going to the main-view, i.e., M-x mu4e.
2023-01-01 15:01:08 +02:00
Dirk-Jan C. Binnema e435692bb2 mu4e-main: refactor bookmark/maildir menu creation
There was quite a bit of duplicate code, refactor it to reduce.
2022-12-30 23:30:45 +02:00
Dirk-Jan C. Binnema 3e3aeead9b Revert "Add support for empty and string maildir shortcuts"
This reverts commit be695579c6.

The change didn't look very nice (keynames are not aligned etc.), and in
hindsight we should probably implement this slightly differently.
2022-12-30 16:19:19 +02:00
Dirk-Jan C. Binnema 9e1f0931f4 mu4e-main: fix byte-compiler warning 2022-12-29 08:43:42 +02:00
Dirk-Jan C. Binnema eb8160e8ed mu4e-main: restore mail-menu support for split-window mode 2022-12-29 00:23:32 +02:00
Dirk-Jan C. Binnema 15fadee730 mu4e-main: whitespace 2022-12-29 00:22:48 +02:00
Dirk-Jan C. Binnema 56099998e4
Merge pull request #2292 from manufactory/master
More customizable maildir shortcuts
2022-12-28 10:55:57 +02:00
Mickey Petersen 8ea01241ca Change how *mu4e-main* is displayed and default to full frame 2022-12-17 15:13:17 +00:00
Dirk-Jan C. Binnema 7d9a9d8a7c mu4e-main: make main-window full-screen again
Make the main-window fullscreen again, as before.
2022-12-13 09:36:42 +02:00
Dirk-Jan C. Binnema de8b4f0e32 mu4e-main: whitespace updates 2022-12-13 09:36:16 +02:00
Mickey Petersen 04903c568d Move defcustoms to mu4e-window.el 2022-12-09 09:01:18 +00:00
Mickey Petersen 69a17bfcb9 Multiple buffer support and standardised window and buffer handling 2022-11-29 11:33:07 +00:00
Sean Farley 89acde3f9c mu4e-main: automatically update the mail counts after indexing
It always struck me as a bit odd to force the user to refresh the main
view after updating and indexing their mail. This change creates a hook
that will simply call `revert-buffer' after an indexing completes.
2022-09-04 16:54:24 -05:00
Dirk-Jan C. Binnema 68753f9e84 mu4e: move all obsolete aliases to mu4e-obsolete
Unclutter the rest of the code a bit.
2022-08-20 14:24:24 +03:00
Dirk-Jan C. Binnema 39d7096bba mu4e-main: rewrite mu4e--main-menu
The old one had bit-rotted quite a bit.

Fixes #2296.
2022-07-07 00:52:32 +03:00
Manuel Wiesinger be695579c6 Add support for empty and string maildir shortcuts 2022-07-04 12:54:13 +02:00
Dirk-Jan C. Binnema a1f0c5e9eb mu4e: fix emacs-29 bytecompiler warnings
Wrong single quotes.
2022-05-28 00:51:08 +03:00
Daniel Fleischer eebb0eddd6 Last updated timestamp in the main screen
* mu4e/mu4e-main.el: showing last updated

based on the `:tstamp` of `mu4e-index-update-status` plist.
2022-04-18 19:06:54 +03:00
Dirk-Jan C. Binnema cc3be78dc5 mu4e-main: use mu4e~headers-jump-to-maildir
Re-fix hasty earlier fix; and improve the code a bit.

HT: @tsdh.
2022-01-29 19:53:37 +02:00
Dirk-Jan C. Binnema b8e696000f mu4e-main: fix jump-to-maildir typo
Fixes: #2206
2022-01-29 15:55:51 +02:00
Dirk-Jan C. Binnema a4707afe12 mu4e: cleanups and flycheck fixes
- Remove some unused faces
- Fix some flycheck warnings
- Replace some `cl-` functions with `pcase` and `seq`
2022-01-23 14:27:00 +02:00
Dirk-Jan C. Binnema 5d155841a6 mu4e: Use mu4e-query-rewrite-function
The (new) mu4e-search-query-rewrite-function is a bit too long, let's keep the
old one.
2021-10-31 11:26:58 +02:00
Dirk-Jan C. Binnema 5db8fdc49d mu4e: Do not defvar abbrev tables
I'm not quite sure why it was done in the first place, and it seems to have
unwanted side-effects. So let's turn it off and see if anything breaks.

Fixes: #2146.
2021-10-06 08:11:30 +03:00
Dirk-Jan C. Binnema 9157d9102d mu4e-utils: refactor into mu4e-helpers, separate files
Usurp more of the utils code than can be re-used without further dependencies in
helpers.

Split off specific parts in their own file.

After the helper/utils changes, update the rest of mu4e to take the changes into
account.
2021-08-29 21:40:42 +03:00
Dirk-Jan C. Binnema 3cd127d8ae mu4e-search: split off search functionality in minor-mode
Split off the search functionality from mu4e-headers.el into a new
mu4e-search.el.

Clean up things a bit and create a minor mode in which to add the keybindings.

Enable this in main/headers/view.
2021-08-29 20:30:29 +03:00