Linux kbuild/kconfig development
 help / color / mirror / Atom feed
From: Dragan Simic <dsimic@manjaro.org>
To: Ivan Orlov <ivan.orlov0322@gmail.com>
Cc: masahiroy@kernel.org, isak01@gmail.com,
	linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] menuconfig: Allow sorting the entries alphabetically
Date: Sat, 17 Aug 2024 19:46:25 +0200	[thread overview]
Message-ID: <b7d45269e9d9438d3b1db293dc1482dd@manjaro.org> (raw)
In-Reply-To: <20240816141831.104085-1-ivan.orlov0322@gmail.com>

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.

      reply	other threads:[~2024-08-17 17:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-16 14:18 [PATCH] menuconfig: Allow sorting the entries alphabetically Ivan Orlov
2024-08-17 17:46 ` Dragan Simic [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=b7d45269e9d9438d3b1db293dc1482dd@manjaro.org \
    --to=dsimic@manjaro.org \
    --cc=isak01@gmail.com \
    --cc=ivan.orlov0322@gmail.com \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=masahiroy@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox