Change a few defaults in config

This commit is contained in:
Veronica Berglyd Olsen
2025-06-10 23:28:58 +02:00
parent bd3e23da33
commit 4e02c8a63a
3 changed files with 14 additions and 13 deletions
+3 -3
View File
@@ -180,8 +180,8 @@ class Config:
# Project Settings # Project Settings
self.autoSaveProj = 60 # Interval for auto-saving project, in seconds self.autoSaveProj = 60 # Interval for auto-saving project, in seconds
self.autoSaveDoc = 30 # Interval for auto-saving document, in seconds self.autoSaveDoc = 30 # Interval for auto-saving document, in seconds
self.emphLabels = True # Add emphasis to H1 and H2 item labels self.emphLabels = False # Add emphasis to H1 and H2 item labels
self.backupOnClose = False # Flag for running automatic backups self.backupOnClose = True # Flag for running automatic backups
self.askBeforeBackup = True # Flag for asking before running automatic backup self.askBeforeBackup = True # Flag for asking before running automatic backup
self.askBeforeExit = True # Flag for asking before exiting the app self.askBeforeExit = True # Flag for asking before exiting the app
@@ -208,7 +208,7 @@ class Config:
self.doReplaceDash = True # Replace multiple hyphens with dashes self.doReplaceDash = True # Replace multiple hyphens with dashes
self.doReplaceDots = True # Replace three dots with ellipsis self.doReplaceDots = True # Replace three dots with ellipsis
self.autoScroll = False # Typewriter-like scrolling self.autoScroll = True # Typewriter-like scrolling
self.autoScrollPos = 30 # Start point for typewriter-like scrolling self.autoScrollPos = 30 # Start point for typewriter-like scrolling
self.scrollPastEnd = True # Scroll past end of document, and centre cursor self.scrollPastEnd = True # Scroll past end of document, and centre cursor
+5 -4
View File
@@ -1,5 +1,5 @@
[Meta] [Meta]
timestamp = 2025-06-02 16:21:38 timestamp = 2025-06-10 23:18:12
[Main] [Main]
font = font =
@@ -27,9 +27,9 @@ outlinepane = 500, 150
[Project] [Project]
autosaveproject = 60 autosaveproject = 60
autosavedoc = 30 autosavedoc = 30
emphlabels = True emphlabels = False
backuppath = backuppath =
backuponclose = False backuponclose = True
askbeforebackup = True askbeforebackup = True
askbeforeexit = True askbeforeexit = True
lastauthor = lastauthor =
@@ -49,7 +49,7 @@ repsquotes = True
repdquotes = True repdquotes = True
repdash = True repdash = True
repdots = True repdots = True
autoscroll = False autoscroll = True
autoscrollpos = 30 autoscrollpos = 30
scrollpastend = True scrollpastend = True
fmtsquoteopen = fmtsquoteopen =
@@ -91,3 +91,4 @@ searchmatchcap = False
searchprojcase = False searchprojcase = False
searchprojword = False searchprojword = False
searchprojregex = False searchprojregex = False
+6 -6
View File
@@ -196,11 +196,11 @@ def testDlgPreferences_Settings(qtbot, monkeypatch, nwGUI, fncPath, tstPaths):
# Project View # Project View
prefs.iconColTree.setCurrentData("faded", "default") prefs.iconColTree.setCurrentData("faded", "default")
prefs.iconColDocs.setChecked(True) prefs.iconColDocs.setChecked(True)
prefs.emphLabels.setChecked(False) prefs.emphLabels.setChecked(True)
assert CONFIG.iconColTree == "theme" assert CONFIG.iconColTree == "theme"
assert CONFIG.iconColDocs is False assert CONFIG.iconColDocs is False
assert CONFIG.emphLabels is True assert CONFIG.emphLabels is False
# Behaviour # Behaviour
prefs.autoSaveDoc.stepUp() prefs.autoSaveDoc.stepUp()
@@ -261,11 +261,11 @@ def testDlgPreferences_Settings(qtbot, monkeypatch, nwGUI, fncPath, tstPaths):
# Editor Scrolling # Editor Scrolling
prefs.scrollPastEnd.setChecked(False) prefs.scrollPastEnd.setChecked(False)
prefs.autoScroll.setChecked(True) prefs.autoScroll.setChecked(False)
prefs.autoScrollPos.stepUp() prefs.autoScrollPos.stepUp()
assert CONFIG.scrollPastEnd is True assert CONFIG.scrollPastEnd is True
assert CONFIG.autoScroll is False assert CONFIG.autoScroll is True
assert CONFIG.autoScrollPos == 30 assert CONFIG.autoScrollPos == 30
# Text Highlighting # Text Highlighting
@@ -362,7 +362,7 @@ def testDlgPreferences_Settings(qtbot, monkeypatch, nwGUI, fncPath, tstPaths):
# Project View # Project View
assert CONFIG.iconColTree == "faded" assert CONFIG.iconColTree == "faded"
assert CONFIG.iconColDocs is True assert CONFIG.iconColDocs is True
assert CONFIG.emphLabels is False assert CONFIG.emphLabels is True
# Behaviour # Behaviour
assert CONFIG.autoSaveDoc == 31 assert CONFIG.autoSaveDoc == 31
@@ -395,7 +395,7 @@ def testDlgPreferences_Settings(qtbot, monkeypatch, nwGUI, fncPath, tstPaths):
# Editor Scrolling # Editor Scrolling
assert CONFIG.scrollPastEnd is False assert CONFIG.scrollPastEnd is False
assert CONFIG.autoScroll is True assert CONFIG.autoScroll is False
assert CONFIG.autoScrollPos == 31 assert CONFIG.autoScrollPos == 31
# Text Highlighting # Text Highlighting