make number of clipboards configurable
This commit is contained in:
		| @@ -75,6 +75,7 @@ interruptOnKeyPress=False | ||||
| [general] | ||||
| debugLevel=0 | ||||
| punctuationLevel=1 | ||||
| numberOfClipboards=10 | ||||
| # define the current fenrir key | ||||
| fenrirKeys=KEY_KP0 | ||||
|  | ||||
|   | ||||
| @@ -75,6 +75,7 @@ interruptOnKeyPress=False | ||||
| [general] | ||||
| debugLevel=0 | ||||
| punctuationLevel=1 | ||||
| numberOfClipboards=10 | ||||
| # define the current fenrir key | ||||
| fenrirKeys=KEY_KP0 | ||||
|  | ||||
|   | ||||
| @@ -36,6 +36,7 @@ interruptOnKeyPress=False | ||||
| [general] | ||||
| debugLevel=0 | ||||
| punctuationLevel=1 | ||||
| numberOfClipboards=10 | ||||
| fenrirKeys=KEY_KP0 | ||||
|  | ||||
| [promote] | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -32,6 +32,7 @@ settings = { | ||||
|   'keyboardLayout': "desktop", | ||||
|   'debugLevel': debug.debugLevel.DEACTIVE, | ||||
|   'punctuationLevel': 1, | ||||
|   'numberOfClipboards': 10, | ||||
|   'fenrirKeys':['82'], | ||||
| }, | ||||
| 'promote':{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user