Skip to content

feat(sort): add --auto sorting and restrict to interactive menus - #1493

Merged
pfeifferj merged 3 commits into
Morganamilo:masterfrom
pfeifferj:feat/sort-mode-auto
Oct 28, 2026
Merged

pfeifferj merged 3 commits into
Morganamilo:masterfrom
pfeifferj:feat/sort-mode-auto

Conversation

@pfeifferj

Copy link
Copy Markdown
Collaborator

Users have requested --bottomup as the default sorting behavior. However, paru wraps pacman and should mimic its behavior, which uses topdown ordering.

As a compromise, introduce a new default "Auto" sort mode.

  • TopDown ordering for non-interactive operations
  • BottomUp ordering for interactive menus where users select packages

@g1ffoni

g1ffoni commented Mar 4, 2026

Copy link
Copy Markdown

I was about to suggest this (BottomUp by default), it's so much better for package selection! Happy a solution is on the way (aside from manual configuration). :-) good job

@pfeifferj
pfeifferj force-pushed the feat/sort-mode-auto branch from 86bdba9 to 3f94f71 Compare October 28, 2026 09:37
use bottom-up ordering in package selection menus while keeping ordinary
search and list output top-down. allow Auto in configuration and --auto
on the command line to restore this default after an explicit ordering
override.

Signed-off-by: Josephine Pfeiffer <josie@archlinux.org>
expose --auto in command-line help and bash, fish and zsh completions.
update the gettext template for the new help text.

Signed-off-by: Josephine Pfeiffer <josie@archlinux.org>
@pfeifferj
pfeifferj force-pushed the feat/sort-mode-auto branch from 3f94f71 to df79465 Compare October 28, 2026 10:04
document Auto as the default ordering for interactive menus and ordinary
search output.

Signed-off-by: Josephine Pfeiffer <josie@archlinux.org>
@pfeifferj
pfeifferj force-pushed the feat/sort-mode-auto branch from df79465 to 1866751 Compare October 28, 2026 10:06
@pfeifferj
pfeifferj merged commit e317452 into Morganamilo:master Oct 28, 2026
3 of 6 checks passed
@pfeifferj
pfeifferj deleted the feat/sort-mode-auto branch October 28, 2026 10:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants