Re: [PATCH] kconfig: wrap long expressions in menuconfig
From: Nathan Chancellor
Date: Wed Nov 04 2026 - 23:18:15 EST
> In an offline conversation, Miguel Ojeda reported that scrolling
> horizontally in menuconfig's search to read RUST's dependencies has been
> slowing down debugging.
>
> Let's wrap expressions (like in the 'Depends on', 'Selected by', or
> 'Range' sections) between tokens at the end of the window, such that each
> line begins with the same indentation. Ensure the '!' negation stays
> attached to the left side of the option symbol, and keep the value
> annotation attached to the right side when wrapping.
>
> Note that the 'help' textbox uses the same expression printer as search,
> so this has the side effect of improving the formatting in 'help', too.
>
> In the future, we should consider a larger revamp that would wrap all text
> in the search window, allowing us to safely disable horizontal scrolling.
>
> Assisted-by: LLM
> Signed-off-by: Julian Braha <julianbraha@xxxxxxxxx>
I spend some time searching for random symbols to see if all long
depends or selects lines looked seriously broken and I did not find
anything.
Tested-by: Nathan Chancellor <nathan@xxxxxxxxxx>
Like you said down thread, this seems much better than what we currently
have, which is nothing. The Sashiko comments [1] seem rather contrived
(if valid at all, I did not check closely) but it seems reasonable not
to get things wrong off rip so with those fixed (if necessary), we can
probably get this into -next to see if there is anyting we immediately
need to tweak.
If you need to respin, you can drop the Assisted-by, it is not longer
used per
1e035297ffda ("docs: remove Assisted-by references")
[1]: https://sashiko.dev/#/patchset/20261010095001.265759-1-julianbraha@xxxxxxxxx
--
Cheers,
Nathan