summaryrefslogtreecommitdiff
path: root/menuconfig.py
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-05-08 10:59:45 +0200
committerUlf Magnusson <ulfalizer@gmail.com>2018-05-08 10:59:45 +0200
commited38e895acee66d2685f0d7210f6eefd6fb81576 (patch)
treea44df82835da58577d2957df38d7b9c4e42b9032 /menuconfig.py
parentaa39e8c3ca511c698df415b3dc7f93e3299f891d (diff)
Increase indent for implicit submenus to 4
Makes it easier to see the menu structure. Make the indent configurable via a _SUBMENU_INDENT configuration variable.
Diffstat (limited to 'menuconfig.py')
-rwxr-xr-xmenuconfig.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/menuconfig.py b/menuconfig.py
index 760839d..63c248e 100755
--- a/menuconfig.py
+++ b/menuconfig.py
@@ -102,6 +102,11 @@ from kconfiglib import Kconfig, \
# Configuration variables
#
+# How many steps an implicit submenu will be indented. Implicit submenus are
+# created when an item depends on the symbol before it. Note that symbols
+# defined with 'menuconfig' create a separate menu instead of indenting.
+_SUBMENU_INDENT = 4
+
# Number of steps for Page Up/Down to jump
_PG_JUMP = 6
@@ -2022,7 +2027,7 @@ def _node_str(node):
indent = 0
parent = node.parent
while not parent.is_menuconfig:
- indent += 2
+ indent += _SUBMENU_INDENT
parent = parent.parent
# This approach gives nice alignment for empty string symbols ("() Foo")