More learn mode descriptions.
This commit is contained in:
parent
dce8ef181c
commit
cea74de3cf
@ -16,7 +16,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'adds the current word to the exceptions dictionary'
|
||||
def run(self, environment):
|
||||
if not initialized:
|
||||
environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True)
|
||||
|
@ -10,7 +10,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'copies marked text to the currently selected clipboard'
|
||||
def run(self, environment):
|
||||
if (environment['commandBuffer']['Marks']['1'] == None) or \
|
||||
(environment['commandBuffer']['Marks']['2'] == None):
|
||||
|
@ -9,7 +9,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'decreases the pitch of the speech'
|
||||
def run(self, environment):
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch')
|
||||
|
@ -9,7 +9,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'decreases the rate of the speech'
|
||||
def run(self, environment):
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate')
|
||||
|
@ -9,7 +9,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'decreases the volume of the speech'
|
||||
def run(self, environment):
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume')
|
||||
|
@ -12,7 +12,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'selects the first clipboard'
|
||||
def run(self, environment):
|
||||
if len(environment['commandBuffer']['clipboard']) == 0:
|
||||
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
|
||||
|
17
src/fenrir-package/commands/commands/forward_keypress.py
Normal file
17
src/fenrir-package/commands/commands/forward_keypress.py
Normal file
@ -0,0 +1,17 @@
|
||||
#!/bin/python
|
||||
|
||||
class command():
|
||||
def __init__(self):
|
||||
pass
|
||||
def initialize(self, environment):
|
||||
return environment
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'sends the following keypress to the terminal'
|
||||
def run(self, environment):
|
||||
environment['input']['keyForeward'] = True
|
||||
environment['runtime']['outputManager'].presentText(environment, 'Foreward next keypress', interrupt=True)
|
||||
return environment
|
||||
def setCallback(self, callback):
|
||||
pass
|
@ -9,7 +9,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'increases the pitch of the speech'
|
||||
def run(self, environment):
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'pitch')
|
||||
|
@ -9,7 +9,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'increase the speech rat'
|
||||
def run(self, environment):
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'rate')
|
||||
|
@ -9,7 +9,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'increase the speech volume'
|
||||
def run(self, environment):
|
||||
|
||||
value = environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'speech', 'volume')
|
||||
|
@ -12,7 +12,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'selects the last clipboard'
|
||||
def run(self, environment):
|
||||
if len(environment['commandBuffer']['clipboard']) == 0:
|
||||
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
|
||||
|
@ -12,7 +12,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'selects the next clipboard'
|
||||
def run(self, environment):
|
||||
if len(environment['commandBuffer']['clipboard']) == 0:
|
||||
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
|
||||
|
@ -12,7 +12,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'selects the previous clipboard'
|
||||
def run(self, environment):
|
||||
if len(environment['commandBuffer']['clipboard']) == 0:
|
||||
environment['runtime']['outputManager'].presentText(environment, 'clipboard empty', interrupt=True)
|
||||
|
@ -8,7 +8,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'exits Fenrir'
|
||||
def run(self, environment):
|
||||
environment['generalInformation']['running'] = False
|
||||
return environment
|
||||
|
@ -8,7 +8,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'removes marks from selected text'
|
||||
def run(self, environment):
|
||||
environment['commandBuffer']['Marks']['1'] = None
|
||||
environment['commandBuffer']['Marks']['2'] = None
|
||||
|
@ -16,7 +16,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'removes the current word from the exceptions dictionary'
|
||||
def run(self, environment):
|
||||
if not initialized:
|
||||
environment['runtime']['outputManager'].presentText(environment, 'pychant is not installed', interrupt=True)
|
||||
|
@ -8,7 +8,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'places marks to select text to copy to the clipboard'
|
||||
def run(self, environment):
|
||||
if environment['screenData']['newCursorReview'] == None:
|
||||
environment['runtime']['outputManager'].presentText(environment, 'no review cursor', interrupt=True)
|
||||
|
@ -8,7 +8,7 @@ class command():
|
||||
def shutdown(self, environment):
|
||||
return environment
|
||||
def getDescription(self):
|
||||
return 'No Description found'
|
||||
return 'interrupts the current presentation'
|
||||
def run(self, environment):
|
||||
environment['runtime']['outputManager'].interruptOutput(environment)
|
||||
def setCallback(self, callback):
|
||||
|
Loading…
Reference in New Issue
Block a user