Rename completion -> history-length.
This is now renamed to cmd-history-max-items to avoid confusion with the web history.
This commit is contained in:
parent
901db0911e
commit
55eabafc0d
@ -186,7 +186,7 @@ def _init_misc():
|
|||||||
from qutebrowser.misc import lineparser
|
from qutebrowser.misc import lineparser
|
||||||
command_history = lineparser.LimitLineParser(
|
command_history = lineparser.LimitLineParser(
|
||||||
standarddir.data(), 'cmd-history',
|
standarddir.data(), 'cmd-history',
|
||||||
limit=('completion', 'history-length'),
|
limit=('completion', 'cmd-history-max-items'),
|
||||||
parent=objreg.get('config'))
|
parent=objreg.get('config'))
|
||||||
objreg.register('command-history', command_history)
|
objreg.register('command-history', command_history)
|
||||||
save_manager.add_saveable('command-history', command_history.save,
|
save_manager.add_saveable('command-history', command_history.save,
|
||||||
@ -259,6 +259,7 @@ class ConfigManager(QObject):
|
|||||||
('colors', 'tab.indicator.error'): 'tabs.indicator.error',
|
('colors', 'tab.indicator.error'): 'tabs.indicator.error',
|
||||||
('colors', 'tab.indicator.system'): 'tabs.indicator.system',
|
('colors', 'tab.indicator.system'): 'tabs.indicator.system',
|
||||||
('tabs', 'auto-hide'): 'hide-auto',
|
('tabs', 'auto-hide'): 'hide-auto',
|
||||||
|
('completion', 'history-length'): 'cmd-history-max-items',
|
||||||
}
|
}
|
||||||
DELETED_OPTIONS = [
|
DELETED_OPTIONS = [
|
||||||
('colors', 'tab.seperator'),
|
('colors', 'tab.seperator'),
|
||||||
|
@ -322,7 +322,7 @@ DATA = collections.OrderedDict([
|
|||||||
"The height of the completion, in px or as percentage of the "
|
"The height of the completion, in px or as percentage of the "
|
||||||
"window."),
|
"window."),
|
||||||
|
|
||||||
('history-length',
|
('cmd-history-max-items',
|
||||||
SettingValue(typ.Int(minval=-1), '100'),
|
SettingValue(typ.Int(minval=-1), '100'),
|
||||||
"How many commands to save in the history.\n\n"
|
"How many commands to save in the history.\n\n"
|
||||||
"0: no history / -1: unlimited"),
|
"0: no history / -1: unlimited"),
|
||||||
|
Loading…
Reference in New Issue
Block a user