lkml.org 
[lkml]   [2024]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC 0/2] kconfig: Add fzf fuzzy search for config options
Date
Hi,

These two patches are introducing a way to use fzf with the kernel
config options.

Using 'make fzfconfig' opens a list of all config options and their
state in the currently used configuration file. A preview is provided
for the currently selected config option in the list, showing the
original Kconfig snippet. Using Enter opens make menuconfig for the
selected option.

I reused the existing helpnewconfig command as it contains all the
information necessary and extended it to display all options using
helpallconfig. Using a wrapper script, that does simple parsing, the
view is transformed into a line based representation that is usable by
fzf.

I used this helper for some time now and it seems to work quite good for
me, though there may be cornercases for symbols etc. where it doesn't
work. I chose to use helpnewconfig/helpallconfig as it seems to be just
a small modification on the existing codebase to achieve fzf support.

Best
Markus

Markus Schneider-Pargmann (2):
kconfig: Add helpallconfig
scripts: Add fzfconfig helper script

scripts/fzfconfig | 112 +++++++++++++++++++++++++++++++++++++++
scripts/kconfig/Makefile | 8 ++-
scripts/kconfig/conf.c | 17 ++++--
3 files changed, 132 insertions(+), 5 deletions(-)
create mode 100755 scripts/fzfconfig

--
2.43.0


\
 
 \ /
  Last update: 2024-05-27 16:12    [W:0.026 / U:0.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site