From 4ec2e5485a5c1f8ac2431e9d6ada355a19de70b1 Mon Sep 17 00:00:00 2001 From: cryzed Date: Fri, 3 Nov 2017 13:14:29 +0100 Subject: [PATCH] Sort candidates alphabetically --- misc/userscripts/qute-pass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/userscripts/qute-pass b/misc/userscripts/qute-pass index 5894a3361..659ed32b8 100755 --- a/misc/userscripts/qute-pass +++ b/misc/userscripts/qute-pass @@ -129,7 +129,7 @@ def main(arguments): stderr('No pass candidates for URL {!r} found!'.format(arguments.url)) return ExitCodes.NO_PASS_CANDIDATES - selection = candidates.pop() if len(candidates) == 1 else dmenu(candidates, arguments.dmenu_invocation, + selection = candidates.pop() if len(candidates) == 1 else dmenu(sorted(candidates), arguments.dmenu_invocation, arguments.io_encoding) secret = pass_(selection, arguments.io_encoding)