This commit is contained in:
ahpakar 2026-01-07 16:35:53 -08:00 committed by GitHub
commit 0ff2008a98
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 17 additions and 0 deletions

View File

@ -315,6 +315,7 @@
|<<session.default_name,session.default_name>>|Name of the session to save by default.
|<<session.lazy_restore,session.lazy_restore>>|Load a restored tab as soon as it takes focus.
|<<spellcheck.languages,spellcheck.languages>>|Languages to use for spell checking.
|<<statusbar.mode_text,statusbar.mode_text>>|Show a text widget with the current input mode in the statusbar.
|<<statusbar.padding,statusbar.padding>>|Padding (in pixels) for the statusbar.
|<<statusbar.position,statusbar.position>>|Position of the status bar.
|<<statusbar.show,statusbar.show>>|When to show the statusbar.
@ -4190,6 +4191,14 @@ Valid values:
Default: empty
[[statusbar.mode_text]]
=== statusbar.mode_text
Show a text widget with the current input mode in the statusbar.
Type: <<types,Bool>>
Default: +pass:[true]+
[[statusbar.padding]]
=== statusbar.padding
Padding (in pixels) for the statusbar.

View File

@ -2212,6 +2212,11 @@ statusbar.widgets:
default: ['keypress', 'search_match', 'url', 'scroll', 'history', 'tabs', 'progress']
desc: "List of widgets displayed in the statusbar."
statusbar.mode_text:
default: true
type: Bool
desc: Show a text widget with the current input mode in the statusbar.
## tabs
tabs.background:

View File

@ -346,6 +346,9 @@ class StatusBar(QWidget):
def _set_mode_text(self, mode):
"""Set the mode text."""
if not config.val.statusbar.mode_text:
self.txt.setText('')
return
if mode == 'passthrough':
key_instance = config.key_instance
all_bindings = key_instance.get_reverse_bindings_for('passthrough')