init quickmark completion in init_static
This commit is contained in:
parent
f4c7c1d5a0
commit
621388e5e0
@ -61,7 +61,6 @@ class Completer(QObject):
|
||||
}
|
||||
self._init_static_completions()
|
||||
self._init_setting_completions()
|
||||
self._init_quickmark_completions()
|
||||
|
||||
def __repr__(self):
|
||||
return utils.get_repr(self)
|
||||
@ -78,6 +77,8 @@ class Completer(QObject):
|
||||
models.CommandCompletionModel(self), self)
|
||||
self._models[usertypes.Completion.helptopic] = CFM(
|
||||
models.HelpCompletionModel(self), self)
|
||||
self._models[usertypes.Completion.quickmark] = CFM(
|
||||
models.QuickmarkCompletionModel(self), self)
|
||||
|
||||
def _init_setting_completions(self):
|
||||
"""Initialize setting completion models."""
|
||||
@ -95,13 +96,6 @@ class Completer(QObject):
|
||||
self._models[usertypes.Completion.value][sectname][opt] = CFM(
|
||||
model, self)
|
||||
|
||||
def _init_quickmark_completions(self):
|
||||
"""Initialize the quickmark completion models."""
|
||||
self._models[usertypes.Completion.quickmark] = CFM(
|
||||
models.QuickmarkCompletionModel(self), self)
|
||||
self._models[usertypes.Completion.helptopic] = CFM(
|
||||
models.HelpCompletionModel(self), self)
|
||||
|
||||
def _get_new_completion(self, parts, cursor_part):
|
||||
"""Get a new completion model.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user