From 3161affaa5bb8350a39bfd305c56171a25b02151 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Mon, 21 May 2018 05:18:48 +0200 Subject: menuconfig: Show symbol values in search results Makes it double as a quick way to check if something is enabled. Suggested by Randy Dunlap. --- menuconfig.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'menuconfig.py') diff --git a/menuconfig.py b/menuconfig.py index 9055d5b..3fb1ebc 100755 --- a/menuconfig.py +++ b/menuconfig.py @@ -1608,7 +1608,9 @@ def _draw_jump_to_dialog(edit_box, matches_win, bot_sep_win, help_win, for i in range(scroll, min(scroll + matches_win.getmaxyx()[0], len(matches))): - sym_str = matches[i].item.name + sym = matches[i].item + + sym_str = "{}(={})".format(sym.name, sym.str_value) if matches[i].prompt: sym_str += ' "{}"'.format(matches[i].prompt[0]) -- cgit v1.2.3