1
0
Fork 0
mirror of https://git.sr.ht/~rjarry/aerc synced 2025-07-03 06:30:22 +02:00
aerc/commands/account
Antonin Godard caf717fc30 commands: add -u option to {next,prev}-folder
Add the "-u" option to the :next-folder and :prev-folder commands, used
to jump to the next or the previous folder that contains at least one
unseen email.

For directory trees, we have to factor in that the number of currently
visible folders may be lower than the total number of folders, so count
that in visibleDirsCount().

I find the following bindings useful:

  <A-j> = :next-folder -u<Enter>
  <A-k> = :prev-folder -u<Enter>

It allows jumping between folders efficiently while keeping the ability
to jump to the next or previous folder normally.

References: https://todo.sr.ht/~rjarry/aerc/168
Changelog-added: Add the -u option to :next-folder and :prev-folder
 commands to cycle between folders that contain unseen messages.
Signed-off-by: Antonin Godard <antonin@godard.cc>
Acked-by: Robin Jarry <robin@jarry.cc>
2025-05-05 14:26:52 +02:00
..
align.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
cf.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
check-mail.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
clear.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
compose.go composer: add flag to go directly to review screen 2025-01-23 22:11:39 +01:00
connection.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
expand-folder.go expand,collapse: allow specifying folder name 2024-12-21 17:02:31 +01:00
export-mbox.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
import-mbox.go import-mbox: unzip compressed mboxes 2024-11-09 18:48:19 +01:00
mkdir.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
next-folder.go commands: add -u option to {next,prev}-folder 2025-05-05 14:26:52 +02:00
next-result.go completion: add commands descriptions 2024-10-23 10:22:51 +02:00
next.go commands: allow positional arguments starting with "-" 2025-03-31 16:35:54 +02:00
query.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
recover.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
rmdir.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
search.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
select.go commands: allow positional arguments starting with "-" 2025-03-31 16:35:54 +02:00
sort.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00
split.go commands: allow positional arguments starting with "-" 2025-03-31 16:35:54 +02:00
view.go completion: add command option descriptions 2024-10-23 10:22:51 +02:00