diff options
author | Tim Culverhouse <tim@timculverhouse.com> | 2022-06-10 17:24:12 -0500 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2022-06-14 22:12:42 +0200 |
commit | 4753cfd3e33f985ec22c5600a8d7e68b72175607 (patch) | |
tree | 3fd0cc2260257ddcc0e45264be66c207a6732a15 /commands/msg/pipe.go | |
parent | af0e5879765f3a54b13dc89fdbc1cd6722607bee (diff) | |
download | aerc-4753cfd3e33f985ec22c5600a8d7e68b72175607.zip |
visual-mode: deselect messages after performing command
In order to better align to vim functionality: deselect visual mode
selections after performing a command on the selection. This patch also
introduces a new command to allow for re-selecting (remarking) the
previous selection set so that commands can be chained together. The
deselection only applies to msg commands that *do not* move the message
from the store (those types of commands already deselect):
- read/unread
- flag/unflag
- modify-labels
- copy
- pipe
Previous usage to mark several messages as read and deselect all:
Vjjj:read<Enter>:unmark -a<Enter>
New usage, similar to vim:
Vjjj:read<Enter>
To chain a command together:
Vjjj:read<Enter>:remark<Enter>{next command}<Enter>
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
Acked-by: Robin Jarry <robin@jarry.cc>
Diffstat (limited to 'commands/msg/pipe.go')
-rw-r--r-- | commands/msg/pipe.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/msg/pipe.go b/commands/msg/pipe.go index 06f2a4d..b33254d 100644 --- a/commands/msg/pipe.go +++ b/commands/msg/pipe.go @@ -197,7 +197,7 @@ func (Pipe) Execute(aerc *widgets.Aerc, args []string) error { } }) } - + provider.Store().ClearVisualMark() return nil } |