More conf docs

This commit is contained in:
Kovid Goyal 2018-06-04 11:15:57 +05:30
parent f7fe59dfbe
commit 0070e0a58a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 20 additions and 4 deletions

View File

@ -315,7 +315,6 @@ type_map = {
'window_margin_width': positive_float,
'tab_bar_margin_width': positive_float,
'window_padding_width': positive_float,
'visual_bell_duration': positive_float,
'enable_audio_bell': to_bool,
'enabled_layouts': to_layout_names,
'remember_window_size': to_bool,

View File

@ -93,12 +93,10 @@ o, g, all_groups = option_func(all_options, {
],
'cursor': [_('Cursor customization'), ],
'scrollback': [_('Scrollback'), ],
'mouse': [_('Mouse'), ],
'performance': [_('Performance tuning')],
'bell': [_('Terminal bell')],
})
type_map = {o.name: o.option_type for o in all_options.values()}
# }}}
@ -267,3 +265,22 @@ very high speed mouse/high keyboard repeat rate, you may notice some slight inpu
If so, set this to no.'''))
# }}}
g('bell') # {{{
o('enable_audio_bell', True, long_text=_('''
Enable/disable the audio bell. Useful in environments that require silence.'''))
o('visual_bell_duration', 0.0, option_type=positive_float, long_text=_('''
Visual bell duration. Flash the screen when a bell occurs for the specified number of
seconds. Set to zero to disable.'''))
o('window_alert_on_bell', True, long_text=_('''
Request window attention on bell.
Makes the dock icon bounce on macOS or the taskbar flash on linux.'''))
o('bell_on_tab', True, long_text=_('''
Show a bell symbol on the tab if a bell occurs in one of the windows in the
tab and the window is not the currently focused window'''))
# }}}