aboutsummaryrefslogtreecommitdiffstats
path: root/commands/account/mkdir.go
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 /commands/account/mkdir.go
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 'commands/account/mkdir.go')
-rw-r--r--commands/account/mkdir.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/account/mkdir.go b/commands/account/mkdir.go
index dae407cd..5ce7bbf4 100644
--- a/commands/account/mkdir.go
+++ b/commands/account/mkdir.go
@@ -53,7 +53,7 @@ func (m MakeDir) Execute(args []string) error {
case *types.Done:
app.PushStatus("Directory created.", 10*time.Second)
history[acct.Name()] = previous
- acct.Directories().Open(m.Folder, "", 0, nil)
+ acct.Directories().Open(m.Folder, "", 0, nil, false)
case *types.Error:
app.PushError(msg.Error.Error())
}