make number of clipboards configurable

This commit is contained in:
chrys 2016-08-25 01:50:02 +02:00
parent acd10812c6
commit fa93d611fc
5 changed files with 5 additions and 1 deletions

View File

@ -75,6 +75,7 @@ interruptOnKeyPress=False
[general]
debugLevel=0
punctuationLevel=1
numberOfClipboards=10
# define the current fenrir key
fenrirKeys=KEY_KP0

View File

@ -75,6 +75,7 @@ interruptOnKeyPress=False
[general]
debugLevel=0
punctuationLevel=1
numberOfClipboards=10
# define the current fenrir key
fenrirKeys=KEY_KP0

View File

@ -36,6 +36,7 @@ interruptOnKeyPress=False
[general]
debugLevel=0
punctuationLevel=1
numberOfClipboards=10
fenrirKeys=KEY_KP0
[promote]

View File

@ -21,7 +21,7 @@ class command():
marked = mark_utils.getTextBetweenMarks(startMark, endMark, environment['screenData']['newContentText'])
environment['commandBuffer']['clipboard'] = [marked] + environment['commandBuffer']['clipboard'][:9]
environment['commandBuffer']['clipboard'] = [marked] + environment['commandBuffer']['clipboard'][:environment['runtime']['settingsManager'].getSettingAsFloat(environment, 'general', 'numberOfClipboards') -1]
environment['commandBuffer']['currClipboard'] = 0
environment['commandBuffer']['Marks']['1'] = None
environment['commandBuffer']['Marks']['2'] = None

View File

@ -32,6 +32,7 @@ settings = {
'keyboardLayout': "desktop",
'debugLevel': debug.debugLevel.DEACTIVE,
'punctuationLevel': 1,
'numberOfClipboards': 10,
'fenrirKeys':['82'],
},
'promote':{