lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <b7d45269e9d9438d3b1db293dc1482dd@manjaro.org>
Date: Sat, 17 Aug 2024 19:46:25 +0200
From: Dragan Simic <dsimic@...jaro.org>
To: Ivan Orlov <ivan.orlov0322@...il.com>
Cc: masahiroy@...nel.org, isak01@...il.com, linux-kbuild@...r.kernel.org,
 linux-kernel@...r.kernel.org
Subject: Re: [PATCH] menuconfig: Allow sorting the entries alphabetically

Hello Ivan,

On 2024-08-16 16:18, Ivan Orlov wrote:
> Implement the functionality which allows to sort the Kconfig entries
> alphabetically if user decides to. It may help finding the desired 
> entry
> faster, so the user will spend less time looking through the list.

Awesome, I love this new feature!  Thank you for the patch.

> The sorting is done on the dialog_list elements in the 'dialog_menu'
> function, so on the option "representation" layer. The sorting could be
> enabled/disabled by pressing the '>' key. The labels are sorted in the
> following way:
> 
> 1. Put all entries into the array (from the linked list)
> 2. Sort them alphabetically using qsort and custom comparator
> 3. Restore the items linked list structure
> 
> I know that this modification includes the ugly heruistics for
> extracting the actual label text from "    [ ] Some-option"-like
> expressions (to be able to alphabetically compare the labels), and I
> would be happy to discuss alternative solutions.

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ