Simplify the typewriter mode

This commit is contained in:
Veronica K. B. Olsen
2020-10-11 22:52:06 +02:00
parent 77ec41a820
commit c76c2df925
5 changed files with 37 additions and 38 deletions
+5
View File
@@ -128,6 +128,7 @@ class Config:
self.doReplaceDots = True
self.scrollPastEnd = True
self.scollWithCursor = False
self.scollFromPoint = 40
self.wordCountTimer = 5.0
self.showTabsNSpaces = False
@@ -467,6 +468,9 @@ class Config:
self.scollWithCursor = self._parseLine(
cnfParse, cnfSec, "scollwithcursor", self.CNF_BOOL, self.scollWithCursor
)
self.scollFromPoint = self._parseLine(
cnfParse, cnfSec, "scollfrompoint", self.CNF_INT, self.scollFromPoint
)
self.fmtSingleQuotes = self._parseLine(
cnfParse, cnfSec, "fmtsinglequote", self.CNF_LIST, self.fmtSingleQuotes
)
@@ -613,6 +617,7 @@ class Config:
cnfParse.set(cnfSec, "repdots", str(self.doReplaceDots))
cnfParse.set(cnfSec, "scrollpastend", str(self.scrollPastEnd))
cnfParse.set(cnfSec, "scollwithcursor", str(self.scollWithCursor))
cnfParse.set(cnfSec, "scollfrompoint", str(self.scollFromPoint))
cnfParse.set(cnfSec, "fmtsinglequote", self._packList(self.fmtSingleQuotes))
cnfParse.set(cnfSec, "fmtdoublequote", self._packList(self.fmtDoubleQuotes))
cnfParse.set(cnfSec, "spelltool", str(self.spellTool))