Skip to content

Commit 8a9b79a

Browse files
authored
Improve tree class and auto-rebuild index (#1236)
2 parents 116ebd8 + e7ce13f commit 8a9b79a

File tree

15 files changed

+2858
-2788
lines changed

15 files changed

+2858
-2788
lines changed

CHANGELOG.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,91 @@
11
# novelWriter Changelog
22

3+
## Version 2.0 RC 2 [2022-11-13]
4+
5+
### Release Notes
6+
7+
This is a release candidate of the next release version, and is intended for testing purposes.
8+
Please be careful when using this version on live writing projects, and make sure you take frequent
9+
backups.
10+
11+
Please check the changelog for an overview of changes. The full release notes will be added to the
12+
final release.
13+
14+
### Detailed Changelog
15+
16+
Note: This release introduces a new Project XML format with version number 1.5. When the project is
17+
opened, a request to update the file format will show up.
18+
19+
**Bugfixes**
20+
21+
* The custom folders for user defined themes and syntax were not created properly when the app was
22+
first launched on a new computer. The folders were successfully created on a second launch. The
23+
error was handled, but reported. This was caused by the folder creation process being in the
24+
wrong order. Issue #1180. PR #1184.
25+
* Fixed context menu entries for split and merge having inconsistent labels. Issue #1199. PR #1197.
26+
27+
**User Interface**
28+
29+
* The exported status for document items have been renamed to active/inactive. Their icons have
30+
also been updated. Issues #1196 and #1198. PRs #1200 and #1216.
31+
* The status/importance context menu now shows which label is the current. Issue #1202. PR #1207.
32+
* The status/importance context menu now has a "Manage Labels" action that opens the Project
33+
Settings dialog at the correct place. Issue #1203. PR #1207.
34+
* Both GUI theme and syntax theme can now be updated without restarting the app. Issue #1171.
35+
PR #1212.
36+
* The GUI theme now determines which icon theme is to be loaded. It is no longer a separate
37+
setting. The icon theme can also be reloaded without restart. Issue #1172. PR #1212.
38+
* The block formating features in the Format menu now also works on empty lines. Issue #1178.
39+
PR #1214.
40+
* There is now a Format menu entry and shortcut code for synopsis comments. Issue #1177. PR #1214.
41+
* The split document dialog now has the option to move teh source document to trash. Issue #1179.
42+
PR #1217.
43+
44+
**Other Changes**
45+
46+
* Archived documents are now partially indexed. This mainly means that the item will have the
47+
correct document icon in the project tree corresponding to its main heading. Issue #1176.
48+
PR #1183.
49+
* The option to add notes files in the Project Wizard now automatically switches off if there are
50+
no notes categories enabled. Issue #1192. PR #1201.
51+
* When a project is opened for the first time, the first document in the project is also opened.
52+
Issue #1219. PR #1223.
53+
* When there is no project open, the toolbars on the Project Tree, Novel View and Outline View are
54+
disabled. They are enabled only when a project is loaded. Issue #1220. PR #1230.
55+
56+
**Installation and Packaging**
57+
58+
* The AppImage release now has version information in the package name. Issue #1182. PR #1218.
59+
60+
**Code Improvements**
61+
62+
* The main heading of a document is now stored in the item class instead of the index. PR #1183.
63+
* The common module checker functions no longer allow None values. The only one needing it was the
64+
string checker. A new string checker that allows None has been added for those cases. This makes
65+
type discovery in the code editor easier. Issue #1185. PR #1188.
66+
* Verbose logging has been removed. The lowest severity level is now DEBUG. Issue #1186. PR #1191.
67+
* Added a number of None checks in the code where especially Qt calls could potentially return
68+
None, even if they were unlikely to do so. PR #1197.
69+
* Renamed the status bar attribute in the main GUI class as it conflicts with a Qt method.
70+
Issue #1190. PR #1197.
71+
* The data access methods for the custom config file parser have been improved to better report
72+
correct type information. PR #1197.
73+
* Saving and loading of XML data is now handled by a separate set of reader and writer classes. The
74+
reader class is capable of reading all file formats that have been used thus far. The various
75+
data classes have been improved, and a new XML file formart version 1.5 added. Issue #1189.
76+
PRs #1221 and #1232.
77+
* The project folder on disk is now wrapped in a storage class that the project accesses files
78+
through. It also handles lock files and archiving used for backup. The change is in preparation
79+
for adding a potential single file format. Issue #1222. PR #1225.
80+
* The Project Wizard now creates the project on disk, and then opens it. This replaces the old
81+
method where the new project was built directly into the current session. This caused a few
82+
inconsistencies from time to time, and was a duplicate way of getting a project into the session.
83+
Issue #1152. PR #1225.
84+
* The Config class has been refactored extensively and now also uses pathlib for all paths. Tests
85+
are also switched to using pathlib. Issue #1224. PRs #1228 and #1229.
86+
87+
----
88+
389
## Version 2.0 RC 1 [2022-10-17]
490

591
### Release Notes

0 commit comments

Comments
 (0)