Skip to content

RFC kconfig: Add fzf fuzzy search for config options

Markus Schneider-Pargmann linux-kbuild lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2kconfig: Add helpallconfigscripts/kconfig/Makefile scripts/kconfig/conf.c+16 -50 replies
2/2scripts: Add fzfconfig helper scriptscripts/fzfconfig scripts/kconfig/Makefile+116 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] kconfig: Add fzf fuzzy search for config options

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
Signature · 1 line
2.43.0