Some minor tweaks, and added option for showing full path

This commit is contained in:
Veronica K. B. Olsen
2020-05-01 21:30:18 +02:00
parent bf3ecfbef4
commit b44669a3b5
6 changed files with 18 additions and 6 deletions
+5
View File
@@ -116,6 +116,7 @@ class Config:
self.showTabsNSpaces = False
self.showLineEndings = False
self.bigDocLimit = 800
self.showFullPath = True
self.fmtApostrophe = nwUnicode.U_RSQUO
self.fmtSingleQuotes = [nwUnicode.U_LSQUO,nwUnicode.U_RSQUO]
@@ -398,6 +399,9 @@ class Config:
self.bigDocLimit = self._parseLine(
cnfParse, cnfSec, "bigdoclimit", self.CNF_INT, self.bigDocLimit
)
self.showFullPath = self._parseLine(
cnfParse, cnfSec, "showfullpath", self.CNF_BOOL, self.showFullPath
)
## Backup
cnfSec = "Backup"
@@ -486,6 +490,7 @@ class Config:
cnfParse.set(cnfSec,"showtabsnspaces", str(self.showTabsNSpaces))
cnfParse.set(cnfSec,"showlineendings", str(self.showLineEndings))
cnfParse.set(cnfSec,"bigdoclimit", str(self.bigDocLimit))
cnfParse.set(cnfSec,"showfullpath", str(self.showFullPath))
## Backup
cnfSec = "Backup"