add initial set/read/clear bookmark commands

This commit is contained in:
chrys
2016-09-22 23:42:50 +02:00
parent ac6e11537c
commit a037dde714
10 changed files with 193 additions and 63 deletions

View File

@ -69,9 +69,9 @@ class commandManager():
if len(unLoadScript) == 0:
oldScript = 'DEFAULT'
else:
oldScript = unLoadScript[0].upper()
oldScript = unLoadScript[0]
elif unLoadScript:
oldScript = str(unLoadScript).upper()
oldScript = str(unLoadScript)
if oldScript == '':
oldScript == 'DEFAULT'
if self.commandExists(oldScript, trigger):
@ -87,9 +87,9 @@ class commandManager():
if len(loadScript) == 0:
newScript = 'DEFAULT'
else:
newScript = loadScript[0].upper()
newScript = loadScript[0]
elif unLoadScript:
newScript = str(loadScript).upper()
newScript = str(loadScript)
if newScript == '':
newScript == 'DEFAULT'
if self.commandExists(newScript, trigger):

View File

@ -16,14 +16,15 @@ commandBuffer = {
'genericListSelection': 0,
'clipboard':[],
'currClipboard': 0,
'Marks':{'1':None, '2':None}
'Marks':{'1':None, '2':None},
'bookMarks':{},
}
# used by the commandManager
commandInfo = {
'currCommand': '',
'lastCommandExecutionTime': time.time(),
'lastCommandRequestTime': time.time()
'lastCommandRequestTime': time.time(),
}
# used by the commandManager