Hide internal commands
This commit is contained in:
parent
4d2a8a7102
commit
480cf787b2
@ -55,6 +55,7 @@ class Print(Command):
|
|||||||
class Scroll(Command):
|
class Scroll(Command):
|
||||||
nargs = 2
|
nargs = 2
|
||||||
count = True
|
count = True
|
||||||
|
hide = True
|
||||||
|
|
||||||
class Undo(Command):
|
class Undo(Command):
|
||||||
nargs = 0
|
nargs = 0
|
||||||
@ -62,10 +63,12 @@ class Undo(Command):
|
|||||||
class ScrollPercentX(Command):
|
class ScrollPercentX(Command):
|
||||||
nargs = '?'
|
nargs = '?'
|
||||||
count = True
|
count = True
|
||||||
|
hide = True
|
||||||
|
|
||||||
class ScrollPercentY(Command):
|
class ScrollPercentY(Command):
|
||||||
nargs = '?'
|
nargs = '?'
|
||||||
count = True
|
count = True
|
||||||
|
hide = True
|
||||||
|
|
||||||
class PyEval(Command):
|
class PyEval(Command):
|
||||||
nargs = 1
|
nargs = 1
|
||||||
|
@ -89,7 +89,8 @@ class CommandCompletionModel(CompletionModel):
|
|||||||
assert(cmd_dict)
|
assert(cmd_dict)
|
||||||
cmdlist = []
|
cmdlist = []
|
||||||
for obj in set(cmd_dict.values()):
|
for obj in set(cmd_dict.values()):
|
||||||
cmdlist.append([obj.mainname, obj.desc])
|
if not obj.hide:
|
||||||
|
cmdlist.append([obj.mainname, obj.desc])
|
||||||
self._data['Commands'] = sorted(cmdlist)
|
self._data['Commands'] = sorted(cmdlist)
|
||||||
self.init_data()
|
self.init_data()
|
||||||
|
|
||||||
@ -109,6 +110,7 @@ class Command(QObject):
|
|||||||
count = False
|
count = False
|
||||||
split_args = True
|
split_args = True
|
||||||
signal = pyqtSignal(tuple)
|
signal = pyqtSignal(tuple)
|
||||||
|
hide = False
|
||||||
desc = "" # FIXME add descriptions everywhere
|
desc = "" # FIXME add descriptions everywhere
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user