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:
Florian Bruhin 2015-03-13 19:46:21 +01:00
parent 901db0911e
commit 55eabafc0d
2 changed files with 3 additions and 2 deletions

View File

@ -186,7 +186,7 @@ def _init_misc():
from qutebrowser.misc import lineparser
command_history = lineparser.LimitLineParser(
standarddir.data(), 'cmd-history',
limit=('completion', 'history-length'),
limit=('completion', 'cmd-history-max-items'),
parent=objreg.get('config'))
objreg.register('command-history', command_history)
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.system'): 'tabs.indicator.system',
('tabs', 'auto-hide'): 'hide-auto',
('completion', 'history-length'): 'cmd-history-max-items',
}
DELETED_OPTIONS = [
('colors', 'tab.seperator'),

View File

@ -322,7 +322,7 @@ DATA = collections.OrderedDict([
"The height of the completion, in px or as percentage of the "
"window."),
('history-length',
('cmd-history-max-items',
SettingValue(typ.Int(minval=-1), '100'),
"How many commands to save in the history.\n\n"
"0: no history / -1: unlimited"),