Commit 2e25595a authored by louiz’'s avatar louiz’

Introduce the go_to_previous_tab_on_alt_number option

fix #2841
parent ed7fe693
......@@ -316,6 +316,14 @@ to understand what is :ref:`carbons <carbons-details>` or
If this is set to ``false``, you will no longer be subscribed to tune events,
and the :term:`display_tune_notifications` option will be ignored.
go_to_previous_tab_on_alt_number
**Default value:** ``false``
If this is set to ``true``, when Alt+x is pressed, where x is a
number, if you are already on the tab number x, you will jump to the
previously selected tab. Otherwise you’ll stay on the same tab.
group_corrections
**Default value:** ``true``
......
......@@ -58,6 +58,7 @@ DEFAULT_CONFIG = {
'extract_inline_images': True,
'filter_info_messages': '',
'force_encryption': True,
'go_to_previous_tab_on_alt_number': False,
'group_corrections': True,
'hide_exit_join': -1,
'hide_status_change': 120,
......
......@@ -592,7 +592,7 @@ class Core(object):
except ValueError:
pass
else:
if self.current_tab().nb == nb:
if self.current_tab().nb == nb and config.get('go_to_previous_tab_on_alt_number'):
self.go_to_previous_tab()
else:
self.command_win('%d' % nb)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment