aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorBence Ferdinandy <bence@ferdinandy.com>2024-06-21 21:55:33 +0200
committerRobin Jarry <robin@jarry.cc>2024-06-23 22:13:30 +0200
commite2a9cd0881593c3b3a24863ceb535367c5570888 (patch)
tree1b8310bb83f0c9f8f6f1504e9d9e17674ac57b55 /doc
parenta37ae231061e027233dc159900846f75c32a6d18 (diff)
downloadaerc-e2a9cd0881593c3b3a24863ceb535367c5570888.tar.gz
query: allow forcing overwrite of existing folder
Currently, when using :query the user is forced to create a new folder for every query, since aerc doesn't allow overwriting an existing folder. Actually, "overwriting" an existing folder with a query is a non-destructive operation in the sense, that the underlying maildir is not touched, the only thing lost is the state in aerc. The current behaviour doesn't allow for a simple `:query -n query ` type of binding. Allow overwriting an existing folder with the -f flag. Changelog-added: Allow using existing directory name with `:query -f`. Signed-off-by: Bence Ferdinandy <bence@ferdinandy.com> Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'doc')
-rw-r--r--doc/aerc.1.scd6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/aerc.1.scd b/doc/aerc.1.scd
index 62129bff..1da6be3c 100644
--- a/doc/aerc.1.scd
+++ b/doc/aerc.1.scd
@@ -625,7 +625,7 @@ message list, the message in the message viewer, etc).
*:prev-result*
Selects the next or previous search result.
-*:query* [*-a* _<account>_] [*-n* _name_] _<notmuch query>_
+*:query* [*-a* _<account>_] [*-n* _name_] [*-f*] _<notmuch query>_
Create a virtual folder using the specified top-level notmuch query. This
command is exclusive to the notmuch backend.
@@ -637,6 +637,10 @@ message list, the message in the message viewer, etc).
Specify the display name for the virtual folder. If not provided,
_<notmuch query>_ is used as the display name.
+ *-f*
+ Load the query results into an already existing folder (messages
+ in the original folder are not deleted).
+
*:search* [_<options>_] _<terms>_...
Searches the current folder for messages matching the given set of
conditions. The search syntax is dependent on the underlying backend.