Compare commits

...

1752 Commits

Author SHA1 Message Date
Veronica Berglyd Olsen
1c6787bdc3 Relese 26.2.2 (#3077) 2026-10-11 18:49:15 +02:00
Veronica Berglyd Olsen
1b4695771c Merge branch 'release' into release-26.2.2 2026-10-11 01:23:56 +02:00
Veronica Berglyd Olsen
29090455de Replace literal line breaks in the Manuscript outline (#3078) 2026-10-11 01:23:41 +02:00
Veronica Berglyd Olsen
bffb01401f Update changelog 2026-10-11 01:21:38 +02:00
Veronica Berglyd Olsen
c99584fc41 Replace literal line breaks in the Manuscript outline 2026-10-11 01:16:38 +02:00
Veronica Berglyd Olsen
3697c190e5 Bump version to 26.2.2 and update changelog 2026-10-11 00:58:39 +02:00
Veronica Berglyd Olsen
8197edf722 Update French translation 2026-10-11 00:54:14 +02:00
Veronica Berglyd Olsen
d23795ef6c Fix first line indent after horizontal ruler (#3076) 2026-10-10 21:56:48 +02:00
Veronica Berglyd Olsen
bb400cde9f A horizontal ruler in the manuscript should reset the first line indent for the next paragraph (#3074) 2026-10-10 21:50:40 +02:00
Veronica Berglyd Olsen
d5fc3f5432 Add a commit policy check (#3056) 2026-10-04 16:12:32 +02:00
Veronica Berglyd Olsen
6fad351a7a Rename policy workflows 2026-10-04 16:09:11 +02:00
Veronica Berglyd Olsen
f0d1971977 Add a commit policy check 2026-10-04 16:05:23 +02:00
Veronica Berglyd Olsen
449ca153a2 Downgrade Remix Icons to 4.8 for license reasons (#3054) 2026-10-04 14:51:51 +02:00
Veronica Berglyd Olsen
961c09100c Add Python 3.15 test coverage 2026-10-04 14:48:55 +02:00
Veronica Berglyd Olsen
7aeadf74ce Downgrade Remix Icons to 4.8 for license reasons (#3052) 2026-10-04 14:46:25 +02:00
Veronica Berglyd Olsen
68e1ec0578 Fix control chars in docs issue (#3039) 2026-09-27 12:35:38 +02:00
Veronica Berglyd Olsen
3b48d79db3 Add test coverage 2026-09-27 12:32:58 +02:00
Veronica Berglyd Olsen
8a607d7e05 Block unsafe characters in text entry boundaries (#3038) 2026-09-27 12:25:54 +02:00
Veronica Berglyd Olsen
1bfac93a81 Make stripUnsafe a public function and use translate map 2026-09-27 12:12:24 +02:00
Veronica Berglyd Olsen
75eaaf6ff0 Post-release build fixes (#3035) 2026-09-26 20:40:45 +02:00
Veronica Berglyd Olsen
4e3ed839c7 Revert the colour prompt checker as it doesn't work on Window 2026-09-26 20:14:55 +02:00
Veronica Berglyd Olsen
956f586d60 Fix the build meta file test 2026-09-26 19:45:32 +02:00
Veronica Berglyd Olsen
327336dcde Rename the launchpad release script 2026-09-26 19:40:53 +02:00
Veronica Berglyd Olsen
dffc46c083 Fix windows build 2026-09-26 19:29:09 +02:00
Veronica Berglyd Olsen
cb87b9eeb6 Fix pip script 2026-09-26 19:28:58 +02:00
Veronica Berglyd Olsen
99b0f48d92 Release 26.2.1 (#3033) 2026-09-26 19:17:08 +02:00
Veronica Berglyd Olsen
406f3835b1 Bump version and update changelog 2026-09-26 19:13:30 +02:00
Veronica Berglyd Olsen
420f123697 Update translations (#3032) 2026-09-26 18:24:01 +02:00
Veronica Berglyd Olsen
7a10ff55a9 Update latest translation work 2026-09-26 18:19:21 +02:00
Veronica Berglyd Olsen
b40ca7446e Generate a credits report when updating language files 2026-09-26 18:00:28 +02:00
Veronica Berglyd Olsen
d1c1ae22b0 Add a developer env file 2026-09-26 17:59:30 +02:00
Veronica Berglyd Olsen
8d8ff08e3a Improve pkgutils (#3031) 2026-09-26 16:37:28 +02:00
Veronica Berglyd Olsen
ce5d1db1d2 Improve colour detection in main app too 2026-09-26 16:32:20 +02:00
Veronica Berglyd Olsen
2ea513c4d6 Add colouring to all pkgutils 2026-09-26 16:31:20 +02:00
Veronica Berglyd Olsen
a9bde454c1 Add validation of translation files and add colour output 2026-09-26 16:13:01 +02:00
Veronica Berglyd Olsen
3e6d7ea615 Fix hovercard icons (#3030) 2026-09-26 15:15:54 +02:00
Veronica Berglyd Olsen
c78a0faf69 Allow optional icon theme files to not pass the tests since the icons files are not checked in 2026-09-26 15:07:34 +02:00
Veronica Berglyd Olsen
be29d2a97c Fix hovercard icons not updating on theme change (#3024) 2026-09-26 14:57:32 +02:00
Veronica Berglyd Olsen
360ce67af8 Drop the lock threads job on release (#3015) 2026-09-09 20:53:51 +02:00
Veronica Berglyd Olsen
a1a5e75143 Drop the lock threads job on release 2026-09-09 20:44:12 +02:00
Veronica Berglyd Olsen
8d594ab62d Build meta (#3009) 2026-09-05 20:24:12 +02:00
Veronica Berglyd Olsen
334cb94c08 Fix tzdata on Windows 2026-09-05 20:21:02 +02:00
Veronica Berglyd Olsen
485a0ea202 Fix tests, and add a migration notice for Launcpad users 2026-09-05 20:12:27 +02:00
Veronica Berglyd Olsen
367d28c909 Record build info during builds 2026-09-05 20:04:47 +02:00
Veronica Berglyd Olsen
b9d9436a94 Parse the meta.toml file in Config and add to error report 2026-09-05 19:54:24 +02:00
Veronica Berglyd Olsen
ae0f629fa7 Add a build meta data file 2026-09-05 19:30:43 +02:00
Veronica Berglyd Olsen
c6669df375 Workflows (#3008) 2026-09-05 19:08:06 +02:00
Veronica Berglyd Olsen
1f2584e093 Rename workflows 2026-09-05 19:05:19 +02:00
Veronica Berglyd Olsen
eddb935907 Bump coverage version 2026-09-05 19:01:58 +02:00
Veronica Berglyd Olsen
fb123d2080 Switch lock threads to use the saga soft bot 2026-09-05 18:12:42 +02:00
Veronica Berglyd Olsen
c8421b7870 Post release updates (#3006) 2026-09-05 17:53:46 +02:00
Veronica Berglyd Olsen
dd907871c5 Add code owners 2026-09-05 17:50:08 +02:00
Veronica Berglyd Olsen
07a72c3eae Update to use a bot account 2026-09-05 17:43:36 +02:00
Veronica Berglyd Olsen
1ab517f8a0 Reformat workflow 2026-09-05 17:03:26 +02:00
Veronica Berglyd Olsen
8b4fcd14d8 Add auto-approve for owner's PRs 2026-09-05 17:00:23 +02:00
Veronica Berglyd Olsen
ec77153a75 Reword the attribution in the readme 2026-09-05 16:25:11 +02:00
Veronica Berglyd Olsen
2a34485411 Remove local debian build 2026-09-05 14:44:22 +02:00
Veronica Berglyd Olsen
eae88d1cee Release 2026.2 (#3004) 2026-09-05 14:19:48 +02:00
Veronica Berglyd Olsen
4b40f3af0d Rename coverage report jobs 2026-09-05 13:57:52 +02:00
Veronica Berglyd Olsen
34011b5d01 Add missing note in changelog 2026-09-05 13:51:19 +02:00
Veronica Berglyd Olsen
575c226a98 Update changelog 2026-09-05 13:47:48 +02:00
Veronica Berglyd Olsen
6b52d32ac1 Bump version number to 26.2 2026-09-05 13:34:37 +02:00
Veronica Berglyd Olsen
b268277d9b Update i18n (#2968) 2026-09-05 13:17:02 +02:00
Veronica Berglyd Olsen
65ebdcdd8a Update translations 2026-09-05 13:13:29 +02:00
Veronica Berglyd Olsen
93122e6032 Fix theme colors (#3003) 2026-09-05 12:15:51 +02:00
HeyMyian
25616ee8ce Fix theme colors 2026-09-05 01:25:48 +02:00
Veronica Berglyd Olsen
c5596ba0ad Merge branch 'release' into update-i18n 2026-09-04 22:54:29 +02:00
Veronica Berglyd Olsen
9af579f9fd Revert coverage report changes (#3001) 2026-09-04 22:42:31 +02:00
Veronica Berglyd Olsen
a7c4f92e9a Add a coverage summary on the workflow for fork PRs 2026-09-04 22:37:55 +02:00
Veronica Berglyd Olsen
0de9223c4f Move the coverage report back 2026-09-04 22:34:55 +02:00
Veronica Berglyd Olsen
0d1c73d1df Change default font (#2998) 2026-09-04 22:29:25 +02:00
Veronica Berglyd Olsen
f626cf0837 Remove outdated info from the PR template 2026-09-04 22:20:49 +02:00
Veronica Berglyd Olsen
b244b611b3 Update PR template 2026-09-04 22:03:48 +02:00
Veronica Berglyd Olsen
25f416b1fa Fix the coverage reporting for forks 2026-09-04 21:42:47 +02:00
Veronica Berglyd Olsen
67518be5ca Fix tests 2026-09-04 21:28:30 +02:00
Veronica Berglyd Olsen
1e91472b12 Fix windows workflow not failing on test failure 2026-09-04 21:18:05 +02:00
HeyMyian
176a54d5be Update comment 2026-09-04 19:38:35 +02:00
HeyMyian
004a059504 Line height default to 1.15 2026-09-04 00:32:52 +02:00
HeyMyian
90c5062fc7 Windows default from Arial to Segoe UI 2026-09-04 00:32:37 +02:00
Veronica Berglyd Olsen
fbba6c320b Update workflows (#2995) 2026-08-31 19:52:50 +02:00
Veronica Berglyd Olsen
bba37676ad Consistent test job names 2026-08-31 19:49:10 +02:00
Veronica Berglyd Olsen
ef8c8d83b0 Update badge, fix test, update action versions 2026-08-31 19:42:50 +02:00
Veronica Berglyd Olsen
7c348b899a Use shorter names for build jobs 2026-08-31 19:29:54 +02:00
Veronica Berglyd Olsen
4687e8ba9d Combine to one test workflow 2026-08-31 19:29:06 +02:00
Veronica Berglyd Olsen
3eca53d1dc Add coverage report 2026-08-31 19:12:18 +02:00
Veronica Berglyd Olsen
b142cd7fd4 Remove codecov 2026-08-31 18:56:26 +02:00
Veronica Berglyd Olsen
f4d7795f1c Update readme with Cloudsmith attribution 2026-08-31 18:29:28 +02:00
Veronica Berglyd Olsen
386796a413 Update license-files, build dependencies, and lockfile 2026-08-31 17:49:08 +02:00
Veronica Berglyd Olsen
ed840c0c16 Inject license into DEBIAN/control 2026-08-31 17:15:27 +02:00
Veronica Berglyd Olsen
4aa23a9603 Update all references to old repo path (#2994) 2026-08-31 01:01:16 +02:00
Veronica Berglyd Olsen
00ba707114 Update all references to old repo path 2026-08-31 00:57:53 +02:00
Veronica Berglyd Olsen
2e5cb614a1 Add id token permission (#2992) 2026-08-31 00:11:23 +02:00
Veronica Berglyd Olsen
acc0912509 Remove the at symbol from account slug again 2026-08-30 23:42:21 +02:00
Veronica Berglyd Olsen
4d68042c07 Test on latest fedora instead of buggy rawhide 2026-08-30 23:36:14 +02:00
Veronica Berglyd Olsen
8b99e9fd89 Use string not number 2026-08-30 23:34:19 +02:00
Veronica Berglyd Olsen
45c4aa03fb Add verify-auth flag 2026-08-30 23:27:41 +02:00
Veronica Berglyd Olsen
54173d51ff Make the build number an actual number 2026-08-30 20:58:44 +02:00
Veronica Berglyd Olsen
82f56e95e4 Add id token permission 2026-08-30 20:51:01 +02:00
Veronica Berglyd Olsen
367d58a632 Refactor debian build (#2990) 2026-08-30 20:44:47 +02:00
Veronica Berglyd Olsen
915f72a753 Use OIDC for publishing packages 2026-08-30 20:42:02 +02:00
Veronica Berglyd Olsen
7d707b7471 Relabel some build jobs 2026-08-30 20:14:26 +02:00
Veronica Berglyd Olsen
faaf56c93b Fix Mint build flag 2026-08-30 20:02:28 +02:00
Veronica Berglyd Olsen
37e6cd12ff Add Linux Mint 22 2026-08-30 19:54:09 +02:00
Veronica Berglyd Olsen
648e687c9f Use manual select rather than matrix build 2026-08-30 19:50:16 +02:00
Veronica Berglyd Olsen
4bdd69b35e Add build for Mint 22 2026-08-30 19:49:50 +02:00
Veronica Berglyd Olsen
3f22fcabc8 Complete Debian packaging tooling (#2988) 2026-08-29 21:37:29 +02:00
Veronica Berglyd Olsen
cfed3acd66 Fail on EOL build 2026-08-29 21:33:52 +02:00
Veronica Berglyd Olsen
e2cff94a62 Update target repositories 2026-08-29 20:52:04 +02:00
Veronica Berglyd Olsen
82d0661e37 Add suffix to packages 2026-08-29 20:40:52 +02:00
Veronica Berglyd Olsen
5504d40c8f Fix publish step package install failure 2026-08-29 19:52:56 +02:00
Veronica Berglyd Olsen
60fd1aa17b Shorten the checkbox message 2026-08-29 19:28:54 +02:00
Veronica Berglyd Olsen
4d6ff675d0 Update publish workflow 2026-08-29 19:27:49 +02:00
Veronica Berglyd Olsen
014ae4eb03 Let pkgutils determine what dependencies to install on build 2026-08-29 19:26:03 +02:00
Veronica Berglyd Olsen
72c395c25b Make it possible to run the builds without publishing 2026-08-29 19:20:36 +02:00
Veronica Berglyd Olsen
abd85d2b53 Drop the prebuilt wheel approach 2026-08-29 19:14:32 +02:00
Veronica Berglyd Olsen
39fe6b59a1 Update Debian packaging (#2986) 2026-08-29 18:43:35 +02:00
Veronica Berglyd Olsen
d11e07c812 Fix the package versions for deb packages 2026-08-29 18:39:23 +02:00
Veronica Berglyd Olsen
e6e57c8062 Add workflows 2026-08-29 18:18:03 +02:00
Veronica Berglyd Olsen
4f47ba19d6 Update deb package build commands 2026-08-29 18:00:29 +02:00
Veronica Berglyd Olsen
e035e85018 Bump project version (#2984) 2026-08-29 14:21:13 +02:00
Veronica Berglyd Olsen
42e8b2dd0c Update tests 2026-08-29 14:12:03 +02:00
Veronica Berglyd Olsen
b60789c85e Bump the project format version 2026-08-29 13:56:47 +02:00
Veronica Berglyd Olsen
cb21f5acbf Fix repeated shortcodes in pasted rich text (#2980) 2026-08-23 22:39:15 +02:00
Veronica Berglyd Olsen
566e84bf25 Add shortcut for past as plain text 2026-08-23 22:34:30 +02:00
Veronica Berglyd Olsen
ae487b925e Add test coverage 2026-08-23 22:17:55 +02:00
Veronica Berglyd Olsen
d9631099cf Fix split formatting when paste from rich text (#2978) 2026-08-23 22:16:22 +02:00
Veronica Berglyd Olsen
48b58b1f30 Fix native font picker on macOS does not change the selected font (#2970) 2026-08-15 20:57:43 +02:00
Konstantin Kostov
77b7b28403 feat: allow the native font picker on macOS to change the selected font 2026-08-15 18:08:17 +02:00
Veronica Berglyd Olsen
9640a57dc8 Fix tab widget border (#2971) 2026-08-15 15:17:36 +02:00
Veronica Berglyd Olsen
9b49734e53 Fix uncovered line 2026-08-15 15:09:56 +02:00
Veronica Berglyd Olsen
739146e0fb Fix border issue for the tab widgets 2026-08-15 15:08:08 +02:00
Veronica Berglyd Olsen
34451a62e8 Merge branch 'release' into update-i18n 2026-08-09 20:37:41 +02:00
Veronica Berglyd Olsen
89be8c9d9c Reformat translation files (#2969) 2026-08-09 20:33:57 +02:00
Veronica Berglyd Olsen
e6dcf2ef82 Update other translation files with additional translations and remove unverified strings 2026-08-09 20:26:16 +02:00
Veronica Berglyd Olsen
a16581f608 Update complete Norwegian, US English and Japanese 2026-08-09 20:25:47 +02:00
Veronica Berglyd Olsen
f9e6df8f92 Update all translation file meta data 2026-08-09 20:19:28 +02:00
Veronica Berglyd Olsen
4beb064fe9 Fix pre-release version number for flatpak (#2965) 2026-08-09 15:34:12 +02:00
Veronica Berglyd Olsen
2d6dce6351 Fix pre-release version number for flatpak 2026-08-09 15:29:50 +02:00
Veronica Berglyd Olsen
d5e0ba8013 Fix version number format (#2963) 2026-08-09 14:56:57 +02:00
Veronica Berglyd Olsen
320ce4a62d Fix version number format 2026-08-09 14:53:31 +02:00
Veronica Berglyd Olsen
0edba02ead Release 2026.2 RC 1 (#2962) 2026-08-09 14:44:34 +02:00
Veronica Berglyd Olsen
0a19bcbd06 Update changelog 2026-08-09 14:41:10 +02:00
Veronica Berglyd Olsen
38cdcc5379 Update translations file 2026-08-09 14:30:47 +02:00
Veronica Berglyd Olsen
1ea593b2a3 Bump version to 26.2 RC 1 2026-08-09 14:29:27 +02:00
Veronica Berglyd Olsen
e218943c42 Improve single quote dialogue regex (#2956) 2026-08-05 21:03:51 +02:00
Veronica Berglyd Olsen
9d97c93ece Keep the most complex tests and make them run for double too 2026-08-05 18:14:37 +02:00
Veronica Berglyd Olsen
c5c6897ee3 Update tests 2026-08-05 18:05:32 +02:00
Veronica Berglyd Olsen
2fc9a59695 Try a different pattern for single quoted dialogue 2026-08-05 18:05:06 +02:00
Veronica Berglyd Olsen
9a9a05cd7e Fix drag and drop and new project index (#2954) 2026-08-04 18:04:19 +02:00
Veronica Berglyd Olsen
dba2f9485d Update tests 2026-08-04 17:52:10 +02:00
Veronica Berglyd Olsen
9ce3662681 Build the index when creating a fresh project (#2952) 2026-08-04 17:48:45 +02:00
Veronica Berglyd Olsen
a35258a133 Remove redundant feature in novel model 2026-08-04 17:48:19 +02:00
Veronica Berglyd Olsen
ae47aaeacd Fix drag and drop onto another item in the project tree (#2953) 2026-08-04 17:29:51 +02:00
Veronica Berglyd Olsen
dc4e96ebf2 Remove broken link in dictionary docs (#2951) 2026-08-03 19:33:17 +02:00
Veronica Berglyd Olsen
392c3ea07c Remove broken link in dictionary docs 2026-08-03 19:28:41 +02:00
Veronica Berglyd Olsen
5e5cf93699 Release 26.2 Beta 2 (#2947) 2026-08-02 15:37:58 +02:00
Veronica Berglyd Olsen
796148f410 Update the changelog 2026-08-02 15:20:06 +02:00
Veronica Berglyd Olsen
990c5f497c Bump the breaking change version for the project folder structure 2026-08-02 02:10:56 +02:00
Veronica Berglyd Olsen
ee739884e4 Bump version to 26.2 beta 2 2026-08-02 02:06:42 +02:00
Veronica Berglyd Olsen
31d97bb939 Fix minor theme issues (#2946) 2026-08-02 00:36:03 +02:00
Veronica Berglyd Olsen
4a7c06e6f0 Fix incorrect theme colours for active/inactive icons in project tree context menu (#2941) 2026-08-02 00:28:26 +02:00
Veronica Berglyd Olsen
84a79686d4 Remove placeholder text for Manuscript preview (#2942) 2026-08-02 00:27:00 +02:00
Veronica Berglyd Olsen
9b3bb24cda Document format update (#2945) 2026-08-02 00:23:12 +02:00
Veronica Berglyd Olsen
1cfe00697a Add better sanitation of control characters in user entered strings 2026-08-02 00:13:22 +02:00
Veronica Berglyd Olsen
a57910bda7 Convert the sample project 2026-08-01 23:15:38 +02:00
Veronica Berglyd Olsen
bd04109f55 Harden the document converter against possible failure scenarios 2026-08-01 23:14:20 +02:00
Veronica Berglyd Olsen
11906bab53 Ask the user before upgrading documents 2026-08-01 22:59:03 +02:00
Veronica Berglyd Olsen
e51bb95fa6 Update outdated test 2026-08-01 22:03:29 +02:00
Veronica Berglyd Olsen
f63e429c2a Update other tests 2026-08-01 21:55:45 +02:00
Veronica Berglyd Olsen
2b0da9beb6 Update storage class and tests 2026-08-01 21:37:55 +02:00
Veronica Berglyd Olsen
8e7b8ae078 Fix minor issues in the document class and update tests 2026-08-01 21:29:27 +02:00
Veronica Berglyd Olsen
bc568a69fd Rewrite the document class to expect markdown-like files with toml headers 2026-08-01 20:12:47 +02:00
Veronica Berglyd Olsen
163e8a75dc Refactor project autosave (#2944) 2026-08-01 19:25:29 +02:00
Veronica Berglyd Olsen
50ec9b42ed Extend the toml parser to allow one level data from/to string 2026-08-01 18:53:08 +02:00
Veronica Berglyd Olsen
98b9aaab28 Move config and toml format parsers to their own formats modules 2026-08-01 18:08:40 +02:00
Veronica Berglyd Olsen
f8cd1d0d92 Theme updates (#2943) 2026-08-01 18:03:52 +02:00
Veronica Berglyd Olsen
ee4555b3c6 Skip the full file hash on document save if it isn't necessary (#2929) 2026-08-01 17:35:30 +02:00
HeyMyian
e37801fe6d Forgot activeBase 2026-08-01 17:33:04 +02:00
HeyMyian
5ba6a02113 Update credits 2026-08-01 17:32:53 +02:00
Veronica Berglyd Olsen
7e0428112a Remove the double replace in editor getText and use translate instead 2026-08-01 17:02:40 +02:00
Veronica Berglyd Olsen
058d51e80e Drop the word count step in editor saveText (#2928) 2026-08-01 16:52:48 +02:00
Veronica Berglyd Olsen
87fdf9acca Move upgrade check back before error handling 2026-08-01 16:30:42 +02:00
HeyMyian
4d3fa458eb New themes 2026-08-01 16:23:58 +02:00
HeyMyian
9aa6f2d36b Update new theme colours 2026-08-01 16:23:46 +02:00
Veronica Berglyd Olsen
46eeeb107e Fix the revision counter logic and update tests 2026-08-01 16:09:23 +02:00
Veronica Berglyd Olsen
a1a63d474c Update tests 2026-08-01 15:43:52 +02:00
Veronica Berglyd Olsen
af15669fa6 Add index revision instead of an index broken flag and no longer auto save the index 2026-08-01 15:34:59 +02:00
Veronica Berglyd Olsen
67cebd9ca6 Run the Python GC on a timer (#2940) 2026-08-01 13:18:32 +02:00
Veronica Berglyd Olsen
4a20de77f9 Allow passing an argument to the crash hunt script 2026-08-01 12:58:21 +02:00
Veronica Berglyd Olsen
fee724f2d9 Add debug info to the --meminfo flag 2026-08-01 00:52:15 +02:00
Veronica Berglyd Olsen
0044a2f731 Run the Python GC on a timer 2026-08-01 00:51:58 +02:00
Veronica Berglyd Olsen
e700176924 Fix document block search (#2939) 2026-07-31 23:29:37 +02:00
Veronica Berglyd Olsen
b2820e908f Fix test coverage 2026-07-31 23:19:27 +02:00
Veronica Berglyd Olsen
d3fc1a6582 Remove binary search findBlockByNumber in _skipToParagraph 2026-07-31 23:04:17 +02:00
Veronica Berglyd Olsen
68a376f3ae Remove binary search findBlockByNumber in the loop in _dispatchTextCheck 2026-07-31 23:01:06 +02:00
Veronica Berglyd Olsen
74b1640214 Remove binary search findBlock and findBlockByNumber in _selectedBlocks 2026-07-31 22:32:26 +02:00
Veronica Berglyd Olsen
62b80c229b Remove binary search findBlockByNumber in rehighlightByType 2026-07-31 22:28:53 +02:00
Veronica Berglyd Olsen
eb4dc9e66c Remove binary search findBlockByNumber in iterBlockByType 2026-07-31 22:23:23 +02:00
Veronica Berglyd Olsen
0926d6fa37 Fix various concurrency issues (#2938) 2026-07-31 18:51:16 +02:00
Veronica Berglyd Olsen
62901ae91b Fix API retriever bug in the version info widget (#2926) 2026-07-31 18:43:52 +02:00
Veronica Berglyd Olsen
e78c894fb8 Fix test coverage for NTabBar that was now missed 2026-07-31 18:41:55 +02:00
Veronica Berglyd Olsen
f6e2051355 Post info on the status bar when the theme changes (#2886) 2026-07-31 18:22:57 +02:00
Veronica Berglyd Olsen
24ca9a3a04 Remove the processEvents call from the status message on the status bar 2026-07-31 18:15:23 +02:00
Veronica Berglyd Olsen
f54ae5ce15 Fix project search reentrancy (#2937) 2026-07-31 18:03:48 +02:00
Veronica Berglyd Olsen
a6903612e4 Skip flaky uncovered branch 2026-07-31 18:00:35 +02:00
Veronica Berglyd Olsen
3df616ef02 Less comments 2026-07-31 17:56:10 +02:00
Veronica Berglyd Olsen
11f45a465c Add regression test 2026-07-31 17:53:25 +02:00
Veronica Berglyd Olsen
8db7b1561d Fix project search re-entrancy issue (#2924) 2026-07-31 17:48:51 +02:00
Veronica Berglyd Olsen
fc5c079118 Update linting (#2921) 2026-07-30 22:55:12 +02:00
Veronica Berglyd Olsen
712c660aee Update linting 2026-07-30 22:52:04 +02:00
Veronica Berglyd Olsen
b01f5d473a Writing goals with character count (#2919) 2026-07-30 22:12:58 +02:00
Veronica Berglyd Olsen
7eb105c5ed Update tests 2026-07-30 22:01:56 +02:00
Veronica Berglyd Olsen
0d7d172aae Add some missing plumbing 2026-07-30 22:01:36 +02:00
Veronica Berglyd Olsen
233ef00989 Connect the toggle switch for character project goal 2026-07-30 21:36:07 +02:00
Veronica Berglyd Olsen
10ffb371dc Rename the project target variables 2026-07-30 21:14:48 +02:00
Veronica Berglyd Olsen
d37cbf4545 Theme followup (#2916) 2026-07-30 21:08:23 +02:00
Veronica Berglyd Olsen
9153388c06 Fix re-entrancy bug (#2918) 2026-07-30 20:58:30 +02:00
Veronica Berglyd Olsen
7a89dc7fef Remove other redundant processEvents calls 2026-07-30 20:52:23 +02:00
Veronica Berglyd Olsen
2391fce076 Add re-entrancy guard in manuscript 2026-07-30 20:08:17 +02:00
Veronica Berglyd Olsen
3a67535206 Fix the drag and drop crash 2026-07-30 19:50:00 +02:00
Veronica Berglyd Olsen
2f94e63381 Adjust theme colours 2026-07-30 01:09:58 +02:00
Veronica Berglyd Olsen
bf2217e0b0 Update docs 2026-07-30 00:24:40 +02:00
Veronica Berglyd Olsen
c31f3defaa Tab widget colour and tool buttons (#2915) 2026-07-30 00:15:20 +02:00
Veronica Berglyd Olsen
f3fc6ae757 Update test coverage 2026-07-30 00:06:16 +02:00
Veronica Berglyd Olsen
daaeba1bbb Clean up flat icon buttons and toggle 2026-07-30 00:01:03 +02:00
Veronica Berglyd Olsen
bd27f55d32 Tweak the icon buttons 2026-07-29 22:43:40 +02:00
Veronica Berglyd Olsen
c1913ffde2 Update colour usage in the code 2026-07-29 20:52:58 +02:00
Veronica Berglyd Olsen
060ee9679a Update the GUI theme keys in all themes 2026-07-29 20:43:58 +02:00
Veronica Berglyd Olsen
3115070aea Missed accent text (#2912) 2026-07-27 00:23:15 +02:00
Veronica Berglyd Olsen
aea9eba50b Fix test 2026-07-27 00:18:56 +02:00
Veronica Berglyd Olsen
1da0265a7c Missed an accent text candidate in the search panel 2026-07-27 00:17:33 +02:00
Veronica Berglyd Olsen
186cb5e81b Add an accent text colour (#2911) 2026-07-27 00:02:54 +02:00
Veronica Berglyd Olsen
20e42186fb Add accentText to reset theme function 2026-07-26 23:59:50 +02:00
Veronica Berglyd Olsen
02f785dd97 Update docs 2026-07-26 23:56:05 +02:00
Veronica Berglyd Olsen
7e6b98cb73 Adjust some theme accentText colours to better shades 2026-07-26 23:52:53 +02:00
Veronica Berglyd Olsen
de5a9d18ba Call the new colour accentText instead 2026-07-26 23:38:18 +02:00
Veronica Berglyd Olsen
d9ea86441d Rename to accentText instead 2026-07-26 23:37:26 +02:00
Veronica Berglyd Olsen
0a037aaef6 Connect the new theme colour to the custom tab bar 2026-07-26 23:03:58 +02:00
Veronica Berglyd Olsen
c760eafd86 Add a selectedText theme colour under the GUI section 2026-07-26 23:03:30 +02:00
Veronica Berglyd Olsen
9f0c7ecb24 Pre release updates (#2909) 2026-07-26 19:50:01 +02:00
Veronica Berglyd Olsen
1fb952c8dc Update base translations file for 26.2 2026-07-26 19:45:24 +02:00
Veronica Berglyd Olsen
86b4bd65b8 Merge branch 'main' into pre-release 2026-07-26 19:44:25 +02:00
Veronica Berglyd Olsen
5270379632 Flatpak build follow-up (#2908) 2026-07-26 19:41:42 +02:00
Veronica Berglyd Olsen
380ccacddf The clean build command should also clear flatpak files 2026-07-26 19:19:30 +02:00
Veronica Berglyd Olsen
9e78e0f046 Cleanup of various non-code files (#2907) 2026-07-26 19:08:41 +02:00
Veronica Berglyd Olsen
8db4bd1e5f Clean up gitignore 2026-07-26 19:00:32 +02:00
Veronica Berglyd Olsen
ba64945d2d Clarify AI policy and scope 2026-07-26 18:45:21 +02:00
Veronica Berglyd Olsen
5fd4ce231f Drop the agents file since I don't plan to use Copilot review after all 2026-07-26 18:45:03 +02:00
Veronica Berglyd Olsen
654ba50e49 Add Flatpak (#2906) 2026-07-26 18:02:21 +02:00
Veronica Berglyd Olsen
dc074a07e4 Fix build version 2026-07-26 17:56:31 +02:00
Veronica Berglyd Olsen
38eb05efb7 Fix privilege issue in workflow 2026-07-26 17:49:37 +02:00
Veronica Berglyd Olsen
1eba971031 Remove the runtime and pin the flatpak-pip-generator script 2026-07-26 17:42:11 +02:00
Veronica Berglyd Olsen
5fa696c18a Remove apt pyyaml from flatpak build 2026-07-26 17:27:24 +02:00
Veronica Berglyd Olsen
7b9a2d4b2e Fix flatpak build workflow 2026-07-26 17:23:26 +02:00
Veronica Berglyd Olsen
bad6766532 Fix non-free icons build 2026-07-26 17:12:50 +02:00
Veronica Berglyd Olsen
3a42cd73cb Make pyyaml an on-demand import 2026-07-26 17:03:00 +02:00
Veronica Berglyd Olsen
36e19acf88 Add command to generate flathub files 2026-07-26 16:55:12 +02:00
Veronica Berglyd Olsen
c458dcc620 Make the welcome dialog request folder rather than file 2026-07-26 16:31:06 +02:00
Veronica Berglyd Olsen
c24bd47163 Set flatpak versions in the pyproject file instead 2026-07-26 16:03:34 +02:00
Veronica Berglyd Olsen
9e1b4ba1f4 Don't pin dependencies 2026-07-26 15:53:48 +02:00
Veronica Berglyd Olsen
bce93a0856 Update license handling and app access 2026-07-26 15:30:59 +02:00
Veronica Berglyd Olsen
ed6666e65a Add flags for free/non-free icon packs for build workflows 2026-07-26 15:19:06 +02:00
Veronica Berglyd Olsen
e3b9f7cf24 Use one canonical appdata.xml 2026-07-26 15:01:56 +02:00
Veronica Berglyd Olsen
b0b32b43d8 Update build files 2026-07-26 14:46:55 +02:00
Veronica Berglyd Olsen
347d7f2593 Update workflows and python formatting 2026-07-26 14:12:48 +02:00
Veronica Berglyd Olsen
e673f36288 Add flatpak build 2026-07-26 13:52:46 +02:00
Veronica Berglyd Olsen
933c53c87b Merge branch 'main' into flatpak 2026-07-26 13:46:04 +02:00
Veronica Berglyd Olsen
c99686d727 Release 26.2b1 (#2902) 2026-07-26 11:06:55 +02:00
Veronica Berglyd Olsen
a1410302ce Merge main into release (#2904) 2026-07-26 02:15:13 +02:00
Veronica Berglyd Olsen
8941488682 Remove staging branch (#2903) 2026-07-26 01:20:20 +02:00
Veronica Berglyd Olsen
ec8e0a7feb Revert "Add staging branch" 2026-07-26 00:17:16 +01:00
Veronica Berglyd Olsen
cb0d2e59b8 Update changelog 2026-07-25 22:02:11 +02:00
Veronica Berglyd Olsen
2166fa0396 Bump version to 26.2b1 2026-07-25 22:01:58 +02:00
Veronica Berglyd Olsen
bb8146e9c3 Add staging branch (#2901) 2026-07-25 20:25:41 +02:00
Veronica Berglyd Olsen
8698bf1d45 Merge 26.1.2 into main (#2900) 2026-07-25 20:20:57 +02:00
Veronica Berglyd Olsen
33f0fb9413 Update readme and contributing guide 2026-07-25 20:20:21 +02:00
Veronica Berglyd Olsen
f05e726ca4 Add support for a staging branch in the workflow files 2026-07-25 20:20:05 +02:00
Veronica Berglyd Olsen
8791ca5800 Fix issues after the merge 2026-07-25 19:42:59 +02:00
Veronica Berglyd Olsen
8d6c8d9f61 Merge branch 'main' into merge-26.1.2 2026-07-25 19:37:11 +02:00
Veronica Berglyd Olsen
6b0f73d41a Fix typo in changelog 2026-07-25 19:34:29 +02:00
Veronica Berglyd Olsen
bc7befd4a8 Release 26.1.2 (#2898) 2026-07-25 19:22:31 +02:00
Veronica Berglyd Olsen
fc865fd5bc Debian build improvements and 26.2 Alpha 2 (#2896) 2026-07-25 19:15:40 +02:00
Veronica Berglyd Olsen
e4a9446e2b Update changelog 2026-07-25 19:15:15 +02:00
Veronica Berglyd Olsen
8abcd226e5 Bump version 2026-07-25 19:08:53 +02:00
Veronica Berglyd Olsen
cd26a19c1a Update Japanese and Russian translations (#2897) 2026-07-25 19:07:13 +02:00
Veronica Berglyd Olsen
2cda8efec0 Update Japanese and Russian translations 2026-07-25 19:00:20 +02:00
Veronica Berglyd Olsen
72e0250317 Make sure tests can run reliably on bare sandboxes 2026-07-25 18:24:09 +02:00
Veronica Berglyd Olsen
42c66426e6 Bump version to 26.2 alpha 2 2026-07-25 18:23:43 +02:00
Veronica Berglyd Olsen
e77f32d2f6 Make sure tests can run from source build 2026-07-25 17:59:29 +02:00
Veronica Berglyd Olsen
80f398c39e Include tests in debian source build 2026-07-25 17:45:33 +02:00
Veronica Berglyd Olsen
5570ede2a3 Bump the uv lock file (#2895) 2026-07-25 03:28:25 +02:00
Veronica Berglyd Olsen
06122aa295 Bump the uv lock file 2026-07-25 03:24:17 +02:00
Veronica Berglyd Olsen
e7123b4af3 Maybe the entire pyobjc is not necessary (#2894) 2026-07-25 03:10:46 +02:00
Konstantin Kostov
a7be4266bc feat: maybe the entire pyobjc is not necessary 2026-07-25 00:34:40 +02:00
Veronica Berglyd Olsen
d62adc4a97 Remove the redundant last project count read (#2892) 2026-07-24 03:05:49 +02:00
Veronica Berglyd Olsen
4b4db26721 The project target last count in the xml is no longer needed, so the read was removed, but write remains as useful meta data 2026-07-24 03:00:35 +02:00
Veronica Berglyd Olsen
ca752d6edb Change daily progress accounting (#2891) 2026-07-24 02:41:50 +02:00
Veronica Berglyd Olsen
8a6a224fda Fix refresh of writing goal when documents change status 2026-07-24 02:31:21 +02:00
Veronica Berglyd Olsen
be639522fe Make the session word count exact regardless of what documents are included or not based on items internal counts 2026-07-24 01:54:43 +02:00
Veronica Berglyd Olsen
184654c67f Customise tabwidget tabs (#2890) 2026-07-24 01:00:13 +02:00
Veronica Berglyd Olsen
3dabf07a60 Remove unnecessary tab order logic 2026-07-24 00:45:41 +02:00
Veronica Berglyd Olsen
8ec867c2d2 Add custom drawn tabs to the NTabWidget 2026-07-24 00:37:02 +02:00
Veronica Berglyd Olsen
75a8983c97 Allow excluding root folders from writing goals (#2889) 2026-07-23 18:35:32 +02:00
Veronica Berglyd Olsen
dac075f570 Update tests 2026-07-23 17:20:03 +02:00
Veronica Berglyd Olsen
0152590bda Add a reset button for daily progress 2026-07-23 17:11:28 +02:00
Veronica Berglyd Olsen
8e06ebbda0 Add more test coverage 2026-07-23 16:56:05 +02:00
Veronica Berglyd Olsen
ee85a19b53 Fix the current xml test 2026-07-23 16:34:42 +02:00
Veronica Berglyd Olsen
6a22bdf206 Update tests 2026-07-23 16:28:55 +02:00
Veronica Berglyd Olsen
7e0d0e91d6 Fix accounting of project target changes at runtime 2026-07-23 16:04:26 +02:00
Veronica Berglyd Olsen
0c71605e1b Try to solve keeping the word count progress correct on changes 2026-07-23 15:46:41 +02:00
Veronica Berglyd Olsen
5a5a0e3521 Add a list setting to select root folders to skip for writing goals 2026-07-23 15:04:29 +02:00
Veronica Berglyd Olsen
6fb18b5674 Move non-palette theme colours (#2888) 2026-07-22 21:43:28 +02:00
Veronica Berglyd Olsen
3188b9ed69 Update code, tests and docs 2026-07-22 21:38:55 +02:00
Veronica Berglyd Olsen
98591f74dd Move the new theme colours to the correct section 2026-07-22 21:38:41 +02:00
Veronica Berglyd Olsen
168a8fea72 Various theme fixes (#2887) 2026-07-22 21:04:10 +02:00
Veronica Berglyd Olsen
74c9aa5a2b Update test coverage 2026-07-22 21:01:04 +02:00
Veronica Berglyd Olsen
6c010665c1 Drop camelCasing entirely for icon colours 2026-07-22 20:51:01 +02:00
Veronica Berglyd Olsen
d69c497824 Always use base colour for text on top of the writing goal progress bar (#2884) 2026-07-22 20:42:28 +02:00
Veronica Berglyd Olsen
f6707a2488 Simplify the internal icon colour names 2026-07-22 20:35:26 +02:00
Veronica Berglyd Olsen
44cef5ec83 Fix camelCasing of colour name 2026-07-22 20:15:22 +02:00
Veronica Berglyd Olsen
1390f13600 Fix extra selection colours on theme change (#2886) 2026-07-22 20:14:35 +02:00
Veronica Berglyd Olsen
95b6b47802 Convert theme files to toml (#2885) 2026-07-22 19:03:13 +02:00
Veronica Berglyd Olsen
aab3531a42 Update theme reset and also harden against weird theme values 2026-07-22 19:00:14 +02:00
Veronica Berglyd Olsen
442264b3ab List the renamed keys in theme files 2026-07-22 18:44:04 +02:00
Veronica Berglyd Olsen
7fcc68e567 Update docs 2026-07-22 18:37:35 +02:00
Veronica Berglyd Olsen
09f7fdb8df Make some of the theme keys camelCase 2026-07-22 18:31:24 +02:00
Veronica Berglyd Olsen
71dd9410d8 Update tests 2026-07-22 18:20:51 +02:00
Veronica Berglyd Olsen
09af70d338 Update the theme class to parse toml instead of conf files 2026-07-22 18:18:15 +02:00
Veronica Berglyd Olsen
60444de60e Convert all theme files to toml format 2026-07-22 17:56:23 +02:00
Veronica Berglyd Olsen
c5d4d61108 Convert the config file to toml format (#2883) 2026-07-22 17:49:16 +02:00
Veronica Berglyd Olsen
3b60f6b063 Fix formatting 2026-07-22 17:42:13 +02:00
Veronica Berglyd Olsen
f9780f08c8 Clean up more docstrings 2026-07-22 17:40:55 +02:00
Veronica Berglyd Olsen
d2e58deec5 Update docstrings 2026-07-22 17:39:16 +02:00
Veronica Berglyd Olsen
4e61c3cba6 Update tests 2026-07-22 17:33:40 +02:00
Veronica Berglyd Olsen
aa26e2b2c8 Updates theme colors for toggle and searchmatch (#2882) 2026-07-22 17:30:41 +02:00
HeyMyian
56c7db6e87 Updates theme colors for toggle and searchmatch 2026-07-22 17:23:36 +02:00
Veronica Berglyd Olsen
50675b87a8 Move the config file code to the config source file 2026-07-22 17:11:33 +02:00
Veronica Berglyd Olsen
d5ee36b65e Refactor the toml parser 2026-07-22 17:08:24 +02:00
Veronica Berglyd Olsen
f53cee3ca4 Generalise reading and writing of config files 2026-07-22 17:01:20 +02:00
Veronica Berglyd Olsen
9a4048574c Rename the config getters 2026-07-22 16:39:25 +02:00
Veronica Berglyd Olsen
b9d427af3e Always write toml format now 2026-07-22 16:24:30 +02:00
Veronica Berglyd Olsen
3a70cfa8de Use camelCase for config keys 2026-07-22 16:17:30 +02:00
Veronica Berglyd Olsen
f761a5a6ba Add a toml file config wrapper 2026-07-22 15:52:28 +02:00
Veronica Berglyd Olsen
16c8ccb9da Force the tooltip palette (#2881) 2026-07-22 15:36:16 +02:00
Veronica Berglyd Olsen
f540f010c0 Add a comment for future reference 2026-07-22 15:33:24 +02:00
Veronica Berglyd Olsen
9b15f7269c Try forcing the tooltip palette 2026-07-22 15:26:26 +02:00
Veronica Berglyd Olsen
759b30adc5 Merge viewer folder into editor (#2880) 2026-07-22 15:24:18 +02:00
Veronica Berglyd Olsen
67a58e654f Also move tests 2026-07-22 15:17:40 +02:00
Veronica Berglyd Olsen
64dd79e8c2 Move all viewer files into the editor folder, and merge footer and header files 2026-07-22 15:17:30 +02:00
Veronica Berglyd Olsen
74c1686418 Source unicode cleanup (#2879) 2026-07-22 02:08:16 +02:00
Veronica Berglyd Olsen
c53ad98c0f Enable the ambiguous-unicode-character-string rule 2026-07-22 02:01:53 +02:00
Veronica Berglyd Olsen
c6b28e4385 Replace unicode values in text 2026-07-22 02:01:20 +02:00
Veronica Berglyd Olsen
9409c60613 Remove the endash from file headers 2026-07-22 01:40:54 +02:00
Veronica Berglyd Olsen
6b2223c697 Bug fixes: Daily progress, plain text copy, and paste with whitespace (#2878) 2026-07-22 01:37:23 +02:00
Veronica Berglyd Olsen
f6e4d27272 Fix leading whitespace stripped on paste 2026-07-22 01:32:03 +02:00
Veronica Berglyd Olsen
6d180adca9 Make sure text is coped as plain text from the editor 2026-07-22 01:23:15 +02:00
Veronica Berglyd Olsen
9356a2a5dc Reset daily writing progress when the previous progress was from another day 2026-07-22 01:14:24 +02:00
Veronica Berglyd Olsen
a2bdbf6d85 Fix styles issues (#2877) 2026-07-22 00:59:37 +02:00
Veronica Berglyd Olsen
d88be00fd3 Hard code the Fusion style 2026-07-22 00:50:52 +02:00
Veronica Berglyd Olsen
c294af97a8 Make a less customised tab widget with no stylesheet override 2026-07-22 00:49:22 +02:00
Veronica Berglyd Olsen
f7ad47e359 Move the search tool stylesheet so it doesn't affect other components 2026-07-22 00:05:47 +02:00
Veronica Berglyd Olsen
865919a3af Don't update the editor footer line count on every cursor move 2026-07-22 00:05:22 +02:00
Veronica Berglyd Olsen
9388b42001 Make the same fix to the About dialog 2026-07-21 23:43:52 +02:00
Veronica Berglyd Olsen
98d0ee0dc7 Fix the stylesheet issue on the Welcome dialog (#2871) 2026-07-21 23:38:28 +02:00
Veronica Berglyd Olsen
f09603f2bf Paste html into editor (#2876) 2026-07-21 23:01:58 +02:00
Veronica Berglyd Olsen
af131abe91 Fix markdown nesting order and tests 2026-07-21 22:53:25 +02:00
Veronica Berglyd Olsen
74ef69cee1 Fix test coverage 2026-07-21 22:25:36 +02:00
Veronica Berglyd Olsen
47c064046e Also process markdown mime 2026-07-21 04:20:20 +02:00
Veronica Berglyd Olsen
bcdc03dd72 Simplify this to run directly in the editor 2026-07-21 04:07:50 +02:00
Veronica Berglyd Olsen
b8e1f9c2ee Clean up the converter and add alignment support 2026-07-21 03:42:32 +02:00
Veronica Berglyd Olsen
2587956fcf Add highlighting and correct font to the paste dialog 2026-07-21 03:27:42 +02:00
Veronica Berglyd Olsen
55c7872ed8 Improve the paste dialog 2026-07-21 03:12:31 +02:00
Veronica Berglyd Olsen
283a5537de Add a converter class from QTextDocument to novelWriter format 2026-07-21 02:52:22 +02:00
Veronica Berglyd Olsen
d688e2dd0d Add a basic paste dialog that converts html to markdown for insertion into the editor 2026-07-21 02:24:12 +02:00
Veronica Berglyd Olsen
a5eee6b37b Apply line height on paste (#2875) 2026-07-21 01:56:05 +02:00
Veronica Berglyd Olsen
b6ade82dd0 Fix formatting 2026-07-21 01:52:42 +02:00
Veronica Berglyd Olsen
4a39a1e408 Add regression test 2026-07-21 01:27:01 +02:00
Veronica Berglyd Olsen
270932e40b Apply line height on paste (#2874) 2026-07-21 01:26:41 +02:00
Veronica Berglyd Olsen
caa6dcd053 Add project writing goals (#2870) 2026-07-20 22:40:33 +02:00
Veronica Berglyd Olsen
8fb67541c1 Fix update of colour progress bars when theme changes 2026-07-20 22:29:49 +02:00
Veronica Berglyd Olsen
7745a0738a Fix status bar goals on project close and open 2026-07-20 22:16:20 +02:00
Veronica Berglyd Olsen
3baa4dc1df Fix minor issues and improve the settings page 2026-07-20 22:04:05 +02:00
Veronica Berglyd Olsen
032fef1092 Add remaining test coverage 2026-07-20 21:36:37 +02:00
Veronica Berglyd Olsen
df3e51629b Add coverage ov new progress bar 2026-07-20 21:31:48 +02:00
Veronica Berglyd Olsen
fecf6233d9 Fix a bug in ProjectData and add test coverage 2026-07-20 21:23:00 +02:00
Veronica Berglyd Olsen
fe64931f67 The writing goal should never include notes 2026-07-20 21:00:50 +02:00
Veronica Berglyd Olsen
699a1f32f4 Clean up project settings and fix automatic daily goal calculation 2026-07-20 20:46:33 +02:00
Veronica Berglyd Olsen
a551c89f3f Update progress bar colouring 2026-07-20 19:57:18 +02:00
Veronica Berglyd Olsen
ff9948768a Update existing tests 2026-07-20 18:21:52 +02:00
Veronica Berglyd Olsen
baf34452fa Update handling of goals in the status bar 2026-07-20 17:30:27 +02:00
Veronica Berglyd Olsen
9219209032 Restructure project goal settings 2026-07-20 17:29:56 +02:00
Veronica Berglyd Olsen
4251069718 Merge branch 'main' into project-goals 2026-07-20 15:30:32 +02:00
Veronica Berglyd Olsen
f034557f17 Extend auto replace, post pr fix 2 (#2868) 2026-07-20 02:39:50 +02:00
Veronica Berglyd Olsen
f67d73de3e Find a better icon for the auto-replace toggle button 2026-07-20 02:36:00 +02:00
Veronica Berglyd Olsen
080dc05e16 Fix missing theme refresh on auto-replace toggles for search 2026-07-20 02:35:34 +02:00
Veronica Berglyd Olsen
0c66ba28ee Extend auto replace, post pr fixes (#2867) 2026-07-20 02:27:10 +02:00
Veronica Berglyd Olsen
f90370d01a Add checks in icon tool buttons for undefined icons 2026-07-20 02:22:39 +02:00
Veronica Berglyd Olsen
6c22acf0e5 Search auto-replace buttons should be disabled when auto-replace is off in Preferences 2026-07-20 01:46:06 +02:00
Veronica Berglyd Olsen
26a4af2a10 Extend auto replace usage (#2866) 2026-07-20 01:24:14 +02:00
Veronica Berglyd Olsen
32a441cda9 Update docs 2026-07-20 01:17:24 +02:00
Veronica Berglyd Olsen
70f2d8f3b4 Add auto-replace to the header format editor in manuscript settings 2026-07-20 01:15:21 +02:00
Veronica Berglyd Olsen
7530eea63a Add tests and fix a bug 2026-07-20 01:04:24 +02:00
Veronica Berglyd Olsen
d50bd6e777 Add a auto-replace class for line edits and connect to search panel and search widget 2026-07-20 00:42:25 +02:00
Veronica Berglyd Olsen
64c3c71e08 Add config settings for search auto-replace 2026-07-20 00:37:41 +02:00
Veronica Berglyd Olsen
6ed031238b Add an icon for search auto-replace 2026-07-20 00:34:37 +02:00
Veronica Berglyd Olsen
0ff2ebfd2a Move the auto-replace class to the text subfolder 2026-07-19 23:36:47 +02:00
Veronica Berglyd Olsen
41055f2292 Update linting and lockfile (#2865) 2026-07-19 18:16:55 +02:00
Veronica Berglyd Olsen
bbc30d6cb9 Ignore 2 new preview ruff rules 2026-07-19 18:09:46 +02:00
Veronica Berglyd Olsen
d138e59110 Bump ruff to 0.15.22 2026-07-19 17:59:49 +02:00
Veronica Berglyd Olsen
eae404e3e7 Editor performance, concurrency, and big document handling (#2861) 2026-07-19 12:45:42 +02:00
Veronica Berglyd Olsen
bb2a2869f1 Clean up mac CI file 2026-07-19 12:29:23 +02:00
Veronica Berglyd Olsen
abbc413671 Move the checker cache back into the editor 2026-07-19 12:27:09 +02:00
Veronica Berglyd Olsen
691f0492eb Temporary changes to MacOS tests 2026-07-19 01:22:49 +02:00
Veronica Berglyd Olsen
df8efe60de Various stability fixes and test improvements 2026-07-19 01:19:27 +02:00
Veronica Berglyd Olsen
10304adf34 Clean up selection model in novel view 2026-07-18 21:49:22 +02:00
Veronica Berglyd Olsen
588c69102a Disconnect project model before delete 2026-07-18 21:44:52 +02:00
Veronica Berglyd Olsen
ac3cef77ac Clean up some comments 2026-07-18 21:25:54 +02:00
Veronica Berglyd Olsen
d6c5b875d3 Make sure the global signal is disconnected properly also in tests 2026-07-18 21:01:19 +02:00
Veronica Berglyd Olsen
a43a0bf527 Update tests 2026-07-18 20:49:22 +02:00
Veronica Berglyd Olsen
4fdafdd86a Make sure the theme update also works in older Qt versions 2026-07-18 20:26:57 +02:00
Veronica Berglyd Olsen
171631c025 Update tests after rebasing to main 2026-07-18 20:01:33 +02:00
Veronica Berglyd Olsen
34b2f6dde3 Add disconnect for the styleHints signal 2026-07-18 19:49:32 +02:00
Veronica Berglyd Olsen
0f20459b69 Add tests 2026-07-18 19:49:31 +02:00
Veronica Berglyd Olsen
0c51e1c409 Update desktop theme handling 2026-07-18 19:49:31 +02:00
Veronica Berglyd Olsen
be85bf5fa3 Reintroduce big document handling for the editor 2026-07-18 19:49:30 +02:00
Veronica Berglyd Olsen
acd3bc97a0 Flaky test hardening and lambdas patching (#2864) 2026-07-18 19:48:59 +02:00
Veronica Berglyd Olsen
a65aa4d828 Update test coverage 2026-07-18 19:45:43 +02:00
Veronica Berglyd Olsen
9861ea7ddd Patch up all other potentially problematic lambdas 2026-07-18 18:09:08 +02:00
Veronica Berglyd Olsen
3c58988c34 Make the crash hunt script take a count as an argument 2026-07-18 17:55:47 +02:00
Veronica Berglyd Olsen
140a8da62d Add more usage of qtWeakLambda to stabilise the tests (and probably also at runtime) 2026-07-18 16:57:59 +02:00
Veronica Berglyd Olsen
102a4d7af6 Add a segfault stress test script for future use 2026-07-18 16:56:12 +02:00
Veronica Berglyd Olsen
ce4047261c Fix branch coverage 2026-07-18 15:53:43 +02:00
Veronica Berglyd Olsen
818106b0eb Merge branch 'main' into flaky-test-hardening 2026-07-18 15:45:56 +02:00
Veronica Berglyd Olsen
ddf5a0639b Move GUI operations out of buildTestProject 2026-07-18 15:45:25 +02:00
Veronica Berglyd Olsen
a2272fd4ed Fix word counter concurrency (#2863) 2026-07-18 15:21:46 +02:00
Veronica Berglyd Olsen
f834ccc653 Prune runnable docstrings 2026-07-18 14:52:05 +02:00
Veronica Berglyd Olsen
b7e8f8a052 Also add a dispatcher to the text checker 2026-07-18 14:47:01 +02:00
Veronica Berglyd Olsen
7d4f8a6f9f Add a dispatcher class for word counting 2026-07-18 14:39:59 +02:00
Veronica Berglyd Olsen
cc8badfee4 Allow the thread pool to finish after running a test 2026-07-18 14:15:57 +02:00
Veronica Berglyd Olsen
7406381094 Only run selection counter of anything is actually selected 2026-07-18 14:09:32 +02:00
Veronica Berglyd Olsen
85de937667 Make the background word counter single shot 2026-07-18 13:57:21 +02:00
Veronica Berglyd Olsen
1a8301380c Merge branch 'main' into fix-word-counter-concurrency 2026-07-18 13:35:52 +02:00
Veronica Berglyd Olsen
eea2c89a16 Add a spell check cache (#2862) 2026-07-18 13:35:00 +02:00
Veronica Berglyd Olsen
24c05e4d8f Fix concurrency issue in the background word counter 2026-07-17 22:38:58 +02:00
Veronica Berglyd Olsen
2f221b972c Reuse spell and format error values that haven't moved, when editing a text block 2026-07-17 21:51:48 +02:00
Veronica Berglyd Olsen
16b89699a0 Add some air in the checker function 2026-07-17 20:23:22 +02:00
Veronica Berglyd Olsen
424572375f Improve text check performance by caching selections (3-6x speed-up) 2026-07-17 20:12:22 +02:00
Veronica Berglyd Olsen
fb77d69128 Don't run the editor text checker when there are no checks enabled 2026-07-17 19:43:24 +02:00
Veronica Berglyd Olsen
794207f6e7 Fix Preferences refresh issues (#2860) 2026-07-17 16:39:20 +02:00
Veronica Berglyd Olsen
f11ff0726c Fix formatting 2026-07-17 16:36:28 +02:00
Veronica Berglyd Olsen
aeed9be8db Minimal fix for theme change in the outline 2026-07-17 16:36:00 +02:00
Veronica Berglyd Olsen
946897527e Update tests 2026-07-17 16:20:09 +02:00
Veronica Berglyd Olsen
21e924273d Bypass a couple more settings from editor re-init 2026-07-17 16:11:05 +02:00
Veronica Berglyd Olsen
532b863674 Separate viewport updates from editor and viewer init 2026-07-17 15:53:59 +02:00
Veronica Berglyd Olsen
133d945758 Make the autoreplace class callable, and update tests 2026-07-17 15:24:06 +02:00
Veronica Berglyd Olsen
92446d1b3c Make the autoreplace preferences dynamic so that a refresh is not needed 2026-07-17 15:16:04 +02:00
Veronica Berglyd Olsen
7643de9ce1 Add missing value that needs editor refresh 2026-07-17 15:05:49 +02:00
Veronica Berglyd Olsen
1dedae4f8f Add more missing calls for refresh on preferences change 2026-07-17 14:58:36 +02:00
Veronica Berglyd Olsen
050b9afd44 Add tag hover cards (#2859) 2026-07-17 02:02:49 +02:00
Veronica Berglyd Olsen
607098ffd7 Clean up some comments and unused new code 2026-07-17 01:59:48 +02:00
Veronica Berglyd Olsen
5f07c1ee48 Update tests 2026-07-17 01:45:50 +02:00
Veronica Berglyd Olsen
934ad9f298 Prune stale hover card cache entries 2026-07-17 01:38:32 +02:00
Veronica Berglyd Olsen
7244367cf7 Cap the hover card sizes 2026-07-17 01:19:37 +02:00
Veronica Berglyd Olsen
2801724f1c Clip very long texts 2026-07-17 01:14:42 +02:00
Veronica Berglyd Olsen
fe1c79e80d Fix wrong icon request on the sidebar 2026-07-17 00:58:53 +02:00
Veronica Berglyd Olsen
7b151e046f Handle multi-paragraph synopsis in the hover card 2026-07-17 00:25:59 +02:00
Veronica Berglyd Olsen
8c6e8be2e8 Add and update tests 2026-07-17 00:21:23 +02:00
Veronica Berglyd Olsen
e6dbb9dd7c Add hover card to viewer 2026-07-16 23:58:36 +02:00
Veronica Berglyd Olsen
81bcd8179d Fix theme not updating for the hover card 2026-07-16 23:48:22 +02:00
Veronica Berglyd Olsen
41a4922088 Clean up the code a bit 2026-07-16 23:41:00 +02:00
Veronica Berglyd Olsen
42d701730c Add edit and view buttons to the hover card 2026-07-16 23:38:15 +02:00
Veronica Berglyd Olsen
e39151c9d6 Clean up the working and look of the hover card 2026-07-16 23:11:21 +02:00
Veronica Berglyd Olsen
378c483748 Connect the hover card to the editor 2026-07-16 22:46:00 +02:00
Veronica Berglyd Olsen
ac04a61562 Add a hover card class 2026-07-16 22:45:45 +02:00
Veronica Berglyd Olsen
1abbc80c70 Populate the meta data info in the highlighter 2026-07-16 22:05:07 +02:00
Veronica Berglyd Olsen
c456ae2e4a Allow passing additional meta data to TextBlockData 2026-07-16 21:47:49 +02:00
Veronica Berglyd Olsen
78407ceb87 Cleanup of main GUI return key handling (#2858) 2026-07-16 21:37:49 +02:00
Veronica Berglyd Olsen
81f6062a44 Update tests 2026-07-16 20:00:10 +02:00
Veronica Berglyd Olsen
2ea7a49321 Simplify openSelectedItem in GuiMain 2026-07-16 19:49:33 +02:00
Veronica Berglyd Olsen
45e09c7dd3 Move the return key handling into the various tree view classes 2026-07-16 19:36:21 +02:00
Veronica Berglyd Olsen
668f6fe2f6 Editor completer rewrite (#2856) 2026-07-16 17:17:00 +02:00
Veronica Berglyd Olsen
0b1b3ad244 Fix tab focus change and completer popup issue 2026-07-16 17:13:59 +02:00
Veronica Berglyd Olsen
cef491f96c Fix MacOS issue 2026-07-16 17:05:10 +02:00
Veronica Berglyd Olsen
9bca71468f Update test coverage 2026-07-16 16:29:36 +02:00
Veronica Berglyd Olsen
c3ee1efb56 Give the completer menu the correct colours 2026-07-16 16:21:18 +02:00
Veronica Berglyd Olsen
7f28b16eae Move the completer key press handler into the completer itself 2026-07-16 16:06:55 +02:00
Veronica Berglyd Olsen
f5db958f53 Add tags cache to the TagsIndex class 2026-07-16 15:59:26 +02:00
Veronica Berglyd Olsen
cad40cd369 Remove the manual filters in the completer and instead use the QCompleter's native features 2026-07-16 15:31:28 +02:00
Veronica Berglyd Olsen
952d92df18 Simplify the key press event handler in the editor 2026-07-16 15:09:29 +02:00
Veronica Berglyd Olsen
4cb9c58ae6 Move the escape key handling into the editor 2026-07-16 14:50:36 +02:00
Veronica Berglyd Olsen
9e80c77050 Convert the editor completer menu to a QCompleter 2026-07-16 14:35:13 +02:00
Veronica Berglyd Olsen
837d9bec90 Utils updates (#2853) 2026-07-15 22:04:58 +02:00
Veronica Berglyd Olsen
ddc064e86b Make the docs build reject outdated versions of the docs 2026-07-15 21:35:01 +02:00
Veronica Berglyd Olsen
49f62494d6 Update optional icon theme releases 2026-07-15 21:02:21 +02:00
Veronica Berglyd Olsen
4ff55ca4a7 Remove html report as default for the run_tests script 2026-07-15 21:02:02 +02:00
Veronica Berglyd Olsen
9ebee3d917 Change how icons are handled (#2852) 2026-07-15 20:37:04 +02:00
Veronica Berglyd Olsen
d246071348 Update tests 2026-07-15 18:34:26 +02:00
Veronica Berglyd Olsen
a4b6b42b56 Merge switch records in switcbox 2026-07-15 18:22:01 +02:00
Veronica Berglyd Olsen
888f22ffde Update the modified buttons 2026-07-15 18:14:42 +02:00
Veronica Berglyd Olsen
05c35149a5 Merge icon name and label 2026-07-15 17:42:51 +02:00
Veronica Berglyd Olsen
85b2e2db18 Minor UI fixes (#2850) 2026-07-15 11:29:05 +02:00
Veronica Berglyd Olsen
22803752d1 Fix branch coverage 2026-07-15 02:01:19 +02:00
Veronica Berglyd Olsen
1fc8fb84a8 Fix memory leak in project tree templates menu, and add regression tests and additional test coverage 2026-07-15 01:59:09 +02:00
Veronica Berglyd Olsen
e4b669e8c1 Fix switchbox memory leak 2026-07-15 01:26:37 +02:00
Veronica Berglyd Olsen
a1c99ae713 Change the buildable menus in project tree to use a common menu signal 2026-07-15 01:13:36 +02:00
Veronica Berglyd Olsen
caf51ea53d Elide user labels in dropdown menus 2026-07-15 01:05:42 +02:00
Veronica Berglyd Olsen
eead5afa67 Switch box labels need to clip if they are long 2026-07-15 00:53:22 +02:00
Veronica Berglyd Olsen
903d886aee Fix font loading on older Qt versions (#2849)
Fix font loading on older Qt versions
2026-07-15 00:34:35 +02:00
Veronica Berglyd Olsen
c7ae38df7e Fix font loading on older Qt versions 2026-07-15 00:29:31 +02:00
Veronica Berglyd Olsen
9175a3c553 Fix search box not updating on root folder change (#2848) 2026-07-14 22:58:34 +02:00
Veronica Berglyd Olsen
2bff7f974b Make a few adjustments to the search filter class 2026-07-14 22:55:57 +02:00
Veronica Berglyd Olsen
e99a9d3325 Add dedicated tests for the switchbox 2026-07-14 22:51:55 +02:00
Veronica Berglyd Olsen
7228e2872c Fix update of search filters when root folders change 2026-07-14 22:51:06 +02:00
Veronica Berglyd Olsen
e02a7d5ab5 Add project search filters (#2847) 2026-07-14 22:22:02 +02:00
Veronica Berglyd Olsen
c8e729bbe4 Make the init tests go faster 2026-07-14 22:16:51 +02:00
Veronica Berglyd Olsen
475a9dd45d Update tests 2026-07-14 22:05:22 +02:00
Veronica Berglyd Olsen
38639932d9 Update the split handle disabled behaviour 2026-07-14 21:50:54 +02:00
Veronica Berglyd Olsen
1c8661f8c4 Use a better splitter handle 2026-07-14 21:39:45 +02:00
Veronica Berglyd Olsen
fb9ab8a346 Update styles 2026-07-14 21:32:22 +02:00
Veronica Berglyd Olsen
cc9b7ae58b Put the search filters in a splitter 2026-07-14 20:46:04 +02:00
Veronica Berglyd Olsen
92a9c7476b Clean up a few things 2026-07-14 20:26:32 +02:00
Veronica Berglyd Olsen
e34676ae57 Add updateTheme support for switchbox 2026-07-14 20:06:24 +02:00
Veronica Berglyd Olsen
4bc9aae1aa Fix type issue 2026-07-14 19:21:02 +02:00
Veronica Berglyd Olsen
98b4248a3c Add a sanity check in ProjectItem and improve a list comprehension in GuiProjectSearch 2026-07-14 19:08:15 +02:00
Veronica Berglyd Olsen
37cea519e0 Add and update tests 2026-07-14 18:56:41 +02:00
Veronica Berglyd Olsen
0587524c6c Fix broken test 2026-07-14 18:31:26 +02:00
Veronica Berglyd Olsen
c28e1a0ba4 Move DocSearch out of core tools and rename to ProjectSearch 2026-07-14 18:27:32 +02:00
Veronica Berglyd Olsen
5e46735bb2 Connect the text content search filters 2026-07-14 18:21:52 +02:00
Veronica Berglyd Olsen
d9f70bdbac Connect search root folder filter 2026-07-14 17:58:37 +02:00
Veronica Berglyd Olsen
2dddd1c2ad Add a search result type 2026-07-14 17:53:45 +02:00
Veronica Berglyd Olsen
8775416064 Implement document type filters on project search 2026-07-14 17:48:49 +02:00
Veronica Berglyd Olsen
ae8d790b55 Preserve filter settings between sessions 2026-07-14 17:11:37 +02:00
Veronica Berglyd Olsen
a067c4d932 Expose search filter settings in the search widget 2026-07-14 16:47:15 +02:00
Veronica Berglyd Olsen
5668a56e2d Move the filter labels in manuscript settings to constants 2026-07-14 16:37:28 +02:00
Veronica Berglyd Olsen
713b8252fe Fix layout warning in item details 2026-07-14 16:36:49 +02:00
Veronica Berglyd Olsen
10e1b9d4d9 Search improvements, follow-up (#2846) 2026-07-14 13:47:06 +02:00
Veronica Berglyd Olsen
51ea95e79d Don't centre on search selection, just make sure it's visible 2026-07-14 13:43:33 +02:00
Veronica Berglyd Olsen
41622806c2 Centre selection on search double click 2026-07-14 13:37:33 +02:00
Veronica Berglyd Olsen
b0d083bd2f Make a few improvements in the editor and search code 2026-07-14 13:32:25 +02:00
Veronica Berglyd Olsen
2a4d44ff78 Make the search highlight narrower and apply same colour in editor searches 2026-07-14 13:19:45 +02:00
Veronica Berglyd Olsen
c34e525fb2 Fix some bugs in the search result handler 2026-07-14 13:08:29 +02:00
Veronica Berglyd Olsen
3da463382d Project search improvements (#2844) 2026-07-14 03:00:13 +02:00
Veronica Berglyd Olsen
50d65e2d7d Update docs 2026-07-14 02:50:58 +02:00
Veronica Berglyd Olsen
93c1de8a3d Update themes with new colour 2026-07-14 02:47:36 +02:00
Veronica Berglyd Olsen
6d56020110 Update tests and make a few improvements 2026-07-14 02:23:10 +02:00
Veronica Berglyd Olsen
2448f2cd38 Update search result icons on theme change 2026-07-14 02:08:40 +02:00
Veronica Berglyd Olsen
cc27826a48 Simplify context calculation in search 2026-07-14 02:03:22 +02:00
Veronica Berglyd Olsen
ad11b458f5 Center the match in the search delegate 2026-07-14 01:53:20 +02:00
Veronica Berglyd Olsen
8c53a67e06 Use a highlight for search results instead, and add a searchmatch theme colour 2026-07-14 00:55:51 +02:00
Veronica Berglyd Olsen
db1841bbf3 Simplify the search result delegate 2026-07-14 00:27:18 +02:00
Veronica Berglyd Olsen
ff9afd0485 Add a search item delegate to paint the word in the search result 2026-07-13 23:40:46 +02:00
Veronica Berglyd Olsen
33470486ea Make it possible to hide the item details panel below the project tree (#2843) 2026-07-13 21:20:34 +02:00
Veronica Berglyd Olsen
6e6113b887 Add a delayed refresh of the items panel, and add tests 2026-07-13 21:16:12 +02:00
Veronica Berglyd Olsen
fd4bdd04e9 Emit a signal when the panel state changes 2026-07-13 20:58:04 +02:00
Veronica Berglyd Olsen
2296fe166b Add test coverage 2026-07-13 20:48:59 +02:00
Veronica Berglyd Olsen
c7f2248eaf Make it possible to hide the item details panel 2026-07-13 20:45:05 +02:00
Veronica Berglyd Olsen
833f92dded Add an expandable panel widget 2026-07-13 20:44:41 +02:00
Veronica Berglyd Olsen
89478c8dd3 Rewrite project search to model/view (#2842) 2026-07-13 20:29:13 +02:00
Veronica Berglyd Olsen
ba4cd217c0 Move the novel model to the models folder 2026-07-13 20:25:21 +02:00
Veronica Berglyd Olsen
409ce4f2e9 Move the item model to the models folder 2026-07-13 20:24:56 +02:00
Veronica Berglyd Olsen
a8690808c2 Fix test coverage 2026-07-13 20:20:01 +02:00
Veronica Berglyd Olsen
a9f4cab48b Update main search tests 2026-07-13 20:09:03 +02:00
Veronica Berglyd Olsen
3a8a3680c5 Update the search model and add tests 2026-07-13 19:56:57 +02:00
Veronica Berglyd Olsen
0956b528cb Switch the search panel to model/view 2026-07-13 19:47:04 +02:00
Veronica Berglyd Olsen
3944a8c9a2 Add manuscript dialogue statistics (#2841) 2026-07-13 19:12:15 +02:00
Veronica Berglyd Olsen
8c75e36115 Use the new percentage formatter in other places too 2026-07-13 19:08:41 +02:00
Veronica Berglyd Olsen
e7fabab051 Fix dialogue overlap 2026-07-13 18:49:35 +02:00
Veronica Berglyd Olsen
77f112fcb9 Fix syntax preferences refresh in the editor and viewer 2026-07-13 18:36:11 +02:00
Veronica Berglyd Olsen
bc41619497 Fix issues and update tests 2026-07-13 18:33:03 +02:00
Veronica Berglyd Olsen
104c8b0d01 Replace the old stats widget with a simple label 2026-07-13 18:06:53 +02:00
Veronica Berglyd Olsen
6e7e5f7840 Add a side panel widget for manuscript statistics 2026-07-13 17:25:44 +02:00
Veronica Berglyd Olsen
f558f53a95 Collect statistics on dialogue 2026-07-13 16:03:56 +02:00
Veronica Berglyd Olsen
a13bafa2c0 Stability improvements (#2840) 2026-07-12 16:09:02 +02:00
Veronica Berglyd Olsen
187f53b837 Add a reentrancy test 2026-07-12 16:04:00 +02:00
Veronica Berglyd Olsen
5391edebc1 Remove the remaining deleteLater call 2026-07-12 15:56:30 +02:00
Veronica Berglyd Olsen
5d2f70a45d Make sure openDocument completes before another call is made 2026-07-12 15:55:27 +02:00
Veronica Berglyd Olsen
f28e3d1225 Manuscript print kerning fix (#2838) 2026-07-12 01:43:18 +02:00
Veronica Berglyd Olsen
16c0592523 Make the manuscript new page line a dashed line 2026-07-12 01:38:12 +02:00
Veronica Berglyd Olsen
2e03a29de9 Disable font hinting on manuscript print (#2640) 2026-07-12 00:47:32 +02:00
Veronica Berglyd Olsen
70cc564582 Fix some minor mistakes and omissions on the contributing guide (#2837) 2026-07-11 13:00:00 +02:00
Veronica Berglyd Olsen
55f8b58c9a Fix some minor mistakes and omissions on the contributing guide 2026-07-11 12:56:45 +02:00
Veronica Berglyd Olsen
4c75bacca0 Update the contributing guide (#2836) 2026-07-11 12:53:35 +02:00
Veronica Berglyd Olsen
2bb5b677ef Update the contributing guide 2026-07-11 12:50:01 +02:00
Veronica Berglyd Olsen
64bfe5a935 Fix weekly backup name format (#2835) 2026-07-11 12:11:06 +02:00
Veronica Berglyd Olsen
41f3dcd0fc Update tests 2026-07-11 12:06:48 +02:00
Veronica Berglyd Olsen
8243e07448 Fix the formatting of weekly project backups 2026-07-11 12:06:38 +02:00
Veronica Berglyd Olsen
31cf39aa91 Add backup interval setting (#2834) 2026-07-11 01:01:02 +02:00
Veronica Berglyd Olsen
8cedbc7469 Fix line wrapping 2026-07-11 00:58:03 +02:00
Veronica Berglyd Olsen
f967b812cb Update packages 2026-07-11 00:57:16 +02:00
Veronica Berglyd Olsen
21d2b5b133 Fix docstring 2026-07-11 00:57:10 +02:00
Veronica Berglyd Olsen
fbdefac538 Update tests 2026-07-11 00:49:42 +02:00
Veronica Berglyd Olsen
8deb2ff7ed Complete the backup interval implementation 2026-07-11 00:48:56 +02:00
Veronica Berglyd Olsen
bf5ce29d04 Add backup interval setting 2026-07-11 00:06:46 +02:00
Veronica Berglyd Olsen
0bc2d95f15 Improve toggle button colours (#2833) 2026-07-10 22:46:52 +02:00
Veronica Berglyd Olsen
54e23f38cd Update docs 2026-07-10 22:43:19 +02:00
Veronica Berglyd Olsen
1fd23ae721 Update tests 2026-07-10 22:36:08 +02:00
Veronica Berglyd Olsen
e966ffad6d Tweak the toggle colour on some themes 2026-07-10 22:14:30 +02:00
Veronica Berglyd Olsen
4bd1a6f11b Update tests 2026-07-10 22:14:10 +02:00
Veronica Berglyd Olsen
b2502ce0e8 Update themes 2026-07-10 21:36:23 +02:00
Veronica Berglyd Olsen
ad649ad4f7 Switch the search tool buttons to checkable NIconToolButton instances and add a new toggle colour 2026-07-10 20:59:24 +02:00
Veronica Berglyd Olsen
6e23fa7efd Menus cleanup (#2832) 2026-07-10 12:51:29 +02:00
Veronica Berglyd Olsen
074357a238 Update slot name in project settings 2026-07-10 12:48:15 +02:00
Veronica Berglyd Olsen
d01b1c868f Use the icon attribute for other cases where qtAddAction is used 2026-07-10 12:42:28 +02:00
Veronica Berglyd Olsen
466d310c25 Update tests 2026-07-10 12:28:19 +02:00
Veronica Berglyd Olsen
33343f64ef Update writing stats and manuscript settings to new pattern 2026-07-10 12:13:40 +02:00
Veronica Berglyd Olsen
40daa9596f Update header navigation in editor and viewer 2026-07-10 12:06:47 +02:00
Veronica Berglyd Olsen
12d1b2a112 Also add support for icons in qtAddAction and apply in Project Settings 2026-07-10 11:59:34 +02:00
Veronica Berglyd Olsen
0b93d7e6c6 Let qtAddAction take a data value and use in Preferences 2026-07-10 11:53:26 +02:00
Veronica Berglyd Olsen
6d8f4f79b1 Rename things (#2831) 2026-07-10 00:49:24 +02:00
Veronica Berglyd Olsen
ad9d04a24e Rename NWStatus 2026-07-10 00:42:12 +02:00
Veronica Berglyd Olsen
f1c6e44c5c Rename NWItem 2026-07-10 00:37:50 +02:00
Veronica Berglyd Olsen
87245f09ad Rename NWStorage 2026-07-10 00:31:42 +02:00
Veronica Berglyd Olsen
f6e5202a99 Rename NWDocument 2026-07-10 00:28:06 +02:00
Veronica Berglyd Olsen
a0bfd9d83f Rename NWTree 2026-07-10 00:24:39 +02:00
Veronica Berglyd Olsen
2b5ad3e4c4 Rename NWProjectData 2026-07-10 00:21:44 +02:00
Veronica Berglyd Olsen
0899b4f6b1 Fix missing improts 2026-07-10 00:19:57 +02:00
Veronica Berglyd Olsen
960f62d94b Rename NWBuildDocument 2026-07-10 00:14:39 +02:00
Veronica Berglyd Olsen
1dfa425889 Rename some rarely used classes 2026-07-10 00:13:41 +02:00
Veronica Berglyd Olsen
7a347afb40 Update class docstrings and rename NWSpellEnchant to SpellEnchant 2026-07-10 00:07:21 +02:00
Veronica Berglyd Olsen
230e91b60d Make test module docstrings consistent 2026-07-10 00:01:17 +02:00
Veronica Berglyd Olsen
3092278d63 Rename NWSessionLog to SessionLog 2026-07-09 23:47:32 +02:00
Veronica Berglyd Olsen
e83873bbea Memory leak regression tests (#2830) 2026-07-09 21:58:00 +02:00
Veronica Berglyd Olsen
2bec8e4aff Add regression tests for the memory leak fixes 2026-07-09 21:53:47 +02:00
Veronica Berglyd Olsen
42ead5886d Add memory leak test helpers 2026-07-09 21:53:01 +02:00
Veronica Berglyd Olsen
3d85401ab1 Memory leak cleanup (#2829) 2026-07-09 00:52:28 +02:00
Veronica Berglyd Olsen
ddef31ae21 Fix switch animation memory leak 2026-07-09 00:39:38 +02:00
Veronica Berglyd Olsen
3c630657b1 Fix font dialog memory leak 2026-07-09 00:37:59 +02:00
Veronica Berglyd Olsen
61a95e781a Fix project tree context menu memory leak 2026-07-09 00:34:42 +02:00
Veronica Berglyd Olsen
49b363494a Remove the lambda from save action in writing stats to allow the actions to be freed on close 2026-07-09 00:12:37 +02:00
Veronica Berglyd Olsen
e234e2340d Remove the lambda from dialogue line setting in Preferences to allow the actions to be freed on close 2026-07-09 00:04:15 +02:00
Veronica Berglyd Olsen
c7f8008355 Code cleanup (#2826) 2026-07-08 20:21:43 +02:00
Veronica Berglyd Olsen
caad6871ca Make test names more consistent 2026-07-08 20:15:28 +02:00
Veronica Berglyd Olsen
9aadd42471 Rename a few variables 2026-07-08 19:18:45 +02:00
Veronica Berglyd Olsen
df5e135834 Improve type annotations on spell and format checkers 2026-07-08 18:57:32 +02:00
Veronica Berglyd Olsen
84fd163ca8 Improve test helpers (#2825) 2026-07-07 12:57:35 +02:00
Veronica Berglyd Olsen
187190b229 Further improvements to file compare helper 2026-07-07 12:52:59 +02:00
Veronica Berglyd Olsen
92e02634e8 Clean up test helpers 2026-07-07 12:38:55 +02:00
Veronica Berglyd Olsen
134b72f219 Improve the cmpFiles helper for tests 2026-07-07 12:27:17 +02:00
Veronica Berglyd Olsen
970b962208 Clarify text language 2026-07-07 12:15:55 +02:00
Veronica Berglyd Olsen
7da4e4de59 Backport launcher fixes from main (#2824) 2026-07-07 01:34:50 +02:00
Veronica Berglyd Olsen
0f72d9504a Backport launcher fixes from main 2026-07-07 01:30:53 +02:00
Veronica Berglyd Olsen
9103a95315 Update Windows app launcher and app id (#2823) 2026-07-07 01:27:22 +02:00
Veronica Berglyd Olsen
ffc5bd1654 Update the signed windows launcher executable 2026-07-07 01:24:05 +02:00
Veronica Berglyd Olsen
ef916607d8 Bump windows launcher version 2026-07-07 01:19:37 +02:00
Veronica Berglyd Olsen
2b4f8f8d38 Fix open in background issue with the windows launcher 2026-07-07 01:18:10 +02:00
Veronica Berglyd Olsen
f3d0538207 Bump windows launcher version 2026-07-07 01:09:05 +02:00
Veronica Berglyd Olsen
b9d63340b8 Keep the wrapper exe alive while the main app is running 2026-07-07 01:01:31 +02:00
Veronica Berglyd Olsen
ec99e41614 Use a fixed app id on Windows 2026-07-07 00:57:11 +02:00
Veronica Berglyd Olsen
8101f59fc5 Add text zoom in editor and viewer (#2822) 2026-07-06 22:31:02 +02:00
Veronica Berglyd Olsen
93c3ea2d9f Fix formatting 2026-07-06 22:27:32 +02:00
Veronica Berglyd Olsen
3dcbecf04a Update shortcuts in docs 2026-07-06 22:21:17 +02:00
Veronica Berglyd Olsen
a0e2e03616 Update tests 2026-07-06 22:19:54 +02:00
Veronica Berglyd Olsen
aad07535fb Map zoom through docAction and also apply to viewer 2026-07-06 22:03:20 +02:00
Veronica Berglyd Olsen
1334aad4f6 Enable zoom in the editor 2026-07-06 21:51:52 +02:00
Veronica Berglyd Olsen
af4239b957 Switch editor heading sizes to Qt fixed values 2026-07-06 21:22:02 +02:00
Veronica Berglyd Olsen
8267af24c7 Add a text format check framework (#2821) 2026-07-06 21:02:04 +02:00
Veronica Berglyd Olsen
06e4eb5f79 Move the chunk constant to the constants file 2026-07-06 20:58:09 +02:00
Veronica Berglyd Olsen
5010e54b53 Make the word counter also single shot like the spell checker 2026-07-06 20:47:13 +02:00
Veronica Berglyd Olsen
e53d17495e Rename the spell check timer 2026-07-06 20:34:20 +02:00
Veronica Berglyd Olsen
729ec29b37 Don't highlight trailing spaces behind the cursor 2026-07-06 20:30:29 +02:00
Veronica Berglyd Olsen
26c3d53e55 Unify the format errors format 2026-07-06 20:16:09 +02:00
Veronica Berglyd Olsen
b88132620d Fix undo glitch 2026-07-06 20:06:48 +02:00
Veronica Berglyd Olsen
cd10bb3092 Generalise the space checker to format checker 2026-07-06 19:56:15 +02:00
Veronica Berglyd Olsen
40f73dc4ef Move the multi and trailing space check to the same infrastructure as spell checking 2026-07-06 19:50:14 +02:00
Veronica Berglyd Olsen
a73cf4f787 Editor search improvements (#2820) 2026-07-06 19:12:06 +02:00
Veronica Berglyd Olsen
b17afcf40c Only expand search box count when more than 99 hits (#2798) 2026-07-06 19:00:43 +02:00
Veronica Berglyd Olsen
05875b94b7 Add a QtWidgetShortcut type 2026-07-06 18:52:04 +02:00
Veronica Berglyd Olsen
f7bf92885e Show search selections 2026-07-06 18:45:31 +02:00
Veronica Berglyd Olsen
c5f26f3e94 Add missing slot attributes 2026-07-06 18:32:16 +02:00
Veronica Berglyd Olsen
f6b060c0f9 Core code restructure (#2819) 2026-07-06 18:25:13 +02:00
Veronica Berglyd Olsen
4741ff1289 Fix ruff error 2026-07-06 18:21:44 +02:00
Veronica Berglyd Olsen
1337fe9816 Remove outdated info from agents.md 2026-07-06 18:19:21 +02:00
Veronica Berglyd Olsen
e19308cba4 Update test names 2026-07-06 18:13:58 +02:00
Veronica Berglyd Olsen
a5acdfa3da Move manuscript code to own folder 2026-07-06 18:10:21 +02:00
Veronica Berglyd Olsen
f57a6b512a Split into editor and viewer folders 2026-07-06 18:03:58 +02:00
Veronica Berglyd Olsen
5afcbfe8c6 Split editor and viewer source files 2026-07-06 17:52:50 +02:00
Veronica Berglyd Olsen
507f1e7a92 Move the base tests to the root tests folder 2026-07-06 17:29:48 +02:00
Veronica Berglyd Olsen
fa5653ce16 Rename the remaining gui folder to gui_side 2026-07-06 17:28:37 +02:00
Veronica Berglyd Olsen
1283a0f4b2 Move the document editor and viewer files to a separate folder 2026-07-06 17:27:16 +02:00
Veronica Berglyd Olsen
a27aeb6613 Restructure tests folders (#2818) 2026-07-06 17:07:00 +02:00
Veronica Berglyd Olsen
0e4fed94b1 Remove test prefix for all test folders 2026-07-06 17:00:58 +02:00
Veronica Berglyd Olsen
df2e255129 Move test reference files into underscored folders 2026-07-06 16:55:14 +02:00
Veronica Berglyd Olsen
b1fde3ff37 Add line height setting for editor and viewer (#2817) 2026-07-06 16:46:04 +02:00
Veronica Berglyd Olsen
3d83f9a452 Scope down init of editor and viewer on Preferences change 2026-07-06 16:38:39 +02:00
Veronica Berglyd Olsen
ccdf963847 Create types for commonly used keypress enums 2026-07-06 16:09:18 +02:00
Veronica Berglyd Olsen
8405411263 Move the keypress overload 2026-07-06 16:08:58 +02:00
Veronica Berglyd Olsen
a343778b64 Fix issue maintaining line height while typing 2026-07-06 15:46:18 +02:00
Veronica Berglyd Olsen
6db22271d9 Expose the line height setting in Preferences 2026-07-06 15:14:53 +02:00
Veronica Berglyd Olsen
f0f017aa0d Add test coverage 2026-07-06 15:02:09 +02:00
Veronica Berglyd Olsen
0afec0b94d Implement the line height setting and handling 2026-07-06 15:01:11 +02:00
Veronica Berglyd Olsen
f3cb4d05e1 Switch editor back to QTextEdit (#2816) 2026-07-06 13:28:22 +02:00
Veronica Berglyd Olsen
8dd2778119 Cleanup pass and fix a minor issue 2026-07-06 13:13:49 +02:00
Veronica Berglyd Olsen
970f432739 Restore old per-pixel typewriter scrolling 2026-07-06 12:55:11 +02:00
Veronica Berglyd Olsen
92377fdc1d Reimplement the centre ang cursor visibility features 2026-07-06 12:37:29 +02:00
Veronica Berglyd Olsen
e6dde015a6 Switch to QTextEdit without changing anything else 2026-07-06 12:12:13 +02:00
Veronica Berglyd Olsen
5993ca4193 Move spell checking out of the syntax highlighter (#2812) 2026-07-05 22:52:11 +02:00
Veronica Berglyd Olsen
168ad781dc Fix issues with tests 2026-07-05 22:48:02 +02:00
Veronica Berglyd Olsen
a0f36ea4ea Clean up a few minor bits 2026-07-05 22:35:01 +02:00
Veronica Berglyd Olsen
7340da7c07 Move the text bloc data class to a separate file 2026-07-05 22:21:54 +02:00
Veronica Berglyd Olsen
d9c7423b34 Update tests 2026-07-05 22:14:18 +02:00
Veronica Berglyd Olsen
fe42c529ca Move the spell checker off the main thread 2026-07-05 22:08:35 +02:00
Veronica Berglyd Olsen
815026976b Fix test on MacOS 2026-07-05 21:54:10 +02:00
Veronica Berglyd Olsen
fc6e9d8213 Run spell check in chunks to not block the document 2026-07-05 19:11:31 +02:00
Veronica Berglyd Olsen
e0f53d86d3 Move spell checking out of the highlighter and on a timer in the editor 2026-07-05 19:04:22 +02:00
Veronica Berglyd Olsen
6611b495d0 Move spell error rendering out of the syntax highlighter 2026-07-05 18:44:40 +02:00
Veronica Berglyd Olsen
9741d083ae Make the text block data object UTF-16 aware 2026-07-05 18:25:56 +02:00
Veronica Berglyd Olsen
083abbc73b Forward search race condition fix (#2810) 2026-07-05 18:10:08 +02:00
Veronica Berglyd Olsen
ab9be4efd4 Fix test coverage 2026-07-05 18:07:01 +02:00
Veronica Berglyd Olsen
9a8b89afa7 Fix doc search race across document boundaries (#2811) 2026-07-05 18:06:37 +02:00
Veronica Berglyd Olsen
e20b82f802 Fix test coverage 2026-07-05 18:00:20 +02:00
Veronica Berglyd Olsen
1218b25127 Spell check word caching (#2808) 2026-07-05 17:55:28 +02:00
Veronica Berglyd Olsen
d58bc8373e Fix doc search race across document boundaries, backported from main 2026-07-05 17:52:42 +02:00
Veronica Berglyd Olsen
b6e7c9444e Remove reliance on actual spell check dictionary 2026-07-05 17:43:21 +02:00
Veronica Berglyd Olsen
32e004e11a Update tests 2026-07-05 17:39:50 +02:00
Veronica Berglyd Olsen
81babd8a07 Split the findNext function in the editor to handle race conditions when the user holds down the search next key 2026-07-05 17:39:38 +02:00
Veronica Berglyd Olsen
9d7c0c3a29 Add test coverage 2026-07-05 17:32:11 +02:00
Veronica Berglyd Olsen
dabcf769fb Add a spell check cache to avoid calling enchant so often 2026-07-05 17:31:59 +02:00
Veronica Berglyd Olsen
0a4269a405 Improve branch coverage (#2807) 2026-07-05 13:44:17 +02:00
Veronica Berglyd Olsen
9fad61bca1 Minor fixes 2026-07-05 13:41:14 +02:00
Veronica Berglyd Olsen
10ff56bba7 Fix branch misses on tools modules 2026-07-05 13:22:05 +02:00
Veronica Berglyd Olsen
36a0b024b1 Fix branch misses on guimain, shared and error 2026-07-05 12:43:05 +02:00
Veronica Berglyd Olsen
7f0e5cce08 Revert redundant CONFIG safeguards 2026-07-05 12:08:45 +02:00
Veronica Berglyd Olsen
1b9ac40e38 Fix branch misses on gui modules, part 3 2026-07-05 12:01:09 +02:00
Veronica Berglyd Olsen
7b078103a2 Fix branch misses on gui modules, part 2 2026-07-05 01:58:21 +02:00
Veronica Berglyd Olsen
ff89d27a93 Fix branch misses on gui modules, part 1 2026-07-05 01:11:24 +02:00
Veronica Berglyd Olsen
9c672ffd7b Fix MacOS test failure 2026-07-05 00:30:25 +02:00
Veronica Berglyd Olsen
097015228b Fix branch misses on format modules 2026-07-05 00:25:35 +02:00
Veronica Berglyd Olsen
b7d87a24cc Fix CI issues 2026-07-04 23:36:26 +02:00
Veronica Berglyd Olsen
628d012c82 Fix branch misses on extension modules 2026-07-04 23:33:16 +02:00
Veronica Berglyd Olsen
67c151e23e Fix branch misses on dialog modules 2026-07-04 23:06:16 +02:00
Veronica Berglyd Olsen
64fb934096 Fix branch misses on core modules 2026-07-04 21:23:53 +02:00
Veronica Berglyd Olsen
b9e9709f18 Fix branch misses on base modules 2026-07-04 19:07:41 +02:00
Veronica Berglyd Olsen
490527abdf Fix small branch misses 2026-07-04 18:47:37 +02:00
Veronica Berglyd Olsen
a78213052a Enable branch coverage 2026-07-04 18:43:29 +02:00
Veronica Berglyd Olsen
de5553647d Remove custom codeql file on release (#2806) 2026-07-04 16:04:48 +02:00
Veronica Berglyd Olsen
755b63bbf6 Update code of conduct 2026-07-04 16:02:09 +02:00
Veronica Berglyd Olsen
7666dcae2b Remove custom codeql file on release 2026-07-04 16:00:34 +02:00
Veronica Berglyd Olsen
db210b1da7 Remove custom codeql (#2805) 2026-07-04 15:52:31 +02:00
Veronica Berglyd Olsen
dd0c71c9d6 Remove custom codeql 2026-07-04 15:49:52 +02:00
Veronica Berglyd Olsen
e47dee1fac Shorten the code of conduct (#2803) 2026-07-04 15:25:08 +02:00
Veronica Berglyd Olsen
5eb45cc3ec Trim the code of conduct file and scope it down to the current repo 2026-07-04 15:21:35 +02:00
Veronica Berglyd Olsen
259cc7f00c Remove Ubuntu 25.10 and add 26.10 (#2802) 2026-07-02 20:41:30 +02:00
Veronica Berglyd Olsen
eb1ede7747 Remove Ubuntu 25.10 and add 26.10 2026-07-02 20:38:06 +02:00
Veronica Berglyd Olsen
b3147b125c Pre-Release 26.2a1 (#2801) 2026-07-02 20:25:36 +02:00
Veronica Berglyd Olsen
58fefe3182 Bump main to 26.2a2 2026-07-02 20:19:35 +02:00
Veronica Berglyd Olsen
3397319b9f Add EPUB format (#2283) 2026-07-02 20:15:55 +02:00
Veronica Berglyd Olsen
3bdb5ed594 Update docs 2026-07-02 20:13:00 +02:00
Veronica Berglyd Olsen
05c5915f2b Disable anchors in epub 2026-07-02 20:11:13 +02:00
Veronica Berglyd Olsen
07572a1e94 Treat notes as chapters, but with the notes filename in epub 2026-07-02 20:10:14 +02:00
Veronica Berglyd Olsen
cd9244f0dd Allow ignoring OS-specific tests in run_tests script 2026-07-02 19:16:52 +02:00
Veronica Berglyd Olsen
4347021572 Add epub save test and fix insertion of counts 2026-07-02 01:26:33 +02:00
Veronica Berglyd Olsen
98520c1816 Refactor css builder and add epub tests 2026-07-02 00:50:39 +02:00
Veronica Berglyd Olsen
8df5f519d2 Fix footnotes implementation for epub 2026-07-01 23:53:54 +02:00
Veronica Berglyd Olsen
5e5d18fc64 Clean up some unused formats code and sort inheritance between epub and html 2026-07-01 23:53:37 +02:00
Veronica Berglyd Olsen
86b436be98 Add slots to all formatting classes 2026-07-01 22:52:45 +02:00
Veronica Berglyd Olsen
15e73a1d43 Make ToEPub class inherit ToHtml and share formatting functions 2026-07-01 22:52:26 +02:00
Veronica Berglyd Olsen
8eb5442037 Some minor refactoring 2026-07-01 00:14:27 +02:00
Veronica Berglyd Olsen
56053686fb Fix validation issues in EPub format 2026-07-01 00:05:36 +02:00
Veronica Berglyd Olsen
65cb006f33 Add a css builder for HTML and EPub 2026-07-01 00:05:24 +02:00
Veronica Berglyd Olsen
d942373528 Merge branch 'main' into epub_format 2026-06-30 22:18:37 +02:00
Veronica Berglyd Olsen
d87b1beff5 Clarify icon and image format checks in tests (#2797) 2026-06-29 20:48:34 +02:00
Veronica Berglyd Olsen
ce4a86b077 When icon and image tests fail, give a detailed reason 2026-06-29 20:43:26 +02:00
Veronica Berglyd Olsen
0eb33394b9 Merge 26.1.1 release into main (#2796) 2026-06-28 18:45:28 +02:00
Veronica Berglyd Olsen
11a01eed96 Re-run ruff format 2026-06-28 18:40:55 +02:00
Veronica Berglyd Olsen
347e7913b4 Fix pyproject.toml 2026-06-28 18:35:45 +02:00
Veronica Berglyd Olsen
5d9f159a58 Merge branch 'main' into merge-26.1.1 2026-06-28 18:31:36 +02:00
Veronica Berglyd Olsen
5a7f129822 Release 26.1.1 (#2794) 2026-06-28 18:12:45 +02:00
Veronica Berglyd Olsen
329274876f Update credits for Catalan translations 2026-06-28 18:09:36 +02:00
Veronica Berglyd Olsen
a073665fe6 Update changelog and bump version 2026-06-28 18:09:23 +02:00
Veronica Berglyd Olsen
3d646474be Update translations (#2793) 2026-06-28 17:38:03 +02:00
Veronica Berglyd Olsen
ebca4f9c85 Fix i18n pipeline 2026-06-28 17:34:32 +02:00
Veronica Berglyd Olsen
678b80ea27 Clean up other translation files 2026-06-28 17:27:13 +02:00
Veronica Berglyd Olsen
a71a409426 Add Catalan 2026-06-28 17:26:59 +02:00
Veronica Berglyd Olsen
bee617afaf Updated existing translations 2026-06-28 17:26:42 +02:00
Veronica Berglyd Olsen
fbf603bc58 Simplify ts files (#2792) 2026-06-28 17:19:31 +02:00
Veronica Berglyd Olsen
c037b575cb Remove line numbers from .ts files 2026-06-28 17:13:14 +02:00
Veronica Berglyd Olsen
0cf81d02e7 Test on Fedora linux (#2463) 2026-06-28 15:07:08 +02:00
Veronica Berglyd Olsen
b0b9eba129 Merge Fedora tests into linux workflow 2026-06-28 15:03:37 +02:00
Veronica Berglyd Olsen
a845e9d76a Revert the build workflow changes 2026-06-28 15:00:38 +02:00
Veronica Berglyd Olsen
8475a29441 Fix dependencies 2026-06-28 14:56:25 +02:00
Veronica Berglyd Olsen
cc2620434b Rewrite the fedora test step to mirror the equivalent for ubuntu 2026-06-28 14:34:55 +02:00
Veronica Berglyd Olsen
0b3b73f47d Merge branch 'main' into pr/bkmgit/2463 2026-06-28 14:29:00 +02:00
Veronica Berglyd Olsen
e4d07783e7 Add smoke test to Appimage build (#2791) 2026-06-28 14:00:26 +02:00
Veronica Berglyd Olsen
0a3b4c33ec Fix dependencies 2026-06-28 13:54:44 +02:00
Veronica Berglyd Olsen
c124a19d82 Fix smoke test libGL error 2026-06-28 13:14:18 +02:00
Veronica Berglyd Olsen
435abd693a Merge branch 'release' into appimage-updates 2026-06-28 13:05:52 +02:00
Veronica Berglyd Olsen
fd29539b92 Fix QDBusError on Linux (#2790) 2026-06-28 13:05:27 +02:00
Veronica Berglyd Olsen
31cffb153b Just use if/elif logic 2026-06-28 13:02:34 +02:00
Veronica Berglyd Olsen
e31cd291a7 Group the identity part with the other implementations for windows and macos 2026-06-28 12:59:54 +02:00
Veronica Berglyd Olsen
198cbae6b4 Add a step to test the appimage on various distros 2026-06-28 12:54:37 +02:00
Veronica Berglyd Olsen
76d7faf5ba Fix QDBusError 2026-06-28 12:34:12 +02:00
Veronica Berglyd Olsen
6bf950df84 Update Code of Conduct (#2788) 2026-06-28 01:14:38 +02:00
Veronica Berglyd Olsen
0a4521fa27 Update violation response details 2026-06-28 00:12:16 +01:00
Veronica Berglyd Olsen
e74b232489 Clarify reporting instructions in Code of Conduct 2026-06-28 00:08:45 +01:00
Veronica Berglyd Olsen
41828edb63 Update code of conduct to v3.0 (#2787) 2026-06-28 01:07:26 +02:00
Veronica Berglyd Olsen
5e9e9c6ead Update code of conduct to v3.0 2026-06-28 01:04:07 +02:00
Veronica Berglyd Olsen
7669dea354 Update default Python to 3.14 (#2786) 2026-06-28 00:19:33 +02:00
Veronica Berglyd Olsen
4992fa73cf Fix i18n workflow trigger 2026-06-28 00:10:33 +02:00
Veronica Berglyd Olsen
496da77057 Use Python 3.14 as default 2026-06-28 00:08:04 +02:00
Veronica Berglyd Olsen
1c48f6352b Show active project spell check language in menu (#2785) 2026-06-27 23:36:50 +02:00
Veronica Berglyd Olsen
85f8583061 Sort lines 2026-06-27 23:33:16 +02:00
Veronica Berglyd Olsen
950bf4b111 Re-run spell checker when language changes 2026-06-27 23:31:13 +02:00
Veronica Berglyd Olsen
e44fa78354 Show what project language is set in the menu 2026-06-27 23:09:20 +02:00
Veronica Berglyd Olsen
fda6831075 Recursively set active inactive documents in project tree (#2784) 2026-06-27 22:23:42 +02:00
Veronica Berglyd Olsen
6166bab780 Update tests 2026-06-27 22:15:05 +02:00
Veronica Berglyd Olsen
66023ecf65 Allow setting active/inactive to all children (#2188) 2026-06-27 22:07:13 +02:00
Veronica Berglyd Olsen
c0bee55d82 Auto-refresh reference list on changes (#2782) 2026-06-27 01:39:47 +02:00
Veronica Berglyd Olsen
3d715d17dc Add test coverage 2026-06-27 01:35:34 +02:00
Veronica Berglyd Olsen
00a6a39eb3 Add signal path to notify back reference panel about index changes (#2124) 2026-06-27 01:33:48 +02:00
Veronica Berglyd Olsen
84864c68ec Improve item models (#2781) 2026-06-27 00:51:16 +02:00
Veronica Berglyd Olsen
da04fe3d83 Improve performance in notifying refresh from the data model to the model/view layer 2026-06-27 00:34:04 +02:00
Veronica Berglyd Olsen
b75bbaafa1 Fix issues in parent/child/descendant relationships 2026-06-27 00:19:24 +02:00
Veronica Berglyd Olsen
6f12fb3c5a Harden root folder handling when loading from file 2026-06-26 23:47:42 +02:00
Veronica Berglyd Olsen
1d37707628 Fix edge cases in the handling of the trash folder 2026-06-26 23:36:15 +02:00
Veronica Berglyd Olsen
207648b7ee Add consistency checks in tree tests 2026-06-26 23:26:05 +02:00
Veronica Berglyd Olsen
0e7859ea89 Add consistency guards in project tree 2026-06-26 23:25:36 +02:00
Veronica Berglyd Olsen
f23c067ccd Improve project tree drag and drop 2026-06-26 22:56:09 +02:00
Veronica Berglyd Olsen
0d160f4beb Fix race condition when creating new items in the project tree 2026-06-26 22:44:30 +02:00
Veronica Berglyd Olsen
c17cd2d1d3 Harden the model/view for the project tree 2026-06-26 22:44:09 +02:00
Veronica Berglyd Olsen
e14bb09139 Make improvements to the novel model 2026-06-26 22:27:20 +02:00
Veronica Berglyd Olsen
68d8002ea5 Add the isort rule to preserve formatting (#2780) 2026-06-25 23:21:37 +02:00
Veronica Berglyd Olsen
08bed0c597 Add the isort rule to preserve formatting 2026-06-25 23:17:39 +02:00
Veronica Berglyd Olsen
16fff7431c Update isort rules and add more ruff rules (#2779) 2026-06-25 23:15:50 +02:00
Veronica Berglyd Olsen
1f0d6a123d Add TID rule 2026-06-25 23:07:44 +02:00
Veronica Berglyd Olsen
255368cc47 Add SIM rule 2026-06-25 22:57:31 +02:00
Veronica Berglyd Olsen
64ce1c026a Add PT rule 2026-06-25 22:39:37 +02:00
Veronica Berglyd Olsen
f053510cd5 Add PIE rule 2026-06-25 22:28:24 +02:00
Veronica Berglyd Olsen
8cf0bebe29 Add G, ISC and LOG rules 2026-06-25 22:26:16 +02:00
Veronica Berglyd Olsen
223bc6b12d Add CPY rule 2026-06-25 22:18:33 +02:00
Veronica Berglyd Olsen
7ede82c57d Add C4 rules 2026-06-25 22:17:40 +02:00
Veronica Berglyd Olsen
d8a71615f9 Add ruff isort settings 2026-06-25 22:13:28 +02:00
Veronica Berglyd Olsen
b7df56759c Add the epub class 2026-06-25 21:59:35 +02:00
Veronica Berglyd Olsen
89103b7562 Add helper code for epub from old implementation 2026-06-25 21:38:57 +02:00
Veronica Berglyd Olsen
574d98da28 Resolve formatting differences between release and main (#2777) 2026-06-24 22:21:34 +02:00
Veronica Berglyd Olsen
84d51b3cb7 Merge branch 'release' into merge-release 2026-06-24 22:17:47 +02:00
Veronica Berglyd Olsen
f36cdaeeed Run ruff format (#2776) 2026-06-24 21:57:09 +02:00
Veronica Berglyd Olsen
64d5713041 Code cleanup (#2775) 2026-06-24 21:53:43 +02:00
Veronica Berglyd Olsen
1a0b127407 Run ruff format 2026-06-24 21:53:24 +02:00
Veronica Berglyd Olsen
4f3dbcae88 Allow ruff format 2026-06-24 21:47:27 +02:00
Veronica Berglyd Olsen
e6d25d2204 Enable a check for main code 2026-06-24 21:04:11 +02:00
Veronica Berglyd Olsen
dffd248343 Document magic methods 2026-06-24 20:46:54 +02:00
Veronica Berglyd Olsen
44be221621 Remove file history again 2026-06-24 20:36:13 +02:00
Veronica Berglyd Olsen
836b5a16ca Merge branch 'release' into merge-cleanup 2026-06-24 20:33:02 +02:00
Veronica Berglyd Olsen
4e7813aeb6 Code cleanup (#2774) 2026-06-24 20:30:43 +02:00
Veronica Berglyd Olsen
ddd9918881 Remove codecov.yml 2026-06-24 20:23:19 +02:00
Veronica Berglyd Olsen
095a18798c Drop the manifest file 2026-06-24 20:17:47 +02:00
Veronica Berglyd Olsen
7ddeed9955 Unpin ruff 2026-06-24 20:00:52 +02:00
Veronica Berglyd Olsen
6034133565 Remove file history comments 2026-06-24 19:57:36 +02:00
Veronica Berglyd Olsen
fd8324a1f4 Rename test modules 2026-06-24 19:53:34 +02:00
Veronica Berglyd Olsen
e0c9ae7598 Fix docs typos, ported from main branch (#2773) 2026-06-21 20:57:29 +02:00
Veronica Berglyd Olsen
879d51dff7 Update Manuscript tool docs (#2772) 2026-06-21 20:53:46 +02:00
Veronica Berglyd Olsen
24987a63a8 Fix docs typos, ported from main branch 2026-06-21 20:53:27 +02:00
Veronica Berglyd Olsen
3caa699d1a Include docs changes from current release branch 2026-06-21 20:43:32 +02:00
Veronica Berglyd Olsen
24f950e3b3 Fix some typos in the docs 2026-06-21 20:41:35 +02:00
Veronica Berglyd Olsen
4dff137c26 Extend the manuscript build docs 2026-06-21 20:28:05 +02:00
Veronica Berglyd Olsen
fcd5d04a40 Split the manuscript document into general and formatting 2026-06-21 19:39:19 +02:00
Veronica Berglyd Olsen
c487e88a0b Add horizontal rule format for manuscripts (#2771) 2026-06-20 19:28:23 +02:00
Veronica Berglyd Olsen
602adc2309 Add test coverage 2026-06-20 19:14:15 +02:00
Veronica Berglyd Olsen
d42b37c29c Simplify the horizontal rule use case 2026-06-20 18:26:08 +02:00
Veronica Berglyd Olsen
63fdd3699f First implementation of horizontal rule with tests 2026-06-20 17:52:01 +02:00
Veronica Berglyd Olsen
bde20ec991 Add horizontal lines to all export formats 2026-06-20 17:40:03 +02:00
Veronica Berglyd Olsen
84eaad0775 Add a horizontal rule format 2026-06-20 14:11:52 +02:00
Veronica Berglyd Olsen
3204959c80 Add missing commit from the justify on line break PR (#2770) 2026-06-20 00:51:16 +02:00
Veronica Berglyd Olsen
0cb677664e Add the justify setting on DocX as well, also missing in last PR 2026-06-20 00:47:15 +02:00
Veronica Berglyd Olsen
08563ade44 Add missing commit from the justify on line break PR 2026-06-20 00:43:50 +02:00
Veronica Berglyd Olsen
14f815d0ba Justify lines on soft break setting and ODT support (#2769) 2026-06-20 00:34:38 +02:00
Veronica Berglyd Olsen
d8489ba0fc Fix tests 2026-06-20 00:00:28 +02:00
Veronica Berglyd Olsen
d633f0ad04 Expose setting for controlling justify on break 2026-06-20 00:00:17 +02:00
Veronica Berglyd Olsen
3f89bfb273 Add settings.xml to ODT writer 2026-06-19 23:22:16 +02:00
Veronica Berglyd Olsen
550fc02ef8 Build tool improvements (#2768) 2026-06-19 19:57:22 +02:00
Veronica Berglyd Olsen
60277fc11a Update the translation file 2026-06-19 19:40:06 +02:00
Veronica Berglyd Olsen
f459025f39 Update the manuscript build dialogs and the screenshots in docs 2026-06-19 19:36:33 +02:00
Veronica Berglyd Olsen
3fa8c16164 Make manuscript build references consistent and up to date 2026-06-19 19:13:32 +02:00
Veronica Berglyd Olsen
f0aca3a965 Merge release branch into main (#2767) 2026-06-19 18:47:43 +02:00
Veronica Berglyd Olsen
47afb69acc Merge branch 'main' into merge-release 2026-06-19 18:38:31 +02:00
Veronica Berglyd Olsen
217f1a9786 Repo maintenance and UV tooling (#2766) 2026-06-19 18:37:57 +02:00
Veronica Berglyd Olsen
c0813f037b Disable new ruff rules 2026-06-19 18:23:35 +02:00
Veronica Berglyd Olsen
da3688bf2e Update actions 2026-06-19 18:06:44 +02:00
Veronica Berglyd Olsen
5ba3b4ea9d Add lock file 2026-06-19 18:02:27 +02:00
Veronica Berglyd Olsen
3e6ec4a75b Replace pdm with uv 2026-06-19 18:00:26 +02:00
Veronica Berglyd Olsen
c9dbb1e240 Add agents and update guide 2026-06-19 17:53:07 +02:00
Veronica Berglyd Olsen
5a66c19033 Improve key press processing in editor completer menu (#2743) 2026-05-03 13:35:27 +02:00
Veronica Berglyd Olsen
e256208eb4 Update docstrings 2026-05-03 13:17:25 +02:00
Veronica Berglyd Olsen
c72b2d5bba Improve handling of completer selection 2026-05-03 13:14:25 +02:00
Veronica Berglyd Olsen
d1194a37cd Add completer processing of left, right and tab keys (#2742) 2026-05-03 13:13:59 +02:00
Veronica Berglyd Olsen
d4cfd6ef4f Merge 26.1 release into 26.2 (#2741) 2026-04-26 18:08:52 +02:00
Veronica Berglyd Olsen
b27b3ad3f8 Merge branch 'main' into merge-26.1 2026-04-26 18:01:55 +02:00
Veronica Berglyd Olsen
83b1c6969a Post-release fixes (#2740) 2026-04-26 18:00:06 +02:00
Veronica Berglyd Olsen
865c556da3 Add missing items in changelog 2026-04-26 17:55:33 +02:00
Veronica Berglyd Olsen
4efd68446e Release 26.1 (#2738) 2026-04-26 15:50:57 +02:00
Veronica Berglyd Olsen
115218c8aa Bump version and update changelog 2026-04-26 15:44:29 +02:00
Veronica Berglyd Olsen
0f58788e26 Update translations 2026-04-26 15:33:41 +02:00
Veronica Berglyd Olsen
c72bb8c196 Update credits 2026-04-19 20:56:56 +02:00
Veronica Berglyd Olsen
10c8a186e5 Merge release fixes into 26.2 Alpha 0 (#2733) 2026-04-14 21:45:10 +02:00
Veronica Berglyd Olsen
f125908e1e Merge branch 'release' into merge-release-fixes 2026-04-14 17:53:50 +02:00
Veronica Berglyd Olsen
89c46e989d Don't expand justified text on short lines for DocX (#2732) 2026-04-14 17:48:59 +02:00
Veronica Berglyd Olsen
b3803ec424 Add missing translation string for mentions (#2731) 2026-04-14 17:44:31 +02:00
Veronica Berglyd Olsen
1eea25c87b Update tests 2026-04-14 17:42:29 +02:00
Veronica Berglyd Olsen
880b24a929 Add the setting to DocX exports to not expand on Shift+Enter for justified text (#2690) 2026-04-14 17:41:24 +02:00
Veronica Berglyd Olsen
20ecbbafaa Add missing translation string for mentions (#2730) 2026-04-14 17:35:45 +02:00
Veronica Berglyd Olsen
f6f7cc9cd1 Update manuscript build settings label (#2729) 2026-04-14 17:27:22 +02:00
Veronica Berglyd Olsen
36e4f34780 Clarify note title label for manuscript settings (#2727) 2026-04-14 17:02:00 +02:00
Veronica Berglyd Olsen
ed232b2199 Bump main to 26.2 Alpha 0 (#2726) 2026-04-13 22:38:55 +02:00
Veronica Berglyd Olsen
571e3467fc Move main to 26.2 Alpha 0 2026-04-13 22:31:52 +02:00
Veronica Berglyd Olsen
b8508b7cd8 Merge 26.1 branch into release (#2725) 2026-04-13 22:29:21 +02:00
Veronica Berglyd Olsen
9725b2334c Fix redundant line in changelog 2026-04-13 21:55:06 +02:00
Veronica Berglyd Olsen
eab54ef98f Release 2026.1 RC 1 (#2723) 2026-04-13 21:41:41 +02:00
Veronica Berglyd Olsen
afaf12e4b0 Bump version to 26.1 RC 1 and update changelog 2026-04-13 21:31:38 +02:00
Veronica Berglyd Olsen
0e5cd73ef0 Update i18n for 26.1 RC 1 (#2722) 2026-04-13 21:30:33 +02:00
Veronica Berglyd Olsen
9c972b19e1 Add missing two strings for en-US and nb-NO 2026-04-13 21:18:28 +02:00
Veronica Berglyd Olsen
c6487f4837 Update completed translations 2026-04-13 21:09:42 +02:00
Veronica Berglyd Olsen
0182107bc0 Fix typo in debug log 2026-04-13 21:06:56 +02:00
Veronica Berglyd Olsen
7497fc12fc Add setting for single-asterisk bold (#2719) 2026-04-13 08:59:06 +02:00
Veronica Berglyd Olsen
3ce8d08439 Merge branch 'main' 2026-04-12 22:12:39 +02:00
Veronica Berglyd Olsen
111db6e2d1 Update translation sources (#2721) 2026-04-12 20:57:57 +02:00
Veronica Berglyd Olsen
a990429daa Update completed en-US and nb-NO translations 2026-04-12 20:32:36 +02:00
Veronica Berglyd Olsen
b618697998 Update translation files with existing translations and new strings 2026-04-12 19:01:39 +02:00
Veronica Berglyd Olsen
6f96ca4a62 Update i18n workflow and add a string to preferences 2026-04-12 18:42:44 +02:00
Veronica Berglyd Olsen
9626917362 Extend pattern tests 2026-04-11 17:27:45 +02:00
Veronica Berglyd Olsen
d4705fe5be Extend test coverage for tokenizer 2026-04-11 17:09:31 +02:00
Veronica Berglyd Olsen
0a6cb656c8 Update the docs 2026-04-11 16:24:02 +02:00
Veronica Berglyd Olsen
72097a0fbb Update tests 2026-04-11 16:11:45 +02:00
Veronica Berglyd Olsen
47a2a15b59 Add formatting and highlighting for single asterisk bold 2026-04-11 16:11:34 +02:00
Veronica Berglyd Olsen
08082cf7e2 Add a setting for using single asterisk for bold 2026-04-11 16:08:02 +02:00
Veronica Berglyd Olsen
6f1a656a9a Fix path label focus colour change (#2717) 2026-04-11 14:06:15 +02:00
Veronica Berglyd Olsen
8fb4b02ef9 Remove the PDM badge 2026-04-11 13:59:41 +02:00
Veronica Berglyd Olsen
9ec26d4e87 Fix typo in colour label internal method 2026-04-11 13:55:42 +02:00
Veronica Berglyd Olsen
12c0e9d452 Fix colour label bug for document headers (#2716) 2026-04-11 13:54:32 +02:00
Veronica Berglyd Olsen
338cfa3cef Fix welcome dialog tooltip and accessibility (#2715) 2026-04-09 21:31:19 +02:00
Veronica Berglyd Olsen
7f82bcdaf6 Improve the accessibility of the list model on the welcome dialog and remove the tooltip 2026-04-09 21:17:18 +02:00
Veronica Berglyd Olsen
30672945d5 Cache all item data role enum values 2026-04-09 20:10:33 +02:00
Veronica Berglyd Olsen
dabb6f0b74 Update changelog (#2713) 2026-04-08 10:13:45 +02:00
Veronica Berglyd Olsen
8bf8950274 Update pr and issue reference in changelog 2026-04-08 10:08:33 +02:00
Veronica Berglyd Olsen
e4d9582a98 Update chgangelog 2026-04-08 10:03:22 +02:00
Veronica Berglyd Olsen
0a0e4fcd06 Adjusting the [Icon] colors (#2712) 2026-04-08 07:50:26 +02:00
HeyMyian
75bac0f6ea Adjusting the [Icon] colors 2026-04-07 14:48:32 +02:00
Veronica Berglyd Olsen
a670d0238f Add spin box fixed size settings (#2711) 2026-04-05 18:49:36 +02:00
Veronica Berglyd Olsen
861e2a9439 Update spinbox settings 2026-04-05 18:41:11 +02:00
Veronica Berglyd Olsen
c81f402ae2 Allow setting spin box size bu number of visible digits 2026-04-05 18:40:51 +02:00
Veronica Berglyd Olsen
cc3e2e2e40 Improve font handling for Qt 6.11 (#2710) 2026-04-05 17:20:22 +02:00
Veronica Berglyd Olsen
808d7db163 Use theme fonts in the UI instead of bold tags an local formatting 2026-04-05 17:12:31 +02:00
Veronica Berglyd Olsen
95c7b64de4 Switch to semi bold for the GUI 2026-04-05 16:15:23 +02:00
Veronica Berglyd Olsen
5265d67b7f Centralise how GUI font emphasis is handled 2026-04-05 15:36:55 +02:00
Veronica Berglyd Olsen
5d2df118de Release 26.1 Beta 2 (#2707) 2026-04-04 21:06:54 +02:00
Veronica Berglyd Olsen
13641575c2 Bump version and update changelog 2026-04-04 21:02:20 +02:00
Veronica Berglyd Olsen
c71dd3f3a4 Fix Qt 6.9 dependency issue (#2704) 2026-04-04 20:47:06 +02:00
Veronica Berglyd Olsen
7fad383060 Add test for debian package and update workflow names 2026-04-04 20:41:21 +02:00
Veronica Berglyd Olsen
1bab57de01 Update how Qt version is checked 2026-04-04 20:40:53 +02:00
Veronica Berglyd Olsen
db4c50a848 Post release fixes (#2702) 2026-04-02 19:50:16 +02:00
Veronica Berglyd Olsen
743bd8db5f Update actions in workflows 2026-04-02 19:04:15 +02:00
Veronica Berglyd Olsen
cffe75a6a8 Fix typo in changelog 2026-04-02 19:04:03 +02:00
Veronica Berglyd Olsen
ccd0d5c235 Release 26.1b1 (#2700) 2026-04-02 18:46:33 +02:00
Veronica Berglyd Olsen
1fd48b08cd Remove MacOS from the default build workflow 2026-04-02 18:42:09 +02:00
Veronica Berglyd Olsen
cfdfd25320 Add Mac release note 2026-04-02 18:36:56 +02:00
Veronica Berglyd Olsen
7952bd1c18 Bump version and update changelog 2026-04-02 18:34:28 +02:00
Veronica Berglyd Olsen
ab68cc8ecd Update lockfile 2026-04-02 17:53:49 +02:00
Veronica Berglyd Olsen
f65cb6fc6e Update translation files (#2699) 2026-04-02 17:47:56 +02:00
Veronica Berglyd Olsen
25b741f04e Update translation files 2026-04-02 17:33:37 +02:00
Veronica Berglyd Olsen
3563144a8e Improve screen reader support (#2698) 2026-04-02 17:27:12 +02:00
Veronica Berglyd Olsen
3e11bea0d4 Minor fixes 2026-04-02 17:08:03 +02:00
Veronica Berglyd Olsen
d23269fb7e Add count unit to project tree and novel view 2026-04-02 16:55:02 +02:00
Veronica Berglyd Olsen
4568e1cdb9 Add tooltips to all icon buttons 2026-04-02 16:07:21 +02:00
Veronica Berglyd Olsen
bc011b2230 Make the config layout understandable to the screen reader 2026-04-02 15:10:22 +02:00
Veronica Berglyd Olsen
770bad5e10 Improve opening documents from search and editor (#2697) 2026-03-29 17:49:45 +02:00
Veronica Berglyd Olsen
e079831f04 Allow Shift+Enter to open documents from project search in the viewer 2026-03-29 17:35:46 +02:00
Veronica Berglyd Olsen
7c1ed99de2 Allow editing tag source from editor tag 2026-03-29 17:14:54 +02:00
Veronica Berglyd Olsen
7d07929b16 Allow backwards search also to loop through documents (#2696) 2026-03-29 16:36:41 +02:00
Veronica Berglyd Olsen
dcf6bad34e Update docstring 2026-03-29 16:26:30 +02:00
Veronica Berglyd Olsen
2a3dc8a522 Update tests 2026-03-29 16:21:46 +02:00
Veronica Berglyd Olsen
b0690a7e42 Add support for looping through documents backwards when searching 2026-03-29 16:04:24 +02:00
Veronica Berglyd Olsen
3432974340 Add exclamation point to URL regex and update themes credits (#2695) 2026-03-28 19:58:15 +01:00
Veronica Berglyd Olsen
228983dfaf Add new themes to credits 2026-03-28 19:50:44 +01:00
Veronica Berglyd Olsen
0ead2f10ce Allow exclamation points in URLs (#2693) 2026-03-28 19:47:28 +01:00
Veronica Berglyd Olsen
4797daca72 Add colourblindness themes (#2694) 2026-03-28 19:39:11 +01:00
Veronica Berglyd Olsen
e801867d28 Merge branch 'main' into colourblindness_themes 2026-03-28 19:33:54 +01:00
Veronica Berglyd Olsen
13e55d8ff2 Add light themes for deuteranopia and tritanopia 2026-03-28 19:33:18 +01:00
Veronica Berglyd Olsen
c2d8884656 Add option for dotted underline for formatting tags and modifiers (#2692) 2026-03-28 18:34:41 +01:00
Veronica Berglyd Olsen
c9b1eeb740 Rename the variable in the highlighter 2026-03-28 17:13:50 +01:00
Veronica Berglyd Olsen
b436961875 Add setting for dotted underline on modifiers and codes 2026-03-28 17:07:58 +01:00
Veronica Berglyd Olsen
99e11e20b5 Add split document by cursor feature (#2688) 2026-03-22 15:00:41 +01:00
Veronica Berglyd Olsen
2a8b0efb66 Cache context menu translations 2026-03-22 14:54:39 +01:00
Veronica Berglyd Olsen
83a40c238c Add move text entry to main menu 2026-03-22 14:39:04 +01:00
Veronica Berglyd Olsen
60b7040241 Add test coverage 2026-03-22 14:13:56 +01:00
Veronica Berglyd Olsen
577773793c Use existing heading for new document if it exists at start of selection 2026-03-22 13:33:37 +01:00
Veronica Berglyd Olsen
7045b54e8f Move heading split function to text module 2026-03-22 13:12:36 +01:00
Veronica Berglyd Olsen
65c5cb599e Add a move text feature in the editor 2026-03-22 13:04:14 +01:00
Veronica Berglyd Olsen
c6859d2ead Replace UV with PDM (#2687) 2026-03-21 18:14:16 +01:00
Veronica Berglyd Olsen
57bea6b5b6 Fix pdm install command 2026-03-21 18:09:19 +01:00
Veronica Berglyd Olsen
551efc940d Update workflows 2026-03-21 18:05:28 +01:00
Veronica Berglyd Olsen
0590e4b13e Update scripts 2026-03-21 18:05:15 +01:00
Veronica Berglyd Olsen
14ca5688b5 Update docs with PDM info 2026-03-21 17:52:52 +01:00
Veronica Berglyd Olsen
f6698f5916 Remove uv lockfile and add pdm 2026-03-21 17:52:36 +01:00
Veronica Berglyd Olsen
4196031cdc Update readme (#2686) 2026-03-20 17:13:44 +01:00
Veronica Berglyd Olsen
c4627ca108 Merge branch 'main' into update_readme 2026-03-20 17:07:14 +01:00
Veronica Berglyd Olsen
3080270067 Add AI note 2026-03-20 17:06:31 +01:00
Veronica Berglyd Olsen
ad0cace563 Update the error window titles (#2684) 2026-03-18 19:52:53 +01:00
Veronica Berglyd Olsen
208098bfaa Add Anoia error 2026-03-18 18:10:37 +01:00
Veronica Berglyd Olsen
7c2050b374 Update the error window title choices 2026-03-18 18:01:25 +01:00
Veronica Berglyd Olsen
6068d00942 Improve error handling and reporting (#2683) 2026-03-17 18:57:57 +01:00
Veronica Berglyd Olsen
9196f327f6 Update tests 2026-03-17 18:50:35 +01:00
Veronica Berglyd Olsen
d90ebfc880 Cac he and report error messages when saving 2026-03-17 18:46:33 +01:00
Veronica Berglyd Olsen
38f48c0101 Add error cache to SharedData 2026-03-17 18:45:49 +01:00
Veronica Berglyd Olsen
c3bf5d97eb Set a minimum width for message boxes 2026-03-17 18:09:53 +01:00
Veronica Berglyd Olsen
fbc962102d Bump to 26.1 Alpha 2 (#2680) 2026-03-07 18:18:09 +01:00
Veronica Berglyd Olsen
6a82bf40fc Add formatting to the version number 2026-03-07 18:13:16 +01:00
Veronica Berglyd Olsen
726104ddbd Bump to 26.1 Alpha 2 2026-03-07 17:53:33 +01:00
Veronica Berglyd Olsen
1e288c98e3 Add shortcuts to move between paragraphs (#2679) 2026-03-07 17:25:05 +01:00
Veronica Berglyd Olsen
2303bc1048 Update docs 2026-03-07 17:20:38 +01:00
Veronica Berglyd Olsen
778664a294 Add test coverage 2026-03-07 17:17:27 +01:00
Veronica Berglyd Olsen
0bb1f9c657 Add editor shortcuts to skip between paragraphs (#2635) 2026-03-07 17:08:57 +01:00
Veronica Berglyd Olsen
1e68708a05 Add document header breadcrumbs (#2677) 2026-03-07 16:23:22 +01:00
Veronica Berglyd Olsen
255fe95fe7 Revert unintended change 2026-03-07 16:20:09 +01:00
Veronica Berglyd Olsen
a9dc27eaa6 Move the path label feature into a subclass 2026-03-07 16:17:43 +01:00
Veronica Berglyd Olsen
52dbe040a8 Make some minor improvements when clearing document headers 2026-03-07 16:12:17 +01:00
Veronica Berglyd Olsen
1f143bee9b Tweak icon and text alignment in document headers 2026-03-07 16:00:02 +01:00
Veronica Berglyd Olsen
ebcfaa73d7 Update tests 2026-03-07 15:10:45 +01:00
Veronica Berglyd Olsen
4de4bb777e Make each part of the document header path clickable (#2664) 2026-03-07 15:10:33 +01:00
Veronica Berglyd Olsen
9fb7d3373b Merge branch 'main' into doc_headers 2026-03-07 13:24:51 +01:00
Veronica Berglyd Olsen
66da3ac4ad Packaging updates (#2678) 2026-03-07 13:24:32 +01:00
Veronica Berglyd Olsen
b28620e929 Update workflows 2026-03-07 13:14:13 +01:00
Veronica Berglyd Olsen
fbc3115415 Add uv lock file 2026-03-07 13:14:05 +01:00
Veronica Berglyd Olsen
f3b3122cff Add room for font descent in document headers (#2674) 2026-03-07 12:51:28 +01:00
Veronica Berglyd Olsen
3d196d17e9 Harden I/O handling to account for PermissionError from pathlib (#2675) 2026-03-03 19:58:20 +01:00
Veronica Berglyd Olsen
0ff003890f Add test coverage 2026-03-03 19:34:01 +01:00
Veronica Berglyd Olsen
b050cdec42 Fix linting 2026-03-03 18:55:23 +01:00
Veronica Berglyd Olsen
3788a3ebb3 Add file system safe I/O wrapper functions 2026-03-02 23:06:35 +01:00
Veronica Berglyd Olsen
dd4e32c90e Add icon to status message 2026-03-02 22:58:54 +01:00
Veronica Berglyd Olsen
10685a2a20 Don't display full HTTP error in version info widget 2026-03-02 21:15:30 +01:00
Veronica Berglyd Olsen
44ba48e00d Add heading size setting for editor (#2670) 2026-02-18 15:33:48 +01:00
Veronica Berglyd Olsen
89bd79217b Update tests 2026-02-18 15:28:23 +01:00
Veronica Berglyd Olsen
de186645e0 Add a setting to disable editor header scaling 2026-02-18 15:28:11 +01:00
Veronica Berglyd Olsen
72cfda5b16 Switch to year-based versioning and update version info widget (#2669) 2026-02-15 14:36:38 +01:00
Veronica Berglyd Olsen
475d22e7bf Update about dialog 2026-02-15 14:24:38 +01:00
Veronica Berglyd Olsen
be5e9558b9 Update version info widget 2026-02-15 14:22:28 +01:00
Veronica Berglyd Olsen
9bb3620747 Add calendar and link icons 2026-02-15 14:21:57 +01:00
Veronica Berglyd Olsen
733ee6e17d Use year-based version numbers 2026-02-15 13:48:02 +01:00
Veronica Berglyd Olsen
7dd3a1c62f Improve Welcome dialog (#2668) 2026-02-14 17:49:29 +01:00
Veronica Berglyd Olsen
713667b606 Update tests and add test coverage 2026-02-14 17:28:50 +01:00
Veronica Berglyd Olsen
7135a1fd77 Allow selecting project to open with arrow keys without changing focus 2026-02-14 17:28:34 +01:00
Veronica Berglyd Olsen
f0a03fc658 Improve version info display 2026-02-14 16:05:36 +01:00
Veronica Berglyd Olsen
6252526985 Merge changes from release 2.8.2 (#2658) 2026-01-25 15:33:19 +01:00
Veronica Berglyd Olsen
baf2e617eb Merge release 2.8.2 into main 2026-01-25 15:28:47 +01:00
Veronica Berglyd Olsen
1bf096d93e Post release updates (#2657) 2026-01-25 15:27:22 +01:00
Veronica Berglyd Olsen
84187b9239 Backport icon theme updates from 2.9 dev branch 2026-01-25 15:16:01 +01:00
Veronica Berglyd Olsen
4c4a21085e Drop Ubuntu 25.04 build 2026-01-25 15:11:59 +01:00
Veronica Berglyd Olsen
dafccd5b38 Release 2.8.2 (#2655) 2026-01-25 14:52:10 +01:00
Veronica Berglyd Olsen
016073c6a9 Bump version and update changelog 2026-01-25 14:44:04 +01:00
Veronica Berglyd Olsen
7e85c70646 Alert when the loading of a spellcheck dictionary fails (#2654) 2026-01-25 14:27:23 +01:00
Veronica Berglyd Olsen
5934bc7c02 Open a dialog when the loading of spell checking fails (#2631) 2026-01-25 14:20:34 +01:00
Veronica Berglyd Olsen
97f84eca42 Add header promotion info to docs and update handling for HTML (#2653) 2026-01-25 14:00:27 +01:00
Veronica Berglyd Olsen
c1c29012c2 Update documentation on heading promotion 2026-01-25 13:52:40 +01:00
Veronica Berglyd Olsen
d1aaee951b Fix tests 2026-01-25 13:44:36 +01:00
Veronica Berglyd Olsen
cafd33a187 Add a marker for testing optional assets 2026-01-25 13:44:27 +01:00
Veronica Berglyd Olsen
d9d0d400c7 Use p tag for titles in HTML output 2026-01-25 13:43:33 +01:00
Veronica Berglyd Olsen
41807e1e3f Allow setting sizes of manuscript headings (#2650) 2026-01-20 20:24:13 +01:00
Veronica Berglyd Olsen
c97e4dc96e Fix and improve tests 2026-01-20 20:20:36 +01:00
Veronica Berglyd Olsen
baa4dd9a2f Make label capitalisation more consistent 2026-01-20 20:11:54 +01:00
Veronica Berglyd Olsen
e110cb8633 Sort the size and margin settings 2026-01-20 18:01:03 +01:00
Veronica Berglyd Olsen
3b7cad254b Add reset buttons to sizes and margins 2026-01-20 17:53:22 +01:00
Veronica Berglyd Olsen
6f9be00428 Remove old scale headings setting 2026-01-20 17:14:55 +01:00
Veronica Berglyd Olsen
6b019edaa7 Add font size settings for manuscript headings 2026-01-20 17:07:59 +01:00
Veronica Berglyd Olsen
9b5a7f96f6 Add a font size icon 2026-01-20 17:02:01 +01:00
Veronica Berglyd Olsen
d952b38a0f Allow using empty lines as margins in manuscript (#2649) 2026-01-20 16:46:53 +01:00
Veronica Berglyd Olsen
634d513e59 Add test coverage 2026-01-20 16:41:35 +01:00
Veronica Berglyd Olsen
5d63dfec67 Add blank line before headings 2026-01-19 21:50:36 +01:00
Veronica Berglyd Olsen
08d7328051 Add settings to insert empty lines instead of using margins 2026-01-19 21:50:17 +01:00
Veronica Berglyd Olsen
f53af56b57 Build settings update (#2647) 2026-01-19 21:32:47 +01:00
Veronica Berglyd Olsen
b61ec6820b Fix linting 2026-01-19 20:19:34 +01:00
Veronica Berglyd Olsen
0181c1209c Optimise loading of build settings icons 2026-01-19 19:52:07 +01:00
Veronica Berglyd Olsen
9d5c460696 Add setting for manuscript upper case headings 2026-01-19 19:28:42 +01:00
Veronica Berglyd Olsen
b176f60290 Move text margin labels around 2026-01-19 19:06:46 +01:00
Veronica Berglyd Olsen
a4e60f7d90 Fix icons for text margins 2026-01-19 19:03:12 +01:00
Veronica Berglyd Olsen
96f289a081 Move heading build settings to a new section 2026-01-19 18:54:44 +01:00
Veronica Berglyd Olsen
e6d186b6c3 Fix Windows launch file path handling (#2645) 2026-01-11 16:23:58 +01:00
Veronica Berglyd Olsen
5b104d47a8 Fix Ruff linting for 0.14.11 2026-01-11 16:13:37 +01:00
Veronica Berglyd Olsen
a93888f0c4 Update signed Windows launcher exe 2026-01-11 16:06:39 +01:00
Veronica Berglyd Olsen
eb38f77c47 Bump Windows launcher version number 2026-01-11 16:02:21 +01:00
Veronica Berglyd Olsen
fb4e4e8370 Fix launching project files with space in the path on Windows (#2643) 2026-01-11 16:01:11 +01:00
Veronica Berglyd Olsen
776e4dbb6c Further improve PDF build (#2639) 2026-01-06 16:33:49 +01:00
Veronica Berglyd Olsen
5762dd333e Move setDefaultFont call in PDF build 2026-01-05 23:01:10 +01:00
Veronica Berglyd Olsen
9ea9a72d1f Move the printer init code around a bit for clarity 2026-01-05 21:05:39 +01:00
Veronica Berglyd Olsen
ff5c046544 Mix the two solutions 2026-01-05 21:00:11 +01:00
Veronica Berglyd Olsen
69ac66f00e Change cursor while building, for long documents 2026-01-05 20:22:14 +01:00
Veronica Berglyd Olsen
80f9c69194 Remove PDF build paint device override and set no hinting instead (#2637) 2026-01-05 20:21:47 +01:00
Veronica Berglyd Olsen
f882acb7cf Increase PDF page limit (#2638) 2026-01-05 09:02:00 +01:00
Veronica Berglyd Olsen
d01ca0e515 Simply use 300 DPI for text instead 2026-01-05 01:22:17 +01:00
Veronica Berglyd Olsen
faae153671 Revert build PDF paint device override (#2637) 2026-01-04 22:45:41 +01:00
Veronica Berglyd Olsen
60d7bd301b Add Lucide icon theme (#2632) 2025-12-29 16:07:49 +01:00
Veronica Berglyd Olsen
266618dfd3 Bump Remix icons to 4.8 2025-12-29 15:41:12 +01:00
Veronica Berglyd Olsen
1ed4604cb4 Add credits and license information 2025-12-29 15:31:32 +01:00
Veronica Berglyd Olsen
e49336dffb Add Lucide icon theme as an optional theme 2025-12-29 15:21:34 +01:00
Veronica Berglyd Olsen
391f9bcedb Merge 2.8.1 into main (#2629) 2025-12-28 15:36:20 +01:00
Veronica Berglyd Olsen
a636bd88ce Merge 2.8.1 into main 2025-12-28 15:32:28 +01:00
Veronica Berglyd Olsen
e8dd93189a Post release fixes (#2628) 2025-12-28 15:31:15 +01:00
Veronica Berglyd Olsen
5d1bef6903 Fix debian alternative package names 2025-12-28 15:23:08 +01:00
Veronica Berglyd Olsen
a4ee79e285 Release 2.8.1 (#2626) 2025-12-28 14:12:32 +01:00
Veronica Berglyd Olsen
8c798099ef Bump version to 2.8.1 and update changelog 2025-12-28 14:01:44 +01:00
Veronica Berglyd Olsen
5104f99684 Fix theme docs and add docs version pinning (#2625) 2025-12-28 13:47:17 +01:00
Veronica Berglyd Olsen
b1a3d40d05 Add version pinning to localised docs 2025-12-28 13:41:41 +01:00
Veronica Berglyd Olsen
1d9fdb7367 Update docs on colour themes (#2619) 2025-12-28 12:55:51 +01:00
Veronica Berglyd Olsen
5cb154ce8b Fix input method query bug (#2623) 2025-12-28 10:43:28 +01:00
Veronica Berglyd Olsen
8a802aca90 Update test coverage 2025-12-26 15:06:34 +01:00
Veronica Berglyd Olsen
85e1d0966f Disable QVariant conversion for inputMethodQuery (#2622) 2025-12-26 15:06:23 +01:00
Veronica Berglyd Olsen
c04764d2cb Add CodeQL to release branch (#2621) 2025-12-22 12:07:05 +01:00
Veronica Berglyd Olsen
e55abe7089 Add CodeQl to release branch 2025-12-22 09:53:04 +01:00
Veronica Berglyd Olsen
3d475a2e9d Create CodeQL workflow (#2620) 2025-12-22 09:51:52 +01:00
Veronica Berglyd Olsen
aa83b5f29f Update CodeQL 2025-12-22 09:44:02 +01:00
Veronica Berglyd Olsen
d210c48d21 Create CodeQL workflow 2025-12-22 09:33:55 +01:00
Veronica Berglyd Olsen
9b934c3476 Post release fixes for 2.8 (#2613) 2025-12-14 23:06:23 +01:00
Veronica Berglyd Olsen
8883a293a1 Merge branch 'main' into post_build_fixes 2025-12-14 23:01:27 +01:00
Veronica Berglyd Olsen
911db66cf9 Generate Debian control file dynamically (#2612) 2025-12-14 23:00:49 +01:00
Veronica Berglyd Olsen
ced132b282 Generate Debian control file dynamically 2025-12-14 22:46:41 +01:00
Veronica Berglyd Olsen
04b49fd886 Merge 2.8 into main (#2611) 2025-12-14 20:29:55 +01:00
Veronica Berglyd Olsen
7064d61ae5 Undo project XML line wrapping 2025-12-14 20:26:23 +01:00
Veronica Berglyd Olsen
6d6bc05f6a Merge branch 'main' into merge_2.8 2025-12-14 20:23:11 +01:00
Veronica Berglyd Olsen
28962fa665 Fixes for Release 2.8 (#2610) 2025-12-14 20:21:00 +01:00
Veronica Berglyd Olsen
1509b34a31 Fix MacOS build script 2025-12-14 19:50:34 +01:00
Veronica Berglyd Olsen
2b2bd5e2ff Fix changelog 2025-12-14 19:47:42 +01:00
Veronica Berglyd Olsen
d02f1dc283 Release 2.8 (#2608) 2025-12-14 19:36:55 +01:00
Veronica Berglyd Olsen
275ce2a823 Bump version and update changelog 2025-12-14 19:33:01 +01:00
Veronica Berglyd Olsen
d06341cf12 Update translation files 2025-12-14 19:25:18 +01:00
Veronica Berglyd Olsen
8a234329d6 Add Qt6 SVG plugins as a direct dependency for Debian (#2607) 2025-12-14 19:17:10 +01:00
Veronica Berglyd Olsen
326caa5877 Add qt6-svg-plugins to .deb dependencies (#2604) 2025-12-14 18:39:29 +01:00
Veronica Berglyd Olsen
bfe42710e7 Overload editor mimedata insert (#2602) 2025-12-07 22:29:36 +01:00
Veronica Berglyd Olsen
a5e2531d2c Fix debug log message 2025-12-07 22:25:33 +01:00
Veronica Berglyd Olsen
13e23593ba Only insert text in editor if there actually is anything to insert (#2598) 2025-12-07 22:22:13 +01:00
Veronica Berglyd Olsen
9a58f2677c Bump to 2.9 Alpha 0 (#2597) 2025-11-30 14:40:55 +01:00
Veronica Berglyd Olsen
29f49660f6 Bump main branch to 2.9 Alpha 0 2025-11-30 14:30:28 +01:00
Veronica Berglyd Olsen
c2e6cb1f44 Merge 2.8 RC 1 into Release (#2596) 2025-11-30 14:28:04 +01:00
Veronica Berglyd Olsen
625be3ad11 Fix docs (#2595) 2025-11-30 14:08:06 +01:00
Veronica Berglyd Olsen
609eed9068 Fix broken link in docs 2025-11-30 14:04:46 +01:00
Veronica Berglyd Olsen
ddceabee6a Release 2.8 RC 1 (#2589) 2025-11-30 13:33:36 +01:00
Veronica Berglyd Olsen
8f01bdef78 Update changelog 2025-11-30 13:30:28 +01:00
Veronica Berglyd Olsen
924d3d324d Update base translation files for remaining languages 2025-11-30 13:25:35 +01:00
Veronica Berglyd Olsen
b31120b271 Update US English, Italian, Japanese and Norwegian 2025-11-30 13:25:15 +01:00
Veronica Berglyd Olsen
200a77bf45 Update docs 2025-11-29 20:25:46 +01:00
Veronica Berglyd Olsen
6223bf212f Update changelog and add new translation string 2025-11-29 20:25:37 +01:00
Veronica Berglyd Olsen
b1f64114dd Merge branch 'main' into release_2.8rc1 2025-11-29 20:02:34 +01:00
Veronica Berglyd Olsen
b2148e5440 Allow overriding language for manuscripts (#2593) 2025-11-29 20:02:12 +01:00
Veronica Berglyd Olsen
8b86f901dc Add a shared function to translate language names 2025-11-29 19:58:54 +01:00
Veronica Berglyd Olsen
830a2d9c40 Add language meta data to HTML export 2025-11-29 19:50:53 +01:00
Veronica Berglyd Olsen
2045927e95 Add a language override setting to manuscript build settings (#2328) 2025-11-29 19:50:28 +01:00
Veronica Berglyd Olsen
1b871fc645 Update US English, Norwegian and Japanese 2025-11-29 15:02:49 +01:00
Veronica Berglyd Olsen
b66f00846d Update changelog and translation files 2025-11-29 13:52:20 +01:00
Veronica Berglyd Olsen
cf795c8f26 Merge branch 'main' into release_2.8rc1 2025-11-29 13:49:50 +01:00
Veronica Berglyd Olsen
d894375d35 Improve example project creation (#2592) 2025-11-29 13:49:10 +01:00
Veronica Berglyd Olsen
d05ed6fe3d Improve test coverage 2025-11-29 13:45:12 +01:00
Veronica Berglyd Olsen
471f841218 Handle cases where the user cancels the example project creation (#2590) 2025-11-29 13:45:00 +01:00
Veronica Berglyd Olsen
72880efafb Fix typo in GUI label 2025-11-28 16:54:32 +01:00
Veronica Berglyd Olsen
9ecac4679d Update translation file 2025-11-28 09:26:50 +01:00
Veronica Berglyd Olsen
896269228e Bump version and update changelog 2025-11-28 09:24:44 +01:00
Veronica Berglyd Olsen
c0a67341f8 Refactor Vim mode (#2588) 2025-11-27 19:46:57 +01:00
Veronica Berglyd Olsen
5efca5e542 Rephrase text in credits 2025-11-27 19:43:47 +01:00
Veronica Berglyd Olsen
0f4370657a Reshuffle the escape key processing again 2025-11-27 19:41:21 +01:00
Veronica Berglyd Olsen
e492643cc7 Simplify the Vim mode checker function 2025-11-27 15:20:18 +01:00
Veronica Berglyd Olsen
c49cfdcece Make sure global escape still works in Vim mode 2025-11-27 15:17:32 +01:00
Veronica Berglyd Olsen
2cea001340 Update credit for Vim mode 2025-11-27 15:02:19 +01:00
Veronica Berglyd Olsen
e7e80a9c3b Update credits 2025-11-26 13:26:56 +01:00
Veronica Berglyd Olsen
e0081130af Add some more detail to the Vim mode docs 2025-11-26 13:19:29 +01:00
Veronica Berglyd Olsen
5ff9911cc0 Re-format markdown to rst 2025-11-26 13:11:46 +01:00
Veronica Berglyd Olsen
bde1de5630 Rename vim mode docs to rst 2025-11-26 12:50:06 +01:00
Veronica Berglyd Olsen
eb3e3e5094 Move Vim mode setting to its own section and add confirmation box 2025-11-26 12:17:13 +01:00
Veronica Berglyd Olsen
1033a3b3b3 Update GUI questions 2025-11-26 12:16:37 +01:00
Veronica Berglyd Olsen
498116b66e Update tests 2025-11-26 12:02:41 +01:00
Veronica Berglyd Olsen
5f68db7ab7 Change how multi-line error messages are handled 2025-11-26 11:57:22 +01:00
Veronica Berglyd Olsen
a487d6ac02 Add Vim mode setting to Preferences and fix editor reinit 2025-11-14 19:40:10 +01:00
Veronica Berglyd Olsen
2f92da9753 Move processing of Vim commands to keyPressEvent handler 2025-11-14 19:19:14 +01:00
Veronica Berglyd Olsen
e4d08cc117 Merge branch 'main' into refactor_vim_mode 2025-11-14 19:02:24 +01:00
Veronica Berglyd Olsen
746ebb7974 Add Vim mode (#2499) 2025-11-14 18:53:55 +01:00
Veronica Berglyd Olsen
2d0cf16029 Merge branch 'main' into vim-mode 2025-11-13 19:27:58 +01:00
idealemu
c3b15d7a8b Merge branch 'vim-mode' of github.com:idealemu/novelWriter into vim-mode 2025-11-13 18:40:16 +01:00
idealemu
9754a9e2e5 Fixed coverage for de command and added docs 2025-11-13 18:39:55 +01:00
Veronica Berglyd Olsen
466ade8d72 Fix inserting line break when auto-padding is enabled (#2587) 2025-11-13 17:21:39 +01:00
Veronica Berglyd Olsen
ea9b4a9952 Add coverage of bug #2586 2025-11-13 17:07:12 +01:00
Veronica Berglyd Olsen
12cee5f791 Make sure we don't insert padding if there are no characters (#2586) 2025-11-13 17:06:18 +01:00
Veronica Berglyd Olsen
8c2ede040f Fix linting errors 2025-11-09 22:14:30 +01:00
Veronica Berglyd Olsen
4864aa6c8e Merge branch 'main' into pr/idealemu/2499 2025-11-09 22:11:44 +01:00
idealemu
f448881423 Added d$ motion, test coverage, and docs 2025-11-09 15:47:22 +01:00
idealemu
5dc0e3889e Added de and db commands and tests 2025-11-09 15:09:42 +01:00
Veronica Berglyd Olsen
ea7101d92b Fix dialog closing not keeping settings (#2585) 2025-11-08 20:36:20 +01:00
Veronica Berglyd Olsen
5e28f6f70f Fix broken test 2025-11-08 20:32:20 +01:00
Veronica Berglyd Olsen
b0f6f340d6 Update how writing stats dialog is closed 2025-11-08 20:27:06 +01:00
Veronica Berglyd Olsen
fd8f300518 Fix the reject overload in NDialog class 2025-11-08 20:26:49 +01:00
Veronica Berglyd Olsen
16653615f2 Customise the font select dialog (#2584) 2025-11-08 17:25:42 +01:00
Veronica Berglyd Olsen
2b5c53640d Use a safer way to replace the font dialog buttons 2025-11-08 17:21:48 +01:00
Veronica Berglyd Olsen
c0f85022cf Rename some variables in tests 2025-11-08 16:56:41 +01:00
Veronica Berglyd Olsen
7adbb9c559 Update module docstring 2025-11-08 16:56:06 +01:00
Veronica Berglyd Olsen
d9d269d601 Update function return type 2025-11-08 16:46:13 +01:00
Veronica Berglyd Olsen
06101cc31e Add test coverage of custom font dialog 2025-11-08 16:42:05 +01:00
Veronica Berglyd Olsen
ffc3953f91 Use geometry for window sizes in config 2025-11-08 16:31:58 +01:00
Veronica Berglyd Olsen
af57b9af20 Update tests 2025-11-08 16:28:33 +01:00
Veronica Berglyd Olsen
48e8772813 Add a customised font dialog 2025-11-08 16:28:21 +01:00
idealemu
bae385ccb0 Temporary docs for vim-mode in markdown 2025-11-08 12:30:36 +01:00
Veronica Berglyd Olsen
1d28fa52f9 Increase spacing on push buttons (#2582) 2025-11-05 20:04:07 +01:00
Veronica Berglyd Olsen
69ddd35cad Add more space between icon and text on push buttons 2025-11-05 19:59:15 +01:00
Veronica Berglyd Olsen
61cbbc1b55 Fix centre on screen/app issues (#2581) 2025-11-03 18:32:49 +01:00
Veronica Berglyd Olsen
1d4b57b5c6 Fix a couple of issues with PR #2580 2025-11-03 18:28:27 +01:00
Veronica Berglyd Olsen
30f62a80f3 Centre windows at startup (#2580) 2025-11-03 18:08:47 +01:00
Veronica Berglyd Olsen
a11dd760db Fix tests 2025-11-03 17:55:59 +01:00
Veronica Berglyd Olsen
8d896e8be8 Also centre Welcome dialog and message boxes 2025-11-03 17:55:50 +01:00
Veronica Berglyd Olsen
be9270a0f7 Centre app window on the screen if it is auto-resized or always if a config option is set 2025-11-03 17:54:54 +01:00
Veronica Berglyd Olsen
b7ceb1776c Block formatting on meta data and headings (#2575) 2025-11-02 18:07:39 +01:00
Veronica Berglyd Olsen
eb0d29c780 Improve error handling and test coverage 2025-11-02 17:36:27 +01:00
Veronica Berglyd Olsen
006c0c88ce Flash editor header red when the user tries to format text that cannot be formatted 2025-11-02 17:25:13 +01:00
Veronica Berglyd Olsen
00439369a8 Block formatting on keyword and heading lines 2025-11-02 16:49:38 +01:00
Veronica Berglyd Olsen
d2944d5d10 Reduce samples (#2574) 2025-11-02 16:10:50 +01:00
Veronica Berglyd Olsen
f069b4e85e Reduce samples to just Alice in Wonderland and fix some formatting 2025-11-02 16:04:29 +01:00
Veronica Berglyd Olsen
e6d2b0c9b3 Improve sample project creation and usage (#2572) 2025-11-01 22:17:18 +01:00
Veronica Berglyd Olsen
2a5da2c155 Add Alice in Wonderland example text 2025-11-01 22:09:02 +01:00
Veronica Berglyd Olsen
f9e297922d Update tests 2025-11-01 22:08:50 +01:00
Veronica Berglyd Olsen
cffa7c6dd8 Fix some syntax highlighting issues 2025-11-01 22:08:33 +01:00
Veronica Berglyd Olsen
cd7c2baf8e Remove the special comments and revert back to previous behaviour 2025-11-01 20:53:10 +01:00
Veronica Berglyd Olsen
f960cd9589 Fix pyright issue and tests 2025-11-01 17:17:26 +01:00
Veronica Berglyd Olsen
939c58f441 Make a few improvements 2025-11-01 17:06:43 +01:00
Veronica Berglyd Olsen
1775614fe2 Extend sample project 2025-11-01 16:58:38 +01:00
Veronica Berglyd Olsen
8c24b80950 Improve reset project behaviour when copying a project 2025-11-01 16:58:22 +01:00
Veronica Berglyd Olsen
1a62ad2608 Fix typo in run_tests script 2025-11-01 15:26:00 +01:00
Veronica Berglyd Olsen
a8138ca579 Populate empty project list by an entry that creates a sample project 2025-11-01 15:24:07 +01:00
Veronica Berglyd Olsen
863d888717 Upgrade Font Awesome icons to version 7.1 2025-11-01 15:13:26 +01:00
Veronica Berglyd Olsen
0bf72def78 Rename assets build workflow (#2568) 2025-10-29 21:30:56 +01:00
Veronica Berglyd Olsen
b4e4cd9e9a Rename assets build workflow 2025-10-29 18:50:41 +01:00
Veronica Berglyd Olsen
df7fd37214 Split up build workflows (#2567) 2025-10-29 18:47:05 +01:00
Veronica Berglyd Olsen
cb36ee03eb Split up build workflows 2025-10-29 17:45:07 +01:00
Veronica Berglyd Olsen
396b874a42 Release 2.8b1 (#2565) 2025-10-29 16:52:37 +01:00
Veronica Berglyd Olsen
16c9ce995f Add missing entries in changelog 2025-10-29 16:24:34 +01:00
Veronica Berglyd Olsen
35a1fdddf1 Fix typos and improve clarity in CHANGELOG.md 2025-10-29 07:57:21 +01:00
Veronica Berglyd Olsen
703c9ade71 Minor fixes to the changelog 2025-10-29 00:02:56 +01:00
Veronica Berglyd Olsen
81ac5a4231 Update changelog 2025-10-28 23:45:52 +01:00
Veronica Berglyd Olsen
9982cc042f Bump version to 2.8 Beta 1 2025-10-28 22:10:23 +01:00
Veronica Berglyd Olsen
09f1793d63 Update tips & tricks in docs (#2564) 2025-10-28 22:09:11 +01:00
Veronica Berglyd Olsen
d8961c4093 Add a tip about line height in the docs (#2559) 2025-10-28 22:02:54 +01:00
Veronica Berglyd Olsen
d830315cfc Update button and icon scales (#2563) 2025-10-28 21:50:59 +01:00
Veronica Berglyd Olsen
ac7e31bdd9 Fix tests 2025-10-28 21:46:33 +01:00
Veronica Berglyd Olsen
72e274a4c3 Adjust the size of alert icon and the colours of the status bar LEDs 2025-10-28 21:18:36 +01:00
Veronica Berglyd Olsen
1fdabe3a26 Fix size of various icons and buttons (#2561) 2025-10-28 21:12:49 +01:00
Veronica Berglyd Olsen
df2840bf9f Dynamically update spell check dictionaries in the menu (#2562) 2025-10-28 20:15:02 +01:00
Veronica Berglyd Olsen
2b00831465 Fix linting error and move spell check update slot to the correct location 2025-10-28 20:09:38 +01:00
Reproog
ad34d45d0b Update novelwriter/guimain.py
Co-authored-by: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com>
2025-10-28 16:14:30 +01:00
Reproog
df77fb67c6 Update novelwriter/gui/mainmenu.py
added above def updateSpellCheckLanguages(self) -> None:
    @pyqtSlot()

Co-authored-by: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com>
2025-10-28 16:14:17 +01:00
Christian Zeitner
e3168163c2 Put loading functions in a separate Method and called it, when Add Dictionaries Window is closed. 2025-10-28 13:50:20 +01:00
Veronica Berglyd Olsen
2f7b04534d Fix button colour bug (#2557) 2025-10-27 22:57:42 +01:00
Veronica Berglyd Olsen
9628712810 Update documentation 2025-10-27 22:53:37 +01:00
Veronica Berglyd Olsen
e7ee41fe4e Fix editor toolbar button colours 2025-10-27 22:48:01 +01:00
Veronica Berglyd Olsen
8dc21fbb66 Issue a warning if a requested colour does not exist, and allow reset of icon colours 2025-10-27 22:47:34 +01:00
Veronica Berglyd Olsen
81a95aba28 Fix dimmed novel selector (#2556) 2025-10-27 22:17:11 +01:00
Veronica Berglyd Olsen
0544599303 Fix brush for disabled novel selector (#2482) 2025-10-27 22:12:04 +01:00
Veronica Berglyd Olsen
7381a4433c Merge branch 'main' into vim-mode 2025-10-27 21:40:00 +01:00
Veronica Berglyd Olsen
b60cbdf5f1 Fix missing workflow permissions (#2555) 2025-10-27 21:38:29 +01:00
Veronica Berglyd Olsen
4e61c6c4dd Merge branch 'main' into update_workflows 2025-10-27 21:33:25 +01:00
Veronica Berglyd Olsen
d2582b0118 Add permissions to dependency assets job 2025-10-27 21:30:57 +01:00
Veronica Berglyd Olsen
dc89935b7f Add permissions to workflows (#2554) 2025-10-27 21:28:08 +01:00
Veronica Berglyd Olsen
23b2ca9af4 Add read permission to all build jobs 2025-10-27 21:22:32 +01:00
Veronica Berglyd Olsen
7bbd2042ae Add permissions to test and linting jobs 2025-10-27 21:18:26 +01:00
Veronica Berglyd Olsen
2d191c87a0 Update buttons and manuscript build (#2553) 2025-10-27 21:12:59 +01:00
Veronica Berglyd Olsen
d9d8e54ed3 Add am auto-update button to manuscript build settings 2025-10-27 21:02:50 +01:00
Veronica Berglyd Olsen
d3b0a48779 Make manuscript tool copy button an action button 2025-10-27 21:01:21 +01:00
Veronica Berglyd Olsen
a8a6d199d1 Always use scrollable combo box and manually update the style sheet in build settings instead 2025-10-27 20:01:25 +01:00
Veronica Berglyd Olsen
cd8cc81b5f Themes and fixes (#2506) 2025-10-27 19:46:55 +01:00
HeyMyian
27771f3565 Adding [Icon] block where missing 2025-10-27 19:42:29 +01:00
HeyMyian
bae59c07db Jewel Case whitespace was missing 2025-10-27 18:51:25 +01:00
HeyMyian
cc72d1018b New theme pair: Jewel Case 2025-10-27 18:40:03 +01:00
HeyMyian
7996108e62 Color adjustments 2025-10-27 18:37:14 +01:00
Myian
53522ca5b4 Merge branch 'main' into theme_fixes 2025-10-27 16:51:54 +01:00
Veronica Berglyd Olsen
55df8a5adf Merge branch 'main' into pr/idealemu/2499 2025-10-26 21:02:53 +01:00
Veronica Berglyd Olsen
b31eb524c3 Update readme (#2550) 2025-10-26 20:59:31 +01:00
Veronica Berglyd Olsen
31437f3d3e Tune the readme a little 2025-10-26 20:25:03 +01:00
Veronica Berglyd Olsen
34ecfba230 Remove the source section of the readme as it's also in teh contributing guide 2025-10-26 20:18:36 +01:00
Veronica Berglyd Olsen
75859ec106 Make icon colours themable (#2549) 2025-10-26 14:27:59 +01:00
Veronica Berglyd Olsen
d6911ed39b Fix tests 2025-10-26 14:24:00 +01:00
Veronica Berglyd Olsen
073838af6e Update theme files 2025-10-26 14:16:20 +01:00
Veronica Berglyd Olsen
4a94ab86c9 Add sidebar icon colour setting and rename format icon settings 2025-10-26 14:16:05 +01:00
Veronica Berglyd Olsen
f74b151c53 Add default icon colours to all themes 2025-10-26 14:02:55 +01:00
Veronica Berglyd Olsen
6db67e909d Add icon colour settings to themes and enforce them on all GUI icons 2025-10-26 14:02:18 +01:00
Veronica Berglyd Olsen
2c1c46b98d Add syntax colour for whitespace (#2548) 2025-10-26 12:52:08 +01:00
Veronica Berglyd Olsen
ba01a2a219 Update documentation 2025-10-26 12:46:01 +01:00
Veronica Berglyd Olsen
0a5261a68c Update all themes 2025-10-26 12:44:23 +01:00
Veronica Berglyd Olsen
61d591e86e Add theme field for white space 2025-10-26 12:38:32 +01:00
Veronica Berglyd Olsen
e032ef5aa5 Minor fixes (#2546) 2025-10-26 12:35:09 +01:00
Veronica Berglyd Olsen
c4e9774ffa Update readmes 2025-10-26 12:06:56 +01:00
Veronica Berglyd Olsen
5a4930f860 Fix role for close buttons 2025-10-26 12:06:45 +01:00
Veronica Berglyd Olsen
66f445c341 Manuscript theme update fix (#2545) 2025-10-26 03:20:40 +01:00
Veronica Berglyd Olsen
f2c2833985 Update test coverage 2025-10-26 03:16:22 +01:00
Veronica Berglyd Olsen
a703e0bb7d Update tests and add more debug output 2025-10-26 02:40:50 +01:00
Veronica Berglyd Olsen
e0bd7d82fb Flip the boolean for scrollable combo boxes 2025-10-26 02:07:55 +01:00
Veronica Berglyd Olsen
8b02c95f51 Add theme update handling to manuscript build settings 2025-10-26 02:04:03 +01:00
Veronica Berglyd Olsen
e492c6575d Add theme update handling to manuscript build tool 2025-10-26 02:00:04 +01:00
Veronica Berglyd Olsen
9339c9ff62 Standardise push buttons (#2544) 2025-10-26 00:16:33 +02:00
Veronica Berglyd Olsen
a02254f5d5 Make minor improvements to the code and fix test on MacOS 2025-10-26 00:12:37 +02:00
Veronica Berglyd Olsen
af36a3b1bf Remove extra qtbase translations for buttons 2025-10-25 23:55:29 +02:00
Veronica Berglyd Olsen
5f34e924d1 Fix broken tests 2025-10-25 23:53:18 +02:00
Veronica Berglyd Olsen
ce939a4053 Clean up button types 2025-10-25 23:52:56 +02:00
Veronica Berglyd Olsen
c9c2b35455 Update dialog buttons on all dialogs and tools 2025-10-25 23:38:19 +02:00
Veronica Berglyd Olsen
1b0c339845 Add more icons 2025-10-25 23:31:47 +02:00
Veronica Berglyd Olsen
2d67cb7dcc Update tests and test coverage 2025-10-25 22:37:19 +02:00
Veronica Berglyd Olsen
1938969a63 Update icon themes 2025-10-25 21:42:39 +02:00
Veronica Berglyd Olsen
bb1d90213b Update standard dialog boxes 2025-10-25 21:38:30 +02:00
Veronica Berglyd Olsen
096686457d Add a standard button generator 2025-10-25 20:47:32 +02:00
Veronica Berglyd Olsen
ba5b2af394 Allow repeated named comments (#2543) 2025-10-22 23:19:11 +02:00
Veronica Berglyd Olsen
f23ce71620 Add stepwise and rerun commands to test runner script 2025-10-22 23:12:27 +02:00
Veronica Berglyd Olsen
10f0f6440b Extend tests 2025-10-22 23:12:11 +02:00
Veronica Berglyd Olsen
20e1126a62 Allow named comments to be repeated (#2483) 2025-10-22 23:11:56 +02:00
Veronica Berglyd Olsen
31b512e3c9 Fix typos in docs (#2542) 2025-10-22 22:47:13 +02:00
Veronica Berglyd Olsen
979d65e444 Merge branch 'main' into fix_docs 2025-10-22 22:43:06 +02:00
Veronica Berglyd Olsen
59035ae96b Clean up pkgutils.py (#2541) 2025-10-22 22:39:05 +02:00
Veronica Berglyd Olsen
ede6a94665 Drop the pip command from pkgutils.py 2025-10-22 22:32:45 +02:00
Veronica Berglyd Olsen
3dd86a77e2 Switch to UV tooling (#2540) 2025-10-22 22:20:15 +02:00
Veronica Berglyd Olsen
3ceaadd0c0 Fix outdated docstring 2025-10-22 22:07:50 +02:00
Veronica Berglyd Olsen
9640d95cef Fix docs a little 2025-10-22 22:02:40 +02:00
Veronica Berglyd Olsen
b3c18001e2 Add build for Ubuntu 26.04 2025-10-22 21:57:20 +02:00
Veronica Berglyd Olsen
df2766d80e Update linting 2025-10-22 21:26:38 +02:00
Veronica Berglyd Olsen
e676bdc322 Drop support for Python 3.10 2025-10-22 21:23:57 +02:00
Veronica Berglyd Olsen
2d7a42d918 Remove requirements files 2025-10-22 21:17:18 +02:00
Veronica Berglyd Olsen
06cb128876 Remove dependencies on requirements files and generate when needed 2025-10-22 21:11:20 +02:00
Veronica Berglyd Olsen
0b79bcd4b4 Fix assets build job 2025-10-22 19:35:35 +02:00
Veronica Berglyd Olsen
687bcc2779 Update MacOS build 2025-10-22 19:30:36 +02:00
Veronica Berglyd Olsen
41c58a52e3 Update Debian build 2025-10-19 00:19:47 +02:00
Veronica Berglyd Olsen
e21d944461 Fix mac workflow and update linting job 2025-10-18 23:23:46 +02:00
Veronica Berglyd Olsen
359d5f36b5 Remove debug settings from workflows 2025-10-18 23:17:53 +02:00
Veronica Berglyd Olsen
e66f19914e Fix case conflict on MacOS and Windows 2025-10-18 23:14:33 +02:00
Veronica Berglyd Olsen
a6e29f0ded Add more debug output 2025-10-18 19:11:01 +02:00
Veronica Berglyd Olsen
40363068e3 Update Windows workflow and try to fix MacOS 2025-10-18 18:51:55 +02:00
Veronica Berglyd Olsen
af86448385 Add setuptools to MacOS workflow 2025-10-18 18:30:58 +02:00
Veronica Berglyd Olsen
177d39c2a3 Move checkout source further up 2025-10-18 18:25:01 +02:00
Veronica Berglyd Olsen
7a9464c592 Update MacOS and Linux workflows 2025-10-18 18:20:13 +02:00
Veronica Berglyd Olsen
4aef01ef32 Make sure only novelwriter source files are included in coverage 2025-10-18 18:08:40 +02:00
Veronica Berglyd Olsen
b4c9d7c76c Fix coverage reporting 2025-10-18 17:58:59 +02:00
Veronica Berglyd Olsen
08d37dd9e8 Fix bug in Linux test workflow 2025-10-18 17:53:01 +02:00
Veronica Berglyd Olsen
10193520a4 Update Linux test workflows 2025-10-18 17:46:47 +02:00
Veronica Berglyd Olsen
c1968ba4e3 Add dependency groups to pyproject and drop pytest-cov dependency 2025-10-18 17:41:25 +02:00
Veronica Berglyd Olsen
47ecf2e886 Fix typos 2025-10-15 09:03:51 +02:00
Veronica Berglyd Olsen
8642086d34 Update CI/CD (#2538) 2025-10-13 19:37:56 +02:00
Veronica Berglyd Olsen
b04dadaa45 Add Python 3.14 to classifiers 2025-10-13 19:33:26 +02:00
Veronica Berglyd Olsen
a5513cc504 Add Python 3.14 and update actions 2025-10-13 19:23:56 +02:00
Veronica Berglyd Olsen
fc622c76a4 Stop showing index rebuild dialog on upgrades (#2537) 2025-10-05 17:52:40 +02:00
Veronica Berglyd Olsen
050e3b09ad Fix test coverage 2025-10-05 17:39:48 +02:00
Veronica Berglyd Olsen
850976335c Don't show index rebuild dialog when just upgrading index 2025-10-05 17:18:42 +02:00
Veronica Berglyd Olsen
0344701f1b Add helper function to combine JSON strings as larger JSON file 2025-10-05 17:13:40 +02:00
Veronica Berglyd Olsen
04198f3ede Remove quiet flag from index rebuild 2025-10-05 17:13:08 +02:00
Veronica Berglyd Olsen
1b671abc05 Add colour to vim mode label 2025-10-04 20:04:35 +02:00
Veronica Berglyd Olsen
0b973d5135 Fix i18n of vim mode 2025-10-04 19:26:07 +02:00
Veronica Berglyd Olsen
b2324a8689 Add the last selection type enum value 2025-10-04 19:05:20 +02:00
Veronica Berglyd Olsen
8be0c3c9b0 Merge branch 'main' into pr/idealemu/2499 2025-10-04 19:04:16 +02:00
Veronica Berglyd Olsen
2bd104705a Minor refactoring and linting (#2536) 2025-10-04 18:53:04 +02:00
Veronica Berglyd Olsen
3d55b49ee6 Update MacOS tests to run on latest 2025-10-04 18:48:51 +02:00
Veronica Berglyd Olsen
42352e9500 Add some more type constants 2025-10-04 18:42:20 +02:00
Veronica Berglyd Olsen
100aad1256 Update linting due to new Ruff rules 2025-10-04 18:36:44 +02:00
Veronica Berglyd Olsen
703d37c3e2 Fix a few more cursor enums and remove unused variable 2025-10-04 18:29:43 +02:00
Veronica Berglyd Olsen
160d15b9b7 Refactor vim mode handling 2025-10-04 18:23:24 +02:00
Veronica Berglyd Olsen
b3a8fc92d0 Update comments in tests 2025-10-04 17:48:57 +02:00
Veronica Berglyd Olsen
fbee69a418 Clean up some minor details 2025-10-04 17:34:02 +02:00
Veronica Berglyd Olsen
31d139aecf Fix new linting issues 2025-10-04 17:22:51 +02:00
Veronica Berglyd Olsen
8be040a9b4 Move vim mode functions 2025-10-04 17:16:02 +02:00
Veronica Berglyd Olsen
5cb47ac5b3 Add more cursor enum constants 2025-10-04 17:14:38 +02:00
Veronica Berglyd Olsen
b7c54779ac Add the vimMode setting to the config file 2025-10-04 16:59:51 +02:00
Veronica Berglyd Olsen
49d23c06a4 Reformat the Vim mode code 2025-10-04 16:57:39 +02:00
idealemu
d0efe8d8d9 Refactor handleVim 2025-09-16 17:58:55 +02:00
idealemu
84c6faa419 Refactor vim tests 2025-09-16 17:39:57 +02:00
idealemu
b23ffd3c19 Refactor vim tests 2025-09-16 17:28:50 +02:00
idealemu
eeefa85e69 Add b and e commands and their tests 2025-09-16 16:58:54 +02:00
Veronica Berglyd Olsen
cbf055bebc Fix imports 2025-09-15 19:44:22 +02:00
idealemu
eee0cc5394 Fix syntax 2025-09-15 19:31:43 +02:00
idealemu
a858c8b43c Fix, new commands, and bump test coverage 2025-09-15 19:31:16 +02:00
idealemu
b7497fd669 Merge branch 'main' into vim-mode 2025-09-15 17:47:02 +02:00
Veronica Berglyd Olsen
98cdd4eedf Merge 2.7.5 (#2524) 2025-09-14 19:48:18 +02:00
Veronica Berglyd Olsen
4d398f170d Add back attribute lost when merging 2025-09-14 19:42:36 +02:00
Veronica Berglyd Olsen
f4c56a1948 Merge release 2.7.5 2025-09-14 19:37:15 +02:00
Veronica Berglyd Olsen
e72bfe1114 Post release fixes (#2523) 2025-09-14 19:28:31 +02:00
Veronica Berglyd Olsen
f019a3cd0c Move the Apache license file back to setup 2025-09-14 19:24:32 +02:00
Veronica Berglyd Olsen
a37482aaad Pin windows build to 2022 image 2025-09-14 18:54:42 +02:00
Veronica Berglyd Olsen
bb01d0e5ae Fix debian build 2025-09-14 18:37:23 +02:00
Veronica Berglyd Olsen
b61aec9212 Release 2.7.5 (#2521) 2025-09-14 17:43:05 +02:00
Veronica Berglyd Olsen
c1d1330350 Bump version and update changelog 2025-09-14 17:37:58 +02:00
HeyMyian
25a1ecc99b Catppuccin tooltips 2025-09-13 23:25:43 +02:00
Veronica Berglyd Olsen
6ed29cfde9 Adjust windows for IME conversion suggestions to not cover text (#2518) 2025-09-13 18:47:29 +02:00
Veronica Berglyd Olsen
da6b9b0980 Add more comments 2025-09-13 15:48:33 +02:00
Veronica Berglyd Olsen
410d8bfe13 Add test coverage 2025-09-13 15:27:38 +02:00
Veronica Berglyd Olsen
42f0d71ecf Clean up types 2025-09-12 22:01:17 +02:00
Amber Flina
8a01ffa832 Other two linters 2025-09-11 16:32:10 -03:00
Amber Flina
bad03c45a0 Linting 2025-09-11 16:26:42 -03:00
Amber Flina
bb876b55fc Handle IMEs 2025-09-11 16:26:42 -03:00
HeyMyian
a1da73adaa New theme pair: Rosé Pine 2025-09-04 21:21:34 +02:00
HeyMyian
37516dda0e Rename Catppuccin files and change some colours 2025-09-04 21:20:26 +02:00
HeyMyian
edd31bee8e Merge branch 'theme_fixes' of https://github.com/HeyMyian/novelWriter into theme_fixes 2025-09-02 21:06:19 +02:00
HeyMyian
5806b9f276 Credits 2025-09-02 21:06:11 +02:00
Veronica Berglyd Olsen
96841bd7b1 Merge branch 'main' into theme_fixes 2025-09-02 21:05:10 +02:00
HeyMyian
67bd25145d Merge branch 'theme_fixes' of https://github.com/HeyMyian/novelWriter into theme_fixes 2025-09-02 21:02:40 +02:00
HeyMyian
635145ea70 Whitespace... 2025-09-02 20:59:52 +02:00
HeyMyian
85c079db70 Change Floral Midnight to be distinct from Catppuccin 2025-09-02 20:58:59 +02:00
HeyMyian
5944984efb Add two Catppuccin flavors 2025-09-02 20:58:28 +02:00
idealemu
4c319bd068 Remove redundant check 2025-08-31 15:58:57 +02:00
idealemu
db80a2e0f6 mend 2025-08-31 15:48:34 +02:00
idealemu
c2fbb5cf22 Test coverage of motions 2025-08-31 15:47:41 +02:00
Veronica Berglyd Olsen
3be8eb4f87 Fix auto complete crash (#2511) 2025-08-31 15:35:57 +02:00
Veronica Berglyd Olsen
08d2a5fa95 Fix linting errors from updated Ruff version 2025-08-31 15:27:55 +02:00
Veronica Berglyd Olsen
d69d2234c4 Rename completer signal 2025-08-31 15:23:33 +02:00
Veronica Berglyd Olsen
33b3a71ecd Make a minor performance improvement in the editor completer 2025-08-31 15:11:51 +02:00
Veronica Berglyd Olsen
b093446020 Fix Qt side crash when forwarding editor auto-complete keypresses (#2510) 2025-08-31 15:08:42 +02:00
idealemu
4db1cdd8e4 VLINE test and fix 2025-08-30 17:16:47 +02:00
idealemu
36a5710863 More test coverage for vim normal mode 2025-08-30 12:09:37 +02:00
idealemu
bd51ccd26a Visual mode tests and correct yy in visual 2025-08-30 12:04:49 +02:00
idealemu
d60a109ecb Move config check outside of handleVim 2025-08-30 10:04:44 +02:00
idealemu
a293da1360 Removed config caching 2025-08-28 09:36:11 +02:00
idealemu
745cfeb9e6 Update docstrings for new ruff rules 2025-08-28 09:26:19 +02:00
Veronica Berglyd Olsen
a7a08fe28d Merge branch 'main' into vim-mode 2025-08-27 21:38:50 +02:00
Veronica Berglyd Olsen
aa83c5c1bc Add more Ruff rules (#2509) 2025-08-27 21:36:46 +02:00
Veronica Berglyd Olsen
5dcc989535 Fix test coverage 2025-08-27 21:30:17 +02:00
Veronica Berglyd Olsen
2afbe95a9c Fix typo 2025-08-27 21:22:57 +02:00
Veronica Berglyd Olsen
5bdbd7c195 Update linting for tests 2025-08-27 21:04:32 +02:00
Veronica Berglyd Olsen
44d117c91d Update linting for utils 2025-08-27 21:01:11 +02:00
Veronica Berglyd Olsen
c174f8f931 Update linting for main code 2025-08-27 21:00:09 +02:00
Veronica Berglyd Olsen
84ff1f4640 Update Ruff settings in project config 2025-08-27 20:47:40 +02:00
Veronica Berglyd Olsen
26e7e70c3f Merge branch 'main' into vim-mode 2025-08-27 18:42:59 +02:00
idealemu
b2ad021230 Made vim tests keystroke delay robust 2025-08-27 11:27:08 +02:00
idealemu
151f047cff Vim mode dd, x, yy, p, P test 2025-08-27 11:18:11 +02:00
idealemu
04bb8f1d1a Vim mode insert O and o tests 2025-08-27 11:02:09 +02:00
idealemu
38c0d33767 Vim mode insert mode tests 2025-08-27 10:59:30 +02:00
idealemu
493947c830 Basic vim mode enabled test 2025-08-27 10:49:34 +02:00
idealemu
beb1ade0b5 Reorder config 2025-08-27 09:37:40 +02:00
idealemu
3885500e7c Vim mode only set when enabled 2025-08-26 18:12:15 +02:00
idealemu
9e132d5ca8 Visual and Vline modes and a few additional commands 2025-08-26 17:57:17 +02:00
idealemu
de21d4755b Added vim status mode bar in the GUI footer 2025-08-25 16:43:16 +02:00
idealemu
d50e164e68 Vim mode internal clipboard and more vim actions 2025-08-24 16:13:52 +02:00
Myian
8380a2fa53 Merge branch 'main' into theme_fixes 2025-08-24 16:10:51 +02:00
Veronica Berglyd Olsen
23a0df61cd Fix font matching style bug (#2503) 2025-08-24 15:51:32 +02:00
Veronica Berglyd Olsen
b484dd6f71 Test the fontMatcher style name reset 2025-08-24 15:47:28 +02:00
Veronica Berglyd Olsen
c986b311fd Merge branch 'main' into font_matching 2025-08-24 15:42:17 +02:00
Veronica Berglyd Olsen
d1c3584651 Drop highlighting trailing spaces (#2505) 2025-08-24 15:42:08 +02:00
Veronica Berglyd Olsen
a9069389db Set the show multiple spaces setting to off by default 2025-08-24 15:31:50 +02:00
Veronica Berglyd Olsen
2bf8ca8ab6 Change the wording for the multiple spaces setting in Preferences 2025-08-24 15:24:05 +02:00
Veronica Berglyd Olsen
b095b0ae12 Drop syntax highlighting for redundant trailing spaces 2025-08-24 15:22:11 +02:00
Myian
d5a6a05fc4 Merge branch 'vkbo:main' into theme_fixes 2025-08-23 23:37:51 +02:00
HeyMyian
c84f6b63ff Spelling of GitHub, Inc. 2025-08-23 22:54:15 +02:00
HeyMyian
92062d4829 Adjust Paragon theme colours 2025-08-23 22:47:59 +02:00
HeyMyian
f742e8ac11 Fix: missing letter in credits 2025-08-23 22:46:02 +02:00
Veronica Berglyd Olsen
65d2a3b313 Reset font style name after loading fonts 2025-08-21 22:41:58 +02:00
Veronica Berglyd Olsen
3c7510d74f Update package files (#2500) 2025-08-18 20:47:27 +02:00
Veronica Berglyd Olsen
be8ec6b4ae Update package files 2025-08-18 20:42:36 +02:00
idealemu
e06cd5eba6 More vim commands 2025-08-16 20:37:43 +02:00
idealemu
13775fcb68 Refactor for camelCase 2025-08-16 12:02:21 +02:00
Veronica Berglyd Olsen
5641fbd83c Fix tests on HighDPI screens (#2496) 2025-08-16 10:46:31 +02:00
Veronica Berglyd Olsen
3bdb108fdb Merge branch 'main' into test_gui_scale 2025-08-16 10:40:44 +02:00
Veronica Berglyd Olsen
19aadd93a0 Add comment to test 2025-08-16 10:38:31 +02:00
Veronica Berglyd Olsen
ce9be475b5 Add scale factor flag to run_tests script 2025-08-16 10:34:50 +02:00
idealemu
b40cd351c3 Disable vim mode by default 2025-08-16 10:11:29 +02:00
idealemu
3b6ad7b851 HJKL, DD motions added 2025-08-16 09:51:39 +02:00
idealemu
d8ac23e398 Moving vim state into doceditor, centralizing vim to doceditor 2025-08-14 17:19:05 +02:00
Veronica Berglyd Olsen
a627eab6f1 Add new themes (#2495) 2025-08-14 10:13:41 +02:00
HeyMyian
88ddb97d43 Update credits 2025-08-14 09:26:36 +02:00
HeyMyian
071654fa06 Fix: missing headertext 2025-08-13 18:39:35 +02:00
HeyMyian
ea602b5f9c Add new themes 2025-08-13 18:18:16 +02:00
Veronica Berglyd Olsen
b39b990eda Update themes (#2494) 2025-08-13 18:00:05 +02:00
HeyMyian
5d7e005f7d Update themes 2025-08-13 11:06:18 +02:00
idealemu
c2627654b9 Initial vim mode prototype proof of concept 2025-08-12 21:15:48 +02:00
Veronica Berglyd Olsen
21ce030463 Improve auto-replace quotes with markup (#2489) 2025-07-27 13:46:01 +02:00
Veronica Berglyd Olsen
c203dcbbb6 Generalise space character detection in quote auto-replace 2025-07-27 13:36:39 +02:00
Veronica Berglyd Olsen
435a72c76b Add test coverage 2025-07-27 13:19:58 +02:00
Veronica Berglyd Olsen
d4fc440725 Tweak the editor auto-replace logic to allow markup for dialogue (#2488) 2025-07-27 12:25:09 +02:00
Veronica Berglyd Olsen
e9407e0152 Update themes (#2481) 2025-07-21 13:45:19 +02:00
HeyMyian
033d515784 Fix Aura theme credits 2025-07-21 12:10:11 +02:00
HeyMyian
4b4825582f Fix Aura theme credits 2025-07-21 10:52:50 +02:00
HeyMyian
9d7e8959e8 Adjust theme colours 2025-07-21 10:47:00 +02:00
Veronica Berglyd Olsen
9aac9301b0 Add a tests run script and more requirement files (#2480) 2025-07-19 17:04:34 +02:00
Veronica Berglyd Olsen
df6cf331ac Change required setuptools to 77.0.3 2025-07-19 16:56:41 +02:00
Veronica Berglyd Olsen
3e66f47c13 Echo the command used in the run tests script 2025-07-19 16:53:05 +02:00
Veronica Berglyd Olsen
bca87429a6 Update setuptools requirements 2025-07-19 16:50:36 +02:00
Veronica Berglyd Olsen
9870fe448b Add more requirements files 2025-07-19 16:46:50 +02:00
Veronica Berglyd Olsen
379ae8ccfb Add helper script to run tests 2025-07-19 16:41:07 +02:00
Veronica Berglyd Olsen
c77b67fdf8 Expose tree and outline shortcuts in Focus Mode (#2479) 2025-07-17 21:41:20 +02:00
Veronica Berglyd Olsen
a0cbb30874 Allow switching to tree, novel or outline by keyboard shortcut from Focus Mode (#1294) 2025-07-17 21:35:32 +02:00
Veronica Berglyd Olsen
aa46be08cf Add progress bar for bulky tasks (#2478) 2025-07-17 19:51:36 +02:00
Veronica Berglyd Olsen
f7366cb2ff Fix linting errors for new rules 2025-07-17 19:47:46 +02:00
Veronica Berglyd Olsen
4bc4c1e204 Add progress bar to global search 2025-07-17 19:42:35 +02:00
Veronica Berglyd Olsen
e77b71bbbc Connect main progress bar to potential bulky operations in the project tree 2025-07-17 18:06:02 +02:00
Veronica Berglyd Olsen
1223e6da84 Fix tests and add GUI refresh 2025-07-17 17:30:07 +02:00
Veronica Berglyd Olsen
d027f218f8 Add progress bar functions in shared class and use it for index rebuild 2025-07-17 16:56:28 +02:00
Veronica Berglyd Olsen
eb659a64bb Add a progress bar over the status bar 2025-07-17 16:55:53 +02:00
Veronica Berglyd Olsen
300edc036f Use label for template title (#2477) 2025-07-17 15:47:45 +02:00
Veronica Berglyd Olsen
ee370ec8bf Fix wrong meta data in sample files 2025-07-17 15:44:06 +02:00
Veronica Berglyd Olsen
ebdd0dbdc0 Update docs 2025-07-17 15:37:42 +02:00
Veronica Berglyd Olsen
c816b24437 Update tests 2025-07-17 15:31:13 +02:00
Veronica Berglyd Olsen
20709145c8 Update template title when creating file from template 2025-07-17 15:31:03 +02:00
Veronica Berglyd Olsen
133d3c7151 Pre Release 2.8 Alpha 2 (#2476) 2025-07-16 16:41:57 +02:00
Veronica Berglyd Olsen
25a577e32e Bump version to 2.8a2 2025-07-16 16:36:04 +02:00
Veronica Berglyd Olsen
3c01584615 Update default themes (#2475) 2025-07-16 16:28:30 +02:00
Veronica Berglyd Olsen
bea80e7f71 Clean up sample project 2025-07-16 12:15:23 +02:00
Veronica Berglyd Olsen
d7a6c14fe7 Update highlighter tests 2025-07-16 12:15:13 +02:00
Veronica Berglyd Olsen
30008bafe7 Tweak default themes a little 2025-07-16 12:14:59 +02:00
Veronica Berglyd Olsen
4f5d1847e0 Update icon credits info (#2474) 2025-07-15 20:44:44 +02:00
Veronica Berglyd Olsen
e7e7d7d2c0 Update icon credits 2025-07-15 20:39:50 +02:00
Veronica Berglyd Olsen
5114f0ac24 Merge release 2.7.4 into main (#2473) 2025-07-15 19:10:26 +02:00
Veronica Berglyd Olsen
832bf158da Fix icon theme completeness test 2025-07-15 19:02:51 +02:00
Veronica Berglyd Olsen
af83cc58cb Add missing icons to material sharp icon themes 2025-07-15 18:56:54 +02:00
Veronica Berglyd Olsen
1318a3844e Merge main and 2.7.4 2025-07-15 18:53:10 +02:00
Veronica Berglyd Olsen
ae8d7ef99f Post release updates (#2472) 2025-07-15 17:48:13 +02:00
Veronica Berglyd Olsen
0503b02d17 Remove Ubuntu Oracular release 2025-07-15 17:33:32 +02:00
Veronica Berglyd Olsen
9a158d76b4 Release 2.7.4 (#2470) 2025-07-15 17:15:10 +02:00
Veronica Berglyd Olsen
2017525b77 Bump version number and update changelog 2025-07-15 17:00:07 +02:00
Veronica Berglyd Olsen
d0b09bce20 Update i18n (#2469) 2025-07-15 16:52:58 +02:00
Veronica Berglyd Olsen
cfd9b63190 Update Czech and French translations 2025-07-15 16:45:22 +02:00
Veronica Berglyd Olsen
05e865e649 Update existing translation files 2025-07-15 16:43:29 +02:00
Veronica Berglyd Olsen
f25124fd8a Clean up icon themes build (#2467) 2025-07-15 16:21:15 +02:00
Veronica Berglyd Olsen
b92157c292 Fix test 2025-07-15 16:12:29 +02:00
Veronica Berglyd Olsen
c2dcb6a075 Update ignore and build scripts 2025-07-15 16:00:45 +02:00
Veronica Berglyd Olsen
00f0c6ea3c Remove optional icon themes and add new themes 2025-07-15 16:00:20 +02:00
Veronica Berglyd Olsen
e92cf6c761 Update icon builds 2025-07-15 15:56:00 +02:00
Veronica Berglyd Olsen
d0092d5a5e Remove theme description field (#2466) 2025-07-14 19:38:01 +02:00
Veronica Berglyd Olsen
4a0ed710a3 Update credits and documentation 2025-07-14 19:33:35 +02:00
Veronica Berglyd Olsen
df89f183e0 Clean up theme files 2025-07-14 19:33:23 +02:00
Veronica Berglyd Olsen
06b6adbcde Remove description field from theme parsing and testing 2025-07-14 19:33:01 +02:00
Veronica Berglyd Olsen
f2b94095c3 Fix 4 byte Unicode support in editor (#2451) 2025-07-13 19:02:58 +02:00
Veronica Berglyd Olsen
cd474f3152 Add full test coverage of syntax highlighter 2025-07-13 18:59:13 +02:00
Veronica Berglyd Olsen
c40507addb Fix Unicode bug in syntax highlighter 2025-07-13 18:58:52 +02:00
Benson Muite
989d655c1f Add git as a Fedora dependency for codecov 2025-07-09 18:41:14 +03:00
Benson Muite
094353f64e Fix container image name 2025-07-09 18:07:20 +03:00
Veronica Berglyd Olsen
e795b345c5 Merge remote-tracking branch 'origin/unicode_fix' into unicode_fix 2025-07-09 12:50:04 +02:00
Veronica Berglyd Olsen
4a04c24b62 Merge branch 'main' into unicode_fix 2025-07-09 12:49:08 +02:00
Veronica Berglyd Olsen
36ec721b1e Remove sed and fix bug in fedora yaml 2025-07-09 12:37:55 +02:00
Benson Muite
f1dae3e62e Test on Fedora linux 2025-07-09 10:59:20 +03:00
Veronica Berglyd Olsen
90860dbbf1 Fix colour reset bug for status labels (#2461) 2025-07-08 15:46:01 +02:00
Veronica Berglyd Olsen
7d2be7da77 Update file format comment 2025-07-08 15:41:01 +02:00
Veronica Berglyd Olsen
551a7609f8 Preserve status icon custom colour when switching theme (#2452) 2025-07-08 15:19:33 +02:00
Veronica Berglyd Olsen
791da75ae9 Merge 2.7.3 release into 2.8 branch (#2460) 2025-07-07 19:00:47 +02:00
Veronica Berglyd Olsen
aa1fd82f3a Merge 2.7.3 release into current main 2025-07-07 18:41:36 +02:00
Veronica Berglyd Olsen
2e8ee9dadf Release 2.7.3 (#2458) 2025-07-07 17:25:26 +02:00
Veronica Berglyd Olsen
0b8d613044 Update changelog notes 2025-07-07 17:16:11 +02:00
Veronica Berglyd Olsen
64b0896eaf Bump version and update changelog 2025-07-07 17:14:51 +02:00
Veronica Berglyd Olsen
cd5151be94 Update license info 2025-07-07 17:04:53 +02:00
Veronica Berglyd Olsen
367bb2e5ed Improve dialogue highlighting settings (#2457) 2025-07-06 18:27:26 +02:00
Veronica Berglyd Olsen
a748a69de3 Remove redundant string compact implementation 2025-07-06 18:24:05 +02:00
Veronica Berglyd Olsen
ec9e478399 Improve dialogue line symbol setting box (#2453) 2025-07-06 18:20:13 +02:00
Veronica Berglyd Olsen
dadc7edbd9 Move the open ended dialogue setting in Preferences (#2454) 2025-07-06 18:14:33 +02:00
Veronica Berglyd Olsen
e41f6a5fb3 Fix ConfigParser interpolation (#2456) 2025-07-06 17:35:18 +02:00
Veronica Berglyd Olsen
3149e7ec0d Disable config parser interpolation with % (#2455) 2025-07-06 17:29:19 +02:00
Veronica Berglyd Olsen
d8d60faa6b Add test document to repo for now 2025-07-06 17:09:21 +02:00
Veronica Berglyd Olsen
58eda950f8 Add test coverage for spell checker with 4 byte Unicode 2025-07-05 17:52:19 +02:00
Veronica Berglyd Olsen
ad3760762f Fix spell checking when 4 byte are in use 2025-07-05 17:19:02 +02:00
Veronica Berglyd Olsen
3c8a0ace60 Add test for utf16CharMap 2025-07-05 17:18:04 +02:00
Veronica Berglyd Olsen
7a90ef8bc4 Merge branch 'main' into unicode_fix 2025-07-05 16:00:06 +02:00
Veronica Berglyd Olsen
c12a864e8a Revert Qt regex and use UTF-16 to UCS-4 index map for all highlighting 2025-07-05 15:53:34 +02:00
Veronica Berglyd Olsen
5aef93245b Add more themes (#2450) 2025-07-05 15:39:32 +02:00
Myian
3352a24750 fix: rename the Auras 2025-07-05 15:33:42 +02:00
Myian
590f13203a fix: Classic-O Light url 2025-07-05 14:23:24 +02:00
Myian
c832b2d860 fix: Primer Light headertag 2025-07-05 14:17:50 +02:00
Veronica Berglyd Olsen
8067acdc1c Merge branch 'main' into unicode_fix 2025-07-05 14:17:16 +02:00
Myian
b3ea6af2fd Merge branch 'vkbo:main' into add_themes 2025-07-05 14:03:29 +02:00
Myian
30530b1b8b add more themes 2025-07-05 14:02:56 +02:00
Veronica Berglyd Olsen
57bed18ccf Make dialog parser and keyword lines work with 4 byte unicode 2025-07-05 01:50:47 +02:00
Veronica Berglyd Olsen
f8a333c4ea Make editor auto-replace work with 4 byte Unicode 2025-07-05 01:50:03 +02:00
Veronica Berglyd Olsen
680fc32786 Fix highlighting of markup and spell checking for 4 byte Unicode 2025-07-04 23:24:23 +02:00
Veronica Berglyd Olsen
9af498d69a Drop redundant re.UNICODE flag 2025-07-04 20:20:48 +02:00
Veronica Berglyd Olsen
7e2b95d390 Add all used licenses (#2446) 2025-07-02 18:26:16 +02:00
Veronica Berglyd Olsen
168bb0be88 Update license fields in project file to latest format 2025-07-02 17:55:06 +02:00
Veronica Berglyd Olsen
849f6c7d05 Update credits files 2025-07-02 17:42:57 +02:00
Veronica Berglyd Olsen
d1c3643cff Add all used licenses to package meta 2025-07-02 17:41:41 +02:00
Veronica Berglyd Olsen
5ee362dcf4 Revert license field (#2435) 2025-06-25 10:28:05 +02:00
Veronica Berglyd Olsen
453502e1c7 Revert the format of the license field in the pyrproject file (#2434) 2025-06-25 10:23:00 +02:00
Veronica Berglyd Olsen
0b6e2bc260 Merge 2.7.2 into main (#2432) 2025-06-24 17:21:53 +02:00
Veronica Berglyd Olsen
5b24d8e61a Fix merge issue 2025-06-24 17:16:39 +02:00
Veronica Berglyd Olsen
23ff933d38 Merge 2.7.2 into main 2025-06-24 17:12:43 +02:00
Veronica Berglyd Olsen
da3383a67c Release 2.7.2 (#2430) 2025-06-24 16:43:34 +02:00
Veronica Berglyd Olsen
4dd2d63d9b Update changelog 2025-06-24 16:40:25 +02:00
Veronica Berglyd Olsen
b16783143f Bump version to 2.7.2 and update changelog 2025-06-24 16:37:50 +02:00
Veronica Berglyd Olsen
590c66d1eb Fix missing tag display in outline (#2429) 2025-06-24 16:23:15 +02:00
Veronica Berglyd Olsen
b4db960e68 Add scene tag to sample main scene 2025-06-24 16:16:15 +02:00
Veronica Berglyd Olsen
aaf4ede04d Update test coverage 2025-06-24 16:15:49 +02:00
Veronica Berglyd Olsen
5ae385ec02 Add tag to reference by keyword lookup 2025-06-24 16:15:35 +02:00
Veronica Berglyd Olsen
ad2288e2fc Add tag value for novel docs in Outline and Novel View (#2428) 2025-06-24 16:05:59 +02:00
Veronica Berglyd Olsen
4b5f3c8af8 Clarify text alignment and break behaviour (#2427) 2025-06-24 09:07:40 +02:00
Veronica Berglyd Olsen
c1dd2ebb92 Fix typos and inconsistencies 2025-06-24 00:22:35 +02:00
Veronica Berglyd Olsen
a210a665fb Update documentation 2025-06-24 00:08:08 +02:00
Veronica Berglyd Olsen
979a55d24a Add alignment precedence test to HTML tests 2025-06-24 00:07:55 +02:00
Veronica Berglyd Olsen
3c474987b2 Check indent and justify after lines are combined in tokenizer, not before (#2426) 2025-06-23 23:24:20 +02:00
Veronica Berglyd Olsen
91e83305e6 Add Espresso and Noctis themes (#2422) 2025-06-23 13:52:22 +02:00
Veronica Berglyd Olsen
cf3f6caca8 Fix Noctis button text colour 2025-06-20 17:12:00 +02:00
Veronica Berglyd Olsen
ab1d55611f Add Noctis theme 2025-06-20 17:06:50 +02:00
Veronica Berglyd Olsen
aff634a970 Add Noctis Lux theme 2025-06-20 16:54:14 +02:00
Veronica Berglyd Olsen
6ed572772f Add theme description 2025-06-20 16:47:11 +02:00
Veronica Berglyd Olsen
cc206d5542 Merge remote-tracking branch 'origin/espresso_theme' into espresso_theme 2025-06-20 16:45:22 +02:00
Veronica Berglyd Olsen
8001b914b1 Merge branch 'main' into espresso_theme 2025-06-20 16:43:06 +02:00
Veronica Berglyd Olsen
afc3e862b0 Change theme meta settings (#2423) 2025-06-20 16:42:55 +02:00
Veronica Berglyd Olsen
8ea6cc8bac Merge branch 'main' into theme_settings 2025-06-20 16:38:10 +02:00
Veronica Berglyd Olsen
cdc05320d9 Update existing theme files 2025-06-20 16:36:39 +02:00
Veronica Berglyd Olsen
b64c2f3597 Refactor the theme setting meta fields and requirements 2025-06-20 16:35:58 +02:00
Veronica Berglyd Olsen
e1b082d189 Improve tooltip and highlight 2025-06-20 12:03:20 +02:00
Veronica Berglyd Olsen
7fdf175329 Merge branch 'main' into espresso_theme 2025-06-20 00:17:12 +02:00
Veronica Berglyd Olsen
e6580d4676 Make some minor changes to themes (#2418) 2025-06-20 00:16:00 +02:00
Veronica Berglyd Olsen
b6de4fe823 First iteration of the espresso theme 2025-06-20 00:13:15 +02:00
Veronica Berglyd Olsen
51da6fe1a8 Merge branch 'main' into theme_tweaks 2025-06-19 22:11:24 +02:00
Veronica Berglyd Olsen
aba179d2de Improve story comment handling (#2421) 2025-06-19 22:02:17 +02:00
Veronica Berglyd Olsen
80cabea362 Merge branch 'main' into story_comments_handling 2025-06-19 21:57:46 +02:00
Veronica Berglyd Olsen
fad4210c9c Update Primer themes (#2419) 2025-06-19 21:57:33 +02:00
Veronica Berglyd Olsen
32091ffd94 Add test for story comment tokenizer 2025-06-19 21:49:33 +02:00
Veronica Berglyd Olsen
8d2551e0b6 Add notes toggle test coverage 2025-06-19 21:35:39 +02:00
Veronica Berglyd Olsen
0d94a84724 Fix tests 2025-06-19 21:32:11 +02:00
Veronica Berglyd Olsen
efa82e1761 Add more new features to the Lipsum test project 2025-06-19 21:31:57 +02:00
Veronica Berglyd Olsen
c4cd151f2c Compact repeated blocks in both meta and note types 2025-06-19 21:05:44 +02:00
Myian
4874c02c44 fix highlight? 2025-06-19 21:04:42 +02:00
Veronica Berglyd Olsen
ba4fdd1f92 Split up block types of comments in build formats 2025-06-19 20:47:34 +02:00
Veronica Berglyd Olsen
c598fdd009 Add separate toggle for notes in viewer 2025-06-19 20:30:54 +02:00
Veronica Berglyd Olsen
0bbe29bc2e Fix comments visibility (#2420) 2025-06-19 20:27:36 +02:00
Veronica Berglyd Olsen
e690243fc3 Show notes and story structure comments in the viewer 2025-06-19 20:21:19 +02:00
Veronica Berglyd Olsen
4eaac8dbe8 Fix issues with the Solarized themes 2025-06-19 20:06:30 +02:00
Veronica Berglyd Olsen
dbf0b5d3f7 Modify the style to show a scroll bar for combo boxes 2025-06-19 19:29:14 +02:00
Myian
17e2c30f6e Merge branch 'primer' of https://github.com/HeyMyian/novelWriter into primer 2025-06-19 17:31:26 +02:00
Myian
36b757c224 better contrast for some elements 2025-06-19 17:31:24 +02:00
Veronica Berglyd Olsen
1ae77b145b Merge branch 'main' into primer 2025-06-19 15:42:04 +02:00
Myian
87f2f0eb24 fix tooltip 2025-06-19 13:24:35 +02:00
Myian
b2d31022af adjusting colors and change name 2025-06-19 13:16:23 +02:00
Veronica Berglyd Olsen
110d8b8e59 Swap value and modifier colours in default themes 2025-06-18 20:50:33 +02:00
Veronica Berglyd Olsen
5a177e500e Update the help text for theme selections in Preferences 2025-06-18 20:50:12 +02:00
Veronica Berglyd Olsen
03dcb63cf6 Merge 2.7.2 bugfixes into main (#2417) 2025-06-18 20:30:41 +02:00
Veronica Berglyd Olsen
45a41b6109 Merge 2.7.2 bugfixes into main 2025-06-18 20:26:56 +02:00
Veronica Berglyd Olsen
74862969e1 Fix page breaks in PDFs (#2416) 2025-06-18 20:21:09 +02:00
Veronica Berglyd Olsen
92ef020342 Display headings with a line break on a single line 2025-06-18 19:26:41 +02:00
Veronica Berglyd Olsen
2176dd2020 Only add page break before first line of a heading in PDF and preview (#2415) 2025-06-18 19:25:39 +02:00
Veronica Berglyd Olsen
bc624dc079 Add markdown-style highlight (#2412) 2025-06-16 22:13:48 +02:00
Veronica Berglyd Olsen
0b13d40516 Add text pattern test 2025-06-16 21:46:27 +02:00
Veronica Berglyd Olsen
e82c161b11 Merge branch 'main' into markdown_highlight 2025-06-16 21:41:41 +02:00
Veronica Berglyd Olsen
307cd0966b Merge branch 'release' 2025-06-16 21:40:45 +02:00
Veronica Berglyd Olsen
2ec943d118 Fix escape characters in document formats (#2411) 2025-06-16 19:00:51 +02:00
Veronica Berglyd Olsen
01733bdbaa Use dict comprehension in auto replace processing 2025-06-16 18:58:07 +02:00
Veronica Berglyd Olsen
5bc39d29eb Process escapes in docx and qdoc classes (#2410) 2025-06-16 18:50:21 +02:00
Veronica Berglyd Olsen
c0da955fc6 Add button and menu entry for markdown highlight 2025-06-16 18:47:16 +02:00
Veronica Berglyd Olsen
148fc68590 Add markdown highlight format 2025-06-16 18:46:37 +02:00
Veronica Berglyd Olsen
1c150e0011 Add current line highlight (#2405) 2025-06-14 17:36:39 +02:00
Veronica Berglyd Olsen
cbc79d7082 Merge line highlight with existing signal handler for cursor move 2025-06-14 17:30:30 +02:00
Veronica Berglyd Olsen
6d04c88d83 Keep the ExtraSelection object around to prevent garbage collector race and segfault 2025-06-14 17:20:34 +02:00
Veronica Berglyd Olsen
d5dc66a33c Add to preferences test 2025-06-14 17:13:35 +02:00
Veronica Berglyd Olsen
2947721727 Improve test coverage 2025-06-14 17:08:06 +02:00
Veronica Berglyd Olsen
f6408e74d2 Update themes and docs 2025-06-14 17:06:02 +02:00
Veronica Berglyd Olsen
7a95980d2f Add theme setting for current line 2025-06-14 17:04:53 +02:00
Veronica Berglyd Olsen
2589c43214 Expose line highlight setting in Preferences 2025-06-14 16:45:06 +02:00
Veronica Berglyd Olsen
5032ffdfd4 Add current line highlight 2025-06-14 16:44:51 +02:00
Veronica Berglyd Olsen
1b977e866b Make HTML output more consistent (#2404) 2025-06-14 15:34:49 +02:00
Veronica Berglyd Olsen
307e80bac9 Update tests 2025-06-14 15:29:11 +02:00
Veronica Berglyd Olsen
af6b35cc43 Improve handling of CSS styles, and add viewport meta tag (#2358) 2025-06-14 15:28:51 +02:00
Veronica Berglyd Olsen
bae654f260 Clean up log messages from dialogs (#2402) 2025-06-14 14:26:28 +02:00
Veronica Berglyd Olsen
ff36d38f43 Improve formatting of log messages made from message box content 2025-06-14 14:22:14 +02:00
Veronica Berglyd Olsen
88a195b4e2 Update deb build and release 2.8 Alpha 1 for Launchpad (#2401) 2025-06-13 22:37:18 +02:00
Veronica Berglyd Olsen
2bd298e673 Bump version to 2.8 Alpha 1 2025-06-13 22:31:34 +02:00
Veronica Berglyd Olsen
ad89a043c9 Update build files for 2.8 2025-06-13 22:31:17 +02:00
Veronica Berglyd Olsen
03506c97b0 Allow theme colours for status and importance labels (#2400) 2025-06-13 22:02:54 +02:00
Veronica Berglyd Olsen
9384b8a6b9 Update test coverage 2025-06-13 21:37:31 +02:00
Veronica Berglyd Olsen
e3eea2628a Fix current tests 2025-06-12 19:22:11 +02:00
Veronica Berglyd Olsen
ff85c6688f Add methods to refresh status icons on theme change 2025-06-12 17:59:38 +02:00
Veronica Berglyd Olsen
2e0ee9b75f Update project settings for for status and importance colours 2025-06-12 16:55:28 +02:00
Veronica Berglyd Olsen
fe46a82e63 Change how colours are stored for status labels to use theme colour or hex format 2025-06-12 16:55:12 +02:00
Veronica Berglyd Olsen
67d49a8f2b Remove theme key from theme colours list 2025-06-12 16:52:24 +02:00
Veronica Berglyd Olsen
885b669c30 Add LCARS theme (#2399) 2025-06-12 11:46:50 +02:00
Veronica Berglyd Olsen
5ab3736f05 Tweak colours 2025-06-12 11:42:52 +02:00
Veronica Berglyd Olsen
968bdbf12a Add LCARS theme 2025-06-11 21:57:15 +02:00
Veronica Berglyd Olsen
1608f34677 Make some minor tweaks to themes and update docs (#2396) 2025-06-11 20:27:18 +02:00
Veronica Berglyd Olsen
98d9853c7e Tweak the opacity of paged sidebar buttons and welcome dialog list 2025-06-11 00:14:46 +02:00
Veronica Berglyd Olsen
aeac9840f1 Tweaks some theme colours 2025-06-11 00:09:06 +02:00
Veronica Berglyd Olsen
6a9e268eb7 Update theme customisation documentation 2025-06-11 00:08:17 +02:00
Veronica Berglyd Olsen
186062926a Change some defaults and fix index of new projects (#2395) 2025-06-10 23:41:52 +02:00
Veronica Berglyd Olsen
f7691f6909 Make sure manual files exist for testing 2025-06-10 23:29:17 +02:00
Veronica Berglyd Olsen
4e02c8a63a Change a few defaults in config 2025-06-10 23:28:58 +02:00
Veronica Berglyd Olsen
bd3e23da33 Build index on new project creation 2025-06-10 23:16:10 +02:00
Veronica Berglyd Olsen
045b2619b2 Merge release 2.7.1 into 2.8a0 2025-06-10 00:10:20 +02:00
Veronica Berglyd Olsen
8c38bece3a Update license setting in pyproject.toml 2025-06-10 00:09:04 +02:00
Veronica Berglyd Olsen
d61329a4f3 Improve build code 2025-06-10 00:08:48 +02:00
Veronica Berglyd Olsen
635493f1c1 Post release updates and AppImage fix 2025-06-09 23:42:34 +02:00
Veronica Berglyd Olsen
364b7bcf99 Release 2.7.1 (#2393) 2025-06-09 23:11:23 +02:00
Veronica Berglyd Olsen
7d53c4a06b Extend changelog and fix release date 2025-06-09 23:08:09 +02:00
Veronica Berglyd Olsen
e3981aad60 Update changelog 2025-06-09 23:06:14 +02:00
Veronica Berglyd Olsen
f08078bd08 Update Czech translation 2025-06-09 23:00:41 +02:00
Veronica Berglyd Olsen
5d1e781d20 Bump version to 2.7.1 2025-06-09 22:57:33 +02:00
Veronica Berglyd Olsen
d1d5116536 Update the AppImage build scripts (#2392) 2025-06-09 22:52:17 +02:00
Veronica Berglyd Olsen
6379f031c2 Prune the AppImage a little, and prune Windows installer less 2025-06-09 22:49:00 +02:00
Veronica Berglyd Olsen
d153d80595 Use lower case for release names 2025-06-09 22:01:22 +02:00
Veronica Berglyd Olsen
28c45719e2 Move libxcb-cursor 2025-06-09 19:36:39 +02:00
Veronica Berglyd Olsen
e6befda146 Use env var for appimagetool 2025-06-09 19:08:19 +02:00
Veronica Berglyd Olsen
910723bbcd Add symlink 2025-06-09 19:02:53 +02:00
Veronica Berglyd Olsen
a534e30467 Add the appimagetool exec 2025-06-09 18:51:49 +02:00
Veronica Berglyd Olsen
dd7c8162ac Update appimage build 2025-06-09 18:38:53 +02:00
Veronica Berglyd Olsen
2bffa83d62 Update app description 2025-06-09 15:46:17 +02:00
Veronica Berglyd Olsen
01514a94e1 Fix tag and auto-complete bugs (#2389) 2025-06-06 19:23:49 +02:00
Veronica Berglyd Olsen
53355dbcc6 Don't remove tags for the tag keyword (#2386) 2025-06-06 19:16:59 +02:00
Veronica Berglyd Olsen
bf1067a346 Make sure project items in inactive classes are removed from the index (#2387) 2025-06-06 19:07:32 +02:00
Veronica Berglyd Olsen
53784b310e Close instead of hide auto-complete menu when inactive (#2386) 2025-06-06 18:39:21 +02:00
Veronica Berglyd Olsen
e816cbc51b Add "Blue Streak" themes (#2388) 2025-06-06 18:30:15 +02:00
Veronica Berglyd Olsen
0a37981251 Add Blue Streak Light, and update dark theme 2025-06-06 18:25:45 +02:00
Veronica Berglyd Olsen
d280cb510d Update blue streak dark theme with new settings 2025-06-05 22:10:33 +02:00
Veronica Berglyd Olsen
c08771dc56 Add blue streak initial theme 2025-06-05 22:05:14 +02:00
Veronica Berglyd Olsen
1e58c47286 Add more theme fields (#2384) 2025-06-05 22:03:57 +02:00
Veronica Berglyd Olsen
8c0f3b037a Update themes 2025-06-05 21:55:08 +02:00
Veronica Berglyd Olsen
550cba2f43 Add theme settings for active icons, a base colour, and accent palette colour (#2382) 2025-06-05 18:15:31 +02:00
Veronica Berglyd Olsen
33f4efc5b1 Improve welcome dialog and add more theme colour options (#2380) 2025-06-04 22:27:07 +02:00
Veronica Berglyd Olsen
a92f9d7a6f Update docs 2025-06-04 22:23:26 +02:00
Veronica Berglyd Olsen
57b6b92e04 Update themes 2025-06-04 22:01:12 +02:00
Veronica Berglyd Olsen
0ab33e1843 Allow adjusting lighter and darker as well in theme files 2025-06-04 21:09:35 +02:00
Veronica Berglyd Olsen
8ce6c678aa Use a transparent image for the welcome dialog 2025-06-04 20:37:30 +02:00
Veronica Berglyd Olsen
c63336ade4 Add Primer themes (#2377) 2025-06-04 15:14:18 +02:00
Veronica Berglyd Olsen
e276a5d825 Merge branch 'main' into Add-Primer-Dark-theme 2025-06-04 15:10:46 +02:00
Veronica Berglyd Olsen
d06731ff19 Improve theme testing and format of theme files (#2378) 2025-06-04 15:10:34 +02:00
Veronica Berglyd Olsen
320578a61c Clean up theme files a little 2025-06-04 15:05:35 +02:00
Veronica Berglyd Olsen
92f68dfd58 Add tests for the theme and icons files 2025-06-04 15:05:22 +02:00
Myian
d850d901e9 Add Primer Light theme
Adds the Primer Light theme based on the GitHub/Primer colors.
2025-06-04 11:28:05 +02:00
Myian
492294163c Add Primer Dark theme
Adds the Primer Dark theme based on the GitHub/Primer colors.
2025-06-03 23:23:09 +02:00
Veronica Berglyd Olsen
cd38e6a6ae Add light/dark theme switching and merge syntax and GUI theme (#2373) 2025-06-03 22:54:52 +02:00
Veronica Berglyd Olsen
334f946870 Add remaining missing coverage and revert loadTheme return type 2025-06-03 22:47:17 +02:00
Veronica Berglyd Olsen
bd2353f7bc Add tests for sidebar and themes 2025-06-03 22:36:53 +02:00
Veronica Berglyd Olsen
f6214ae36d Build AppImage with Python 3.11 again 2025-06-03 19:53:00 +02:00
Veronica Berglyd Olsen
5fee3ecdb8 Fix broken tests 2025-06-03 17:39:21 +02:00
Veronica Berglyd Olsen
638f93499b Scan themes on startup instead 2025-06-03 17:31:52 +02:00
Veronica Berglyd Olsen
df7a721626 Update documentation on colour themes 2025-06-03 17:30:59 +02:00
Veronica Berglyd Olsen
60b5f660e8 Rename colour aqua to cyan in themes 2025-06-03 17:30:13 +02:00
Veronica Berglyd Olsen
82188d156b Change the name and alpha format of colour themes 2025-06-03 12:02:38 +02:00
Veronica Berglyd Olsen
b0ea1781e7 Fix test 2025-06-02 23:28:28 +02:00
Veronica Berglyd Olsen
44528b6173 Fix icon theme reload 2025-06-02 23:20:51 +02:00
Veronica Berglyd Olsen
059085a21a Add theme icons 2025-06-02 23:13:30 +02:00
Veronica Berglyd Olsen
89a7c3e5cb Add dark/light toggle button to sidebar 2025-06-02 23:08:01 +02:00
Veronica Berglyd Olsen
10475f32fb Remove references to syntax themes 2025-06-02 20:21:35 +02:00
Veronica Berglyd Olsen
55e601cf9d Merge and update the grey themes 2025-06-02 20:18:19 +02:00
Veronica Berglyd Olsen
d0f11a2595 Fix a few inconsistencies 2025-06-02 20:05:52 +02:00
Veronica Berglyd Olsen
eed5cd1877 Merge and update the owl and tango themes 2025-06-02 20:02:00 +02:00
Veronica Berglyd Olsen
3258b8806f Merge and update the tomorrow themes 2025-06-02 19:15:33 +02:00
Veronica Berglyd Olsen
072d0f0acd Merge and update the default themes 2025-06-02 18:40:58 +02:00
Veronica Berglyd Olsen
04526385d1 Update existing matched GUI and syntax themes 2025-06-02 17:43:27 +02:00
Veronica Berglyd Olsen
857327e9ef Update theme colour processing and fix current tests 2025-06-02 17:06:28 +02:00
Veronica Berglyd Olsen
1fafa0dae7 Remove syntax theme parsing and add light and dark theme user settings 2025-06-02 16:28:06 +02:00
Veronica Berglyd Olsen
e67ae4f3bf Block main GUI from resizing to larger than the screen (#2369) 2025-06-01 19:24:15 +02:00
Veronica Berglyd Olsen
d12113b94c Limit main GUI size to available screen size of the current screen (#2354) 2025-06-01 18:41:13 +02:00
Veronica Berglyd Olsen
682804f703 Bump main branch to 2.8 Alpha 0 2025-06-01 15:00:44 +02:00
Veronica Berglyd Olsen
7aea5eb5af Add setuptools to appimage build 2025-06-01 12:42:02 +02:00
Blayney Walshe
58bbb2be38 removed local config files 2025-02-22 15:22:05 -05:00
Blayney Walshe
02cb9e9090 Update novelwriter/dialogs/projectsettings.py
Co-authored-by: Veronica Berglyd Olsen <1619840+vkbo@users.noreply.github.com>
2025-02-22 15:17:36 -05:00
Blayney Walshe
dc3e801fd2 Merge branch 'main' into project-goals 2025-02-22 14:13:59 -05:00
Blayney Walshe
cfc587569a converted QDate to datetime.date
Added NProgressGoal class to handle goal progress bars.
2025-02-22 14:12:52 -05:00
Blayney Walshe
7e56174b2a added session and project goal with progress bars for each in the status bar 2025-02-20 08:29:26 -05:00
Veronica Berglyd Olsen
6d82d10883 Add build job 2025-02-05 16:43:37 +01:00
Veronica Berglyd Olsen
c1598bccf9 Remove old appdata.xml template 2025-02-05 16:37:52 +01:00
Veronica Berglyd Olsen
43d0e0a5fd Merge branch 'main' into flatpak 2025-02-05 16:33:51 +01:00
Veronica Berglyd Olsen
08c4aea1b2 Move build to utils folder 2025-02-05 14:46:22 +01:00
Veronica Berglyd Olsen
535012f8b0 Merge remote-tracking branch 'ryex/add-flatpak' into flatpak 2025-02-05 14:11:04 +01:00
Veronica Berglyd Olsen
89423208bb Merge branch 'main' into add-flatpak 2023-04-04 17:52:00 +02:00
Rachel Powers
b82bead486 fix: properly sort versions in appdate.xml
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-02-12 20:32:07 -07:00
Rachel Powers
7233137ad3 feat: add a gen-appdata command to setup .py
regenerates novelwriter.appdata.xml using git tags to list versions and pulling the latest version from the source

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-02-12 20:00:15 -07:00
Rachel Powers
14ca0deb00 fix : use sudo to build flatpak
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-02-12 18:02:31 -07:00
Rachel Powers
575a046cac fix: use sudo for flatpak remote-add
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-02-12 17:51:05 -07:00
Rachel Powers
77246aad17 fix: ensure flathub repo is added during build
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-02-12 17:47:16 -07:00
Rachel Powers
3303eb3043 add new releases to appdata.xml
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-02-12 17:41:30 -07:00
Rachel Powers
04f82e5151 fix: install flatpak-builder in flatpak workflow
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-02-12 17:37:39 -07:00
Rachel Powers
de9ebbf99d feat: add flatpak build to workflow
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-02-12 17:14:09 -07:00
Rachel Powers
d6506b6430 Merge branch 'patch' of https://github.com/vkbo/novelWriter into add-flatpak 2023-02-12 16:52:12 -07:00
Rachel Powers
ea7c72a509 feat(flatpak): add a build-flatpak setup command
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-01-09 02:35:05 -07:00
Rachel Powers
a9314cc6d5 refactor: moce flatpak into setup folder
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-01-08 21:28:06 -07:00
Rachel Powers
3da0510a8d fix: redundant word in metadata add period
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-01-08 21:24:47 -07:00
Rachel Powers
20adf39d8b fix: link to flatpak-pip-generator in comment
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-01-08 21:24:47 -07:00
Rachel Powers
02f474504b fix: only use one screenshot as defualt
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-01-08 21:24:47 -07:00
Rachel Powers
427abafe43 feat: add flatpak manifest
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2023-01-08 21:24:47 -07:00
604 changed files with 104011 additions and 56473 deletions

5
.env.example Normal file
View File

@@ -0,0 +1,5 @@
# Copy to .env and fill in for dev tooling
# Crowdin Personal Access Token scoped to at least `project.report` (Read only)
# Needed for `qtlimport --credits-since`
CROWDIN_REPORT_READ_TOKEN=

1
.github/CODEOWNERS vendored Normal file
View File

@@ -0,0 +1 @@
* @vkbo @saga-soft-bot

View File

@@ -2,19 +2,17 @@
Please check the following before you make a pull request:
* The branch you are making the pull request from (in your own fork) has a unique and descriptive
name. Do not make a pull request directly from your copy of `main`.
* If you are submitting translation files, only submit the files that you have added translations
to, not the other .ts files that may have been updated in the process.
name. Do not make a pull request directly from your copy of `main` or `release`.
* Make sure your contribution follows the style guide and other requirements mentioned in the
CONTRIBUTING.md file in the repository.
* Fill in the Summary section below, and if relevant, mention the issue numbers related to the PR.
-->
**Summary:**
### Summary
**Related Issue(s):**
### Related Issue(s)
**Reviewer's Checklist:**
### Reviewer's Checklist
* [ ] The header of all files contain a reference to the repository license
* [ ] The overall test coverage is increased or remains the same as before

24
.github/workflows/auto_approve.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: Auto-Approve
on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
concurrency:
group: auto-approve-${{ github.event.pull_request.number }}
jobs:
approve:
name: Approve Owner PRs
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false && github.event.pull_request.user.login == 'vkbo'
steps:
- name: Approve Pull Request
env:
GH_TOKEN: ${{ secrets.SAGA_SOFT_BOT_TOKEN }}
PR_URL: ${{ github.event.pull_request.html_url }}
run: gh pr review "$PR_URL" --approve

33
.github/workflows/build_all.yml vendored Normal file
View File

@@ -0,0 +1,33 @@
name: Build All
on: workflow_dispatch
jobs:
buildAssets:
uses: ./.github/workflows/part_assets.yml
with:
icons-free: true
icons-non-free: true
permissions:
contents: read
buildLinux-AppImage:
needs: buildAssets
uses: ./.github/workflows/part_appimage.yml
secrets: inherit
permissions:
contents: read
buildLinux-Flatpak:
needs: buildAssets
uses: ./.github/workflows/part_flatpak.yml
secrets: inherit
permissions:
contents: read
buildWin-X64:
needs: buildAssets
uses: ./.github/workflows/part_win_x64.yml
secrets: inherit
permissions:
contents: read

View File

@@ -1,39 +0,0 @@
name: BuildAssets
on: workflow_call
jobs:
buildAssets:
runs-on: ubuntu-latest
steps:
- name: Python Setup
uses: actions/setup-python@v5
with:
python-version: "3.13"
architecture: x64
- name: Install Packages (apt)
run: |
sudo apt update
sudo apt install qttools5-dev-tools latexmk texlive texlive-latex-extra
- name: Checkout Source
uses: actions/checkout@v4
- name: Install Packages (pip)
run: pip install -U -r requirements.txt -r docs/requirements.txt
- name: Build Assets
run: |
python pkgutils.py build-assets
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: nw-assets
path: |
novelwriter/assets/manual*.pdf
novelwriter/assets/sample.zip
novelwriter/assets/i18n/*.qm
if-no-files-found: error
retention-days: 14

View File

@@ -1,46 +0,0 @@
name: BuildLinux
on: workflow_dispatch
jobs:
buildAssets:
uses: ./.github/workflows/build_assets.yml
buildLinux-AppImage:
needs: buildAssets
runs-on: ubuntu-latest
env:
PYTHON_VERSION: "3.13"
LINUX_TAG: "manylinux_2_28_x86_64"
steps:
- name: Python Setup
uses: actions/setup-python@v5
with:
python-version: "3.13"
architecture: x64
- name: Install Packages (pip)
run: pip install python-appimage
- name: Checkout Source
uses: actions/checkout@v4
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: nw-assets
path: novelwriter/assets
- name: Build AppImage
id: build
run: |
echo "BUILD_VERSION=$(python pkgutils.py version)" >> $GITHUB_OUTPUT
python pkgutils.py build-appimage --linux-tag $LINUX_TAG --python-version $PYTHON_VERSION
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-Linux-AppImage
path: dist_appimage/*.AppImage*
if-no-files-found: error
retention-days: 14

View File

@@ -0,0 +1,26 @@
name: Build Linux Images
on: workflow_dispatch
jobs:
buildAssets:
uses: ./.github/workflows/part_assets.yml
with:
icons-free: true
icons-non-free: true
permissions:
contents: read
buildLinux-AppImage:
needs: buildAssets
uses: ./.github/workflows/part_appimage.yml
secrets: inherit
permissions:
contents: read
buildLinux-Flatpak:
needs: buildAssets
uses: ./.github/workflows/part_flatpak.yml
secrets: inherit
permissions:
contents: read

150
.github/workflows/build_linux_native.yml vendored Normal file
View File

@@ -0,0 +1,150 @@
name: Build Linux Native
on:
workflow_dispatch:
inputs:
publish:
required: false
description: "Publish to Cloudsmith?"
type: boolean
default: false
build_number:
required: false
description: "Build Number"
type: string
default: "0"
debian12:
required: false
description: "Debian 12 (Bookworm)"
type: boolean
default: true
debian13:
required: false
description: "Debian 13 (Trixie)"
type: boolean
default: true
ubuntu2404:
required: false
description: "Ubuntu 24.04 (Noble)"
type: boolean
default: true
ubuntu2604:
required: false
description: "Ubuntu 26.04 (Resolute)"
type: boolean
default: true
ubuntu2610:
required: false
description: "Ubuntu 26.10 (Stonking)"
type: boolean
default: true
mint22:
required: false
description: "Linux Mint 22 (Wilma)"
type: boolean
default: true
jobs:
buildAssets:
uses: ./.github/workflows/part_assets.yml
with:
icons-free: true
icons-non-free: true
permissions:
contents: read
buildAndPublish-Debian12:
name: Debian 12 (Bookworm)
needs: buildAssets
uses: ./.github/workflows/part_debian.yml
with:
publish: ${{ inputs.publish }}
build_number: ${{ inputs.build_number }}
codename: bookworm
family: debian
image: debian:12
secrets: inherit
if: ${{ inputs.debian12 }}
permissions:
id-token: write
contents: read
buildAndPublish-Debian13:
name: Debian 13 (Trixie)
needs: buildAssets
uses: ./.github/workflows/part_debian.yml
with:
publish: ${{ inputs.publish }}
build_number: ${{ inputs.build_number }}
codename: trixie
family: debian
image: debian:13
secrets: inherit
if: ${{ inputs.debian13 }}
permissions:
id-token: write
contents: read
buildAndPublish-Ubuntu2404:
name: Ubuntu 24.04 (Noble)
needs: buildAssets
uses: ./.github/workflows/part_debian.yml
with:
publish: ${{ inputs.publish }}
build_number: ${{ inputs.build_number }}
codename: noble
family: ubuntu
image: ubuntu:24.04
secrets: inherit
if: ${{ inputs.ubuntu2404 }}
permissions:
id-token: write
contents: read
buildAndPublish-Ubuntu2604:
name: Ubuntu 26.04 (Resolute)
needs: buildAssets
uses: ./.github/workflows/part_debian.yml
with:
publish: ${{ inputs.publish }}
build_number: ${{ inputs.build_number }}
codename: resolute
family: ubuntu
image: ubuntu:26.04
secrets: inherit
if: ${{ inputs.ubuntu2604 }}
permissions:
id-token: write
contents: read
buildAndPublish-Ubuntu2610:
name: Ubuntu 26.10 (Stonking)
needs: buildAssets
uses: ./.github/workflows/part_debian.yml
with:
publish: ${{ inputs.publish }}
build_number: ${{ inputs.build_number }}
codename: stonking
family: ubuntu
image: ubuntu:26.10
secrets: inherit
if: ${{ inputs.ubuntu2610 }}
permissions:
id-token: write
contents: read
buildAndPublish-Mint22:
name: Linux Mint 22 (Wilma)
needs: buildAssets
uses: ./.github/workflows/part_debian.yml
with:
publish: ${{ inputs.publish }}
build_number: ${{ inputs.build_number }}
codename: wilma
family: linuxmint
image: linuxmintd/mint22-amd64
secrets: inherit
if: ${{ inputs.mint22 }}
permissions:
id-token: write
contents: read

View File

@@ -1,69 +1,26 @@
name: BuildMacOS
name: Build MacOS
on: workflow_dispatch
jobs:
buildAssets:
uses: ./.github/workflows/build_assets.yml
uses: ./.github/workflows/part_assets.yml
with:
icons-free: true
icons-non-free: true
permissions:
contents: read
buildMac-AMD64:
needs: buildAssets
runs-on: macos-latest
env:
PYTHON_VERSION: "3.13"
PACKAGE_ARCH: x86_64
MINICONDA_ARCH: x86_64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: nw-assets
path: novelwriter/assets
- name: Build App Bundle
id: build
run: |
echo "BUILD_VERSION=$(python pkgutils.py version)" >> $GITHUB_OUTPUT
./setup/macos/build.sh $PYTHON_VERSION $PACKAGE_ARCH $MINICONDA_ARCH
- name: Upload DMG
uses: actions/upload-artifact@v4
with:
name: novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-MacOS-AMD64-DMG
path: dist_macos/*.dmg*
if-no-files-found: error
retention-days: 14
uses: ./.github/workflows/part_macos_amd64.yml
secrets: inherit
permissions:
contents: read
buildMac-M1:
needs: buildAssets
runs-on: macos-latest
env:
PYTHON_VERSION: "3.13"
PACKAGE_ARCH: aarch64
MINICONDA_ARCH: arm64
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download Artifacts
uses: actions/download-artifact@v4
with:
name: nw-assets
path: novelwriter/assets
- name: Build App Bundle
id: build
run: |
echo "BUILD_VERSION=$(python pkgutils.py version)" >> $GITHUB_OUTPUT
./setup/macos/build.sh $PYTHON_VERSION $PACKAGE_ARCH $MINICONDA_ARCH
- name: Upload DMG
uses: actions/upload-artifact@v4
with:
name: novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-MacOS-M1-DMG
path: dist_macos/*.dmg*
if-no-files-found: error
retention-days: 14
uses: ./.github/workflows/part_macos_m1.yml
secrets: inherit
permissions:
contents: read

View File

@@ -1,62 +1,19 @@
name: BuildWindows
name: Build Windows
on: workflow_dispatch
jobs:
buildAssets:
uses: ./.github/workflows/build_assets.yml
uses: ./.github/workflows/part_assets.yml
with:
icons-free: true
icons-non-free: true
permissions:
contents: read
buildWin64:
buildWin-X64:
needs: buildAssets
runs-on: windows-latest
steps:
- name: Python Setup
uses: actions/setup-python@v5
with:
python-version: "3.13"
architecture: x64
- name: Checkout Source
uses: actions/checkout@v4
- name: Download Assets
uses: actions/download-artifact@v4
with:
name: nw-assets
path: novelwriter/assets
- name: Build Setup Installer
id: build
run: |
echo "BUILD_VERSION=$(python pkgutils.py version)" >> $Env:GITHUB_OUTPUT
python pkgutils.py build-win-exe
- name: Upload Unsigned Artifacts
id: upload-unsigned-artifact
uses: actions/upload-artifact@v4
with:
name: novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-Win-Setup
path: dist/*.exe
if-no-files-found: error
retention-days: 14
- name: Submit Signing Request
uses: signpath/github-action-submit-signing-request@v1
with:
api-token: "${{ secrets.SIGNPATH_API_TOKEN }}"
organization-id: "0471e52c-66fa-4e9a-bfb9-36167095ca3f"
project-slug: "novelWriter"
signing-policy-slug: "release-signing "
github-artifact-id: "${{ steps.upload-unsigned-artifact.outputs.artifact-id }}"
wait-for-completion: true
output-artifact-directory: "dist/"
parameters: |
version: "${{ steps.build.outputs.BUILD_VERSION }}"
- name: Upload Signed Artifacts
uses: actions/upload-artifact@v4
with:
name: novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-Win-Setup-Signed
path: dist/*.exe
if-no-files-found: error
retention-days: 14
uses: ./.github/workflows/part_win_x64.yml
secrets: inherit
permissions:
contents: read

View File

@@ -1,13 +1,15 @@
name: BuildWindowsLauncher
name: Build Windows Launcher
on: workflow_dispatch
jobs:
buildLauncherWin64:
runs-on: windows-latest
permissions:
contents: read
steps:
- name: Checkout Source
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Build Launcher
id: build
@@ -17,7 +19,7 @@ jobs:
- name: Upload Unsigned Artifacts
id: upload-unsigned-artifact
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: launcher
path: setup/windows/novelWriter.exe
@@ -25,7 +27,7 @@ jobs:
retention-days: 14
- name: Submit Signing Request
uses: signpath/github-action-submit-signing-request@v1
uses: signpath/github-action-submit-signing-request@v2
with:
api-token: "${{ secrets.SIGNPATH_API_TOKEN }}"
organization-id: "0471e52c-66fa-4e9a-bfb9-36167095ca3f"
@@ -37,7 +39,7 @@ jobs:
output-artifact-directory: "."
- name: Upload Signed Artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: launcher-signed
path: novelWriter.exe

View File

@@ -1,32 +1,41 @@
name: i18n
on:
push:
pull_request:
branches:
- i18n/*
- main
- release
paths:
- i18n/*.ts
jobs:
buildI18n:
name: Build i18n
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Python Setup
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: "3.13"
python-version: "3.14"
architecture: x64
- name: Install Packages (apt)
- name: Checkout Source
uses: actions/checkout@v7
- name: Install System Packages
run: |
sudo apt update
sudo apt install qttools5-dev-tools
- name: Checkout Source
uses: actions/checkout@v4
- name: Build Assets
run: python pkgutils.py qtlrelease
- name: Upload Artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: nw-i18n
path: |
novelwriter/assets/i18n/*.qm
path: novelwriter/assets/i18n/*.qm
if-no-files-found: error
retention-days: 7

View File

@@ -1,34 +0,0 @@
name: LockThreads
on:
schedule:
- cron: "14 3 */3 * *"
permissions:
issues: write
pull-requests: write
concurrency:
group: lock-threads
jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v5
with:
github-token: ${{ github.token }}
issue-inactive-days: 120
issue-comment: >
This issue has been automatically locked since there has not been
any recent activity after it was closed. Please open a new issue
for related bugs or feature requests.
issue-lock-reason: "resolved"
pr-inactive-days: 120
# pr-comment: >
# This pull request thread has been automatically locked since there
# has not been any recent activity after it was closed. Please open
# an issue for any related bugs or feature requests.
pr-lock-reason: "resolved"
process-only: "issue, pr"
log-output: true

141
.github/workflows/part_appimage.yml vendored Normal file
View File

@@ -0,0 +1,141 @@
name: Part AppImage
on: workflow_call
jobs:
buildLinux-AppImage:
# Needs to stay on 22.04 as long as we're using manylinux_2_28
# as libxcb-cursor0 in 22.04 supports glibc >= 2.17
name: Build AppImage
runs-on: ubuntu-22.04
permissions:
contents: read
env:
PYTHON_VERSION: "3.14"
LINUX_TAG: "manylinux_2_28"
LINUX_ARCH: "x86_64"
steps:
- name: Python Setup
uses: actions/setup-python@v6
with:
python-version: "3.14"
architecture: x64
- name: Install Packages (apt)
run: |
sudo apt update
sudo apt install libxcb-cursor0
- name: Install Packages (pip)
run: pip install python-appimage setuptools
- name: Checkout Source
uses: actions/checkout@v7
- name: Download Artifacts
uses: actions/download-artifact@v8
with:
name: nw-assets
path: novelwriter/assets
- name: Build AppImage
id: build
run: |
wget https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-$LINUX_ARCH.AppImage
chmod +x appimagetool-$LINUX_ARCH.AppImage
export APPIMAGE_TOOL_EXEC="$(pwd)/appimagetool-$LINUX_ARCH.AppImage"
echo "BUILD_VERSION=$(python pkgutils.py version)" >> $GITHUB_OUTPUT
python pkgutils.py build-appimage $LINUX_TAG $LINUX_ARCH $PYTHON_VERSION
- name: Upload Artifacts
uses: actions/upload-artifact@v7
with:
name: novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-Linux-AppImage
path: dist_appimage/*.AppImage*
if-no-files-found: error
retention-days: 14
smokeTest:
name: Smoke Test AppImage (${{ matrix.distro }})
needs: buildLinux-AppImage
runs-on: ubuntu-22.04
permissions:
contents: read
strategy:
fail-fast: false
matrix:
include:
- distro: Ubuntu 22.04
image: ubuntu:22.04
- distro: Debian 12
image: debian:12
- distro: Fedora 40
image: fedora:40
- distro: Arch Linux
image: archlinux:latest
- distro: Manjaro
image: manjarolinux/base:latest
container:
image: ${{ matrix.image }}
steps:
- name: Install Runtime Dependencies
run: |
if command -v apt-get >/dev/null 2>&1; then
apt-get update
apt-get install -y ca-certificates libgl1 libxkbcommon0 libegl1 libfontconfig1 libglib2.0-0 libdbus-1-3
elif command -v dnf >/dev/null 2>&1; then
dnf install -y ca-certificates coreutils mesa-libGL mesa-libEGL libxkbcommon fontconfig glib2 dbus-libs
elif command -v pacman >/dev/null 2>&1; then
pacman -Syu --noconfirm --needed ca-certificates coreutils mesa libxkbcommon fontconfig glib2 dbus
fi
- name: Download AppImage Artifact
uses: actions/download-artifact@v8
with:
pattern: novelWriter-*-Linux-AppImage
merge-multiple: true
path: appimage-dist
- name: Run AppImage Smoke Test
run: |
set -eu
APPIMAGE_FILE="$(find appimage-dist -maxdepth 1 -name '*.AppImage' | head -n1)"
if [ -z "$APPIMAGE_FILE" ]; then
echo "No AppImage artifact found"
exit 1
fi
chmod +x "$APPIMAGE_FILE"
export QT_QPA_PLATFORM=offscreen
export QT_NO_XDG_DESKTOP_PORTAL=1
export APPIMAGE_EXTRACT_AND_RUN=1
set +e
timeout 25s "$APPIMAGE_FILE" > smoke.log 2>&1
EXIT_CODE=$?
set -e
if [ "$EXIT_CODE" -eq 139 ]; then
echo "AppImage crashed with segmentation fault"
exit 1
fi
if grep -Eiq 'segmentation fault|core dumped' smoke.log; then
echo "Crash signature found in smoke log"
exit 1
fi
if [ "$EXIT_CODE" -ne 0 ] && [ "$EXIT_CODE" -ne 124 ]; then
echo "Unexpected exit code: $EXIT_CODE"
cat smoke.log
exit 1
fi
- name: Upload Smoke Logs
if: always()
uses: actions/upload-artifact@v7
with:
name: appimage-smoke-log-${{ matrix.distro }}
path: smoke.log
if-no-files-found: ignore
retention-days: 14

62
.github/workflows/part_assets.yml vendored Normal file
View File

@@ -0,0 +1,62 @@
name: Part Assets
on:
workflow_call:
inputs:
icons-free:
required: true
type: boolean
icons-non-free:
required: true
type: boolean
jobs:
buildAssets:
name: Build Assets
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Source
uses: actions/checkout@v7
- name: Install System Packages
run: |
sudo apt-get update
sudo apt-get install -y qttools5-dev-tools latexmk texlive texlive-latex-extra
- name: Install UV and Python
uses: astral-sh/setup-uv@v10.0.1
with:
python-version: "3.14"
enable-cache: true
- name: Install Dependencies
run: |
uv sync --no-dev --group docs
- name: Build Assets
run: |
uv run --no-sync pkgutils.py build-assets
- name: Build Free Icons
if: ${{ inputs.icons-free }}
run: |
uv run --no-sync pkgutils.py icons free
- name: Build Non-Free Icons
if: ${{ inputs.icons-non-free }}
run: |
uv run --no-sync pkgutils.py icons non-free
- name: Upload Artifacts
uses: actions/upload-artifact@v7
with:
name: nw-assets
path: |
novelwriter/assets/manual*.pdf
novelwriter/assets/sample.zip
novelwriter/assets/i18n/*.qm
novelwriter/assets/icons/*.icons
if-no-files-found: error
retention-days: 14

82
.github/workflows/part_debian.yml vendored Normal file
View File

@@ -0,0 +1,82 @@
name: Part Debian
on:
workflow_call:
inputs:
publish:
required: false
type: boolean
default: false
build_number:
required: false
type: string
default: "0"
codename:
required: true
type: string
family:
required: true
type: string
image:
required: true
type: string
secrets:
CLOUDSMITH_API_KEY:
required: false
jobs:
buildPackage:
name: Build Debian Package
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
container:
image: ${{ inputs.image }}
steps:
- name: Install Checkout Prerequisites
run: |
apt-get update
apt-get install -y git ca-certificates python3
- name: Checkout Source
uses: actions/checkout@v7
- name: Download Assets Artifact
uses: actions/download-artifact@v8
with:
name: nw-assets
path: novelwriter/assets
- name: Install Native Packages
run: apt-get install -y $(python3 pkgutils.py build-deb-depends ${{ inputs.codename }})
- name: Build Package
run: python3 pkgutils.py build-deb ${{ inputs.codename }} --build ${{ inputs.build_number }} --install-source Cloudsmith
- name: Upload Artifacts
uses: actions/upload-artifact@v7
with:
name: nw-deb-${{ inputs.codename }}
path: dist_upload/*
if-no-files-found: error
retention-days: 14
- name: Set up Cloudsmith CLI with OIDC
if: ${{ inputs.publish }}
uses: cloudsmith-io/cloudsmith-cli-action@v3
with:
oidc-namespace: "saga-soft"
oidc-service-slug: "github-actions-lcpr"
verify-auth: true
- name: Publish to Cloudsmith
if: ${{ inputs.publish }}
run: |
CHANNEL="$(python3 pkgutils.py channel)"
REPO="stable"
if [ "$CHANNEL" = "pre" ]; then
REPO="testing"
fi
DEB_FILE="$(find dist_upload -name '*.deb')"
cloudsmith push deb "saga-soft/$REPO/${{ inputs.family }}/${{ inputs.codename }}" "$DEB_FILE" --republish

46
.github/workflows/part_flatpak.yml vendored Normal file
View File

@@ -0,0 +1,46 @@
name: Part Flatpak
on: workflow_call
jobs:
buildLinux-Flatpak:
runs-on: ubuntu-latest
steps:
- name: Install Packages
run: |
sudo apt-get update
sudo apt-get install -y flatpak flatpak-builder
flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
- name: Checkout Source
uses: actions/checkout@v7
- name: Install UV and Python
uses: astral-sh/setup-uv@v10.0.1
with:
python-version: "3.14"
enable-cache: true
- name: Install Dependencies
run: |
uv sync --no-dev --group build
- name: Download Artifacts
uses: actions/download-artifact@v8
with:
name: nw-assets
path: novelwriter/assets
- name: Build Flatpak
id: build
run: |
echo "BUILD_VERSION=$(uv run pkgutils.py version)" >> $GITHUB_OUTPUT
uv run --no-sync pkgutils.py build-flatpak
- name: Upload Artifacts
uses: actions/upload-artifact@v7
with:
name: novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-Linux-Flatpak
path: dist_flatpak/*.flatpak*
if-no-files-found: error
retention-days: 14

37
.github/workflows/part_macos_amd64.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Part MacOS AMD64
on: workflow_call
jobs:
buildMac-AMD64:
name: Build on MACOS AMD64
runs-on: macos-latest
permissions:
contents: read
env:
PYTHON_VERSION: "3.13"
PACKAGE_ARCH: x86_64
MINICONDA_ARCH: x86_64
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Download Artifacts
uses: actions/download-artifact@v8
with:
name: nw-assets
path: novelwriter/assets
- name: Build App Bundle
id: build
run: |
echo "BUILD_VERSION=$(python pkgutils.py version)" >> $GITHUB_OUTPUT
./setup/macos/build.sh $PYTHON_VERSION $PACKAGE_ARCH $MINICONDA_ARCH
- name: Upload DMG
uses: actions/upload-artifact@v7
with:
name: novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-MacOS-AMD64-DMG
path: dist_macos/*.dmg*
if-no-files-found: error
retention-days: 14

37
.github/workflows/part_macos_m1.yml vendored Normal file
View File

@@ -0,0 +1,37 @@
name: Part MacOS M1
on: workflow_call
jobs:
buildMac-M1:
name: Build on MacOS AARCH64
runs-on: macos-latest
permissions:
contents: read
env:
PYTHON_VERSION: "3.13"
PACKAGE_ARCH: aarch64
MINICONDA_ARCH: arm64
steps:
- name: Checkout
uses: actions/checkout@v7
- name: Download Artifacts
uses: actions/download-artifact@v8
with:
name: nw-assets
path: novelwriter/assets
- name: Build App Bundle
id: build
run: |
echo "BUILD_VERSION=$(python pkgutils.py version)" >> $GITHUB_OUTPUT
./setup/macos/build.sh $PYTHON_VERSION $PACKAGE_ARCH $MINICONDA_ARCH
- name: Upload DMG
uses: actions/upload-artifact@v7
with:
name: novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-MacOS-M1-DMG
path: dist_macos/*.dmg*
if-no-files-found: error
retention-days: 14

64
.github/workflows/part_win_x64.yml vendored Normal file
View File

@@ -0,0 +1,64 @@
name: Part Windows X64
on: workflow_call
jobs:
buildWin-X64:
name: Build on Windows
runs-on: windows-2022
permissions:
contents: read
steps:
- name: Python Setup
uses: actions/setup-python@v6
with:
python-version: "3.14"
architecture: x64
- name: Install Packages (pip)
run: pip install tzdata
- name: Checkout Source
uses: actions/checkout@v7
- name: Download Assets
uses: actions/download-artifact@v8
with:
name: nw-assets
path: novelwriter/assets
- name: Build Setup Installer
id: build
run: |
echo "BUILD_VERSION=$(python pkgutils.py version)" >> $Env:GITHUB_OUTPUT
python pkgutils.py build-win-exe
- name: Upload Unsigned Artifacts
id: upload-unsigned-artifact
uses: actions/upload-artifact@v7
with:
name: novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-Win-Setup
path: dist/*.exe
if-no-files-found: error
retention-days: 14
- name: Submit Signing Request
uses: signpath/github-action-submit-signing-request@v1
with:
api-token: "${{ secrets.SIGNPATH_API_TOKEN }}"
organization-id: "0471e52c-66fa-4e9a-bfb9-36167095ca3f"
project-slug: "novelWriter"
signing-policy-slug: "release-signing "
github-artifact-id: "${{ steps.upload-unsigned-artifact.outputs.artifact-id }}"
wait-for-completion: true
output-artifact-directory: "dist/"
parameters: |
version: "${{ steps.build.outputs.BUILD_VERSION }}"
- name: Upload Signed Artifacts
uses: actions/upload-artifact@v7
with:
name: novelWriter-${{ steps.build.outputs.BUILD_VERSION }}-Win-Setup-Signed
path: dist/*.exe
if-no-files-found: error
retention-days: 14

17
.github/workflows/policy.yml vendored Normal file
View File

@@ -0,0 +1,17 @@
name: Policy Checks
on:
pull_request:
branches:
- main
- release
jobs:
commitPolicy:
name: Commit Policy
uses: saga-soft/automation/.github/workflows/saga-soft-policy.yml@main
permissions:
contents: read
pull-requests: read
with:
policy-url: https://github.com/saga-soft/novelWriter/blob/main/AI_POLICY.md

View File

@@ -1,4 +1,4 @@
name: Linting
name: Syntax
on:
push:
@@ -12,26 +12,30 @@ on:
jobs:
checkSyntax:
name: Linting and Type Checking
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Python Setup
uses: actions/setup-python@v5
with:
python-version: 3
architecture: x64
- name: Checkout Source
uses: actions/checkout@v4
uses: actions/checkout@v7
- name: Install UV and Python
uses: astral-sh/setup-uv@v10.0.1
with:
enable-cache: true
- name: Install Dependencies
run: pip install -r requirements.txt -r requirements-dev.txt
run: |
uv sync --no-dev --group lint
- name: Ruff Check
run: |
ruff --version
ruff check
uv run --no-sync ruff --version
uv run --no-sync ruff format --check
uv run --no-sync ruff check --output-format github
- name: Pyright Check
run: |
pyright --version
pyright
- name: Isort Check
run: |
isort --version
isort --check .
uv run --no-sync pyright --version
uv run --no-sync pyright

View File

@@ -1,46 +0,0 @@
name: Linux
on:
push:
branches:
- main
- release
pull_request:
branches:
- main
- release
jobs:
testLinux:
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Python Setup
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Packages (apt)
run: |
sudo apt update
sudo apt install libenchant-2-dev qttools5-dev-tools
- name: Checkout Source
uses: actions/checkout@v4
- name: Install Dependencies (pip)
run: |
pip install -U -r requirements.txt -r tests/requirements.txt
- name: Run Build Commands
run: |
python pkgutils.py qtlrelease
python pkgutils.py sample
- name: Run Tests
run: |
export QT_QPA_PLATFORM=offscreen
python -m pytest -v --cov=novelwriter --timeout=60
- name: Upload to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

View File

@@ -1,37 +0,0 @@
name: MacOS
on:
push:
branches:
- main
- release
pull_request:
branches:
- main
- release
jobs:
testMac:
runs-on: macos-13
steps:
- name: Python Setup
uses: actions/setup-python@v5
with:
python-version: "3.13"
architecture: x64
- name: Install Packages (brew)
run: |
brew install enchant
- name: Checkout Source
uses: actions/checkout@v4
- name: Install Dependencies (pip)
run: |
pip install -U pyobjc -r requirements.txt -r tests/requirements.txt
- name: Run Tests
run: |
export QT_QPA_PLATFORM=offscreen
python -m pytest -v --cov=novelwriter --timeout=60
- name: Upload to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

View File

@@ -1,33 +0,0 @@
name: Windows
on:
push:
branches:
- main
- release
pull_request:
branches:
- main
- release
jobs:
testWin:
runs-on: windows-latest
steps:
- name: Python Setup
uses: actions/setup-python@v5
with:
python-version: "3.13"
architecture: x64
- name: Checkout Source
uses: actions/checkout@v4
- name: Install Dependencies (pip)
run: |
pip install -U -r requirements.txt -r tests/requirements.txt
- name: Run Tests
run: |
python -m pytest -v --cov=novelwriter --timeout=60
- name: Upload to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

305
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,305 @@
name: Tests
on:
push:
branches:
- main
- release
pull_request:
branches:
- main
- release
jobs:
testLinux:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "3.15"
fail-fast: false
name: Linux Python ${{ matrix.python-version }}
permissions:
contents: read
env:
COVERAGE_FILE: .coverage.py${{ matrix.python-version }}
steps:
- name: Checkout Source
uses: actions/checkout@v7
- name: Install System Packages
run: |
sudo apt update
sudo apt install qttools5-dev-tools
- name: Install UV and Python
uses: astral-sh/setup-uv@v10.0.1
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
- name: Install Dependencies
run: |
uv sync --no-dev --group test
- name: Build Assets
run: |
uv run --no-sync pkgutils.py qtlrelease
uv run --no-sync pkgutils.py sample
- name: Run Tests
run: |
export QT_QPA_PLATFORM=offscreen
uv run --no-sync coverage run -m pytest -v --timeout=60
uv run --no-sync coverage report --skip-covered --show-missing
- name: Upload Coverage Data
uses: actions/upload-artifact@v7
with:
name: coverage-data-py${{ matrix.python-version }}
path: ${{ env.COVERAGE_FILE }}
include-hidden-files: true
retention-days: 1
testMac:
runs-on: macos-latest
name: MacOS Python 3.14
permissions:
contents: read
env:
COVERAGE_FILE: .coverage.mac
steps:
- name: Checkout Source
uses: actions/checkout@v7
- name: Install System Packages
run: |
brew install enchant
- name: Install UV and Python
uses: astral-sh/setup-uv@v10.0.1
with:
python-version: "3.14"
enable-cache: true
- name: Install Dependencies
run: |
uv sync --no-dev --group test
- name: Build Assets
run: |
uv run --no-sync pkgutils.py sample
- name: Run Tests
run: |
export QT_QPA_PLATFORM=offscreen
uv run --no-sync coverage run -m pytest -v --timeout=60
uv run --no-sync coverage report --skip-covered --show-missing
- name: Upload Coverage Data
uses: actions/upload-artifact@v7
with:
name: coverage-data-mac
path: ${{ env.COVERAGE_FILE }}
include-hidden-files: true
retention-days: 1
testWin:
runs-on: windows-latest
name: Windows Python 3.14
permissions:
contents: read
env:
COVERAGE_FILE: .coverage.win
defaults:
run:
shell: bash
steps:
- name: Checkout Source
uses: actions/checkout@v7
- name: Install UV and Python
uses: astral-sh/setup-uv@v10.0.1
with:
python-version: "3.14"
enable-cache: true
- name: Install Dependencies
run: |
uv sync --no-dev --group test
- name: Build Assets
run: |
uv run --no-sync pkgutils.py sample
- name: Run Tests
run: |
uv run --no-sync coverage run -m pytest -v --timeout=60
uv run --no-sync coverage report --skip-covered --show-missing
- name: Upload Coverage Data
uses: actions/upload-artifact@v7
with:
name: coverage-data-win
path: ${{ env.COVERAGE_FILE }}
include-hidden-files: true
retention-days: 1
coverageReport:
name: PR Coverage Report
needs:
- testLinux
- testMac
- testWin
if: github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Checkout Source
uses: actions/checkout@v7
- name: Download Coverage Data
uses: actions/download-artifact@v8
with:
pattern: coverage-data-*
merge-multiple: true
- name: Install UV
uses: astral-sh/setup-uv@v10.0.1
- name: Combine Coverage Data
run: |
uvx coverage combine
uvx coverage report --skip-covered
- name: Build Comment Body
run: |
{
echo '<!-- coverage-report -->'
echo '### Coverage Report (Linux, macOS, Windows)'
echo
uvx coverage report --skip-covered --show-missing --format=markdown --precision=3
echo
echo "**Total: $(uvx coverage report --format=total --precision=3)%**"
} > coverage-comment.md
- name: Post PR Comment
env:
GH_TOKEN: ${{ github.token }}
PR_NUMBER: ${{ github.event.pull_request.number }}
REPO: ${{ github.repository }}
run: |
comment_id=$(gh api "repos/$REPO/issues/$PR_NUMBER/comments" --paginate --jq '.[] | select(.body | startswith("<!-- coverage-report -->")) | .id' | head -n1)
if [ -n "$comment_id" ]; then
gh api --method PATCH "repos/$REPO/issues/comments/$comment_id" -F body=@coverage-comment.md
else
gh pr comment "$PR_NUMBER" --body-file coverage-comment.md
fi
coverageSummary:
name: Action Coverage Report
needs:
- testLinux
- testMac
- testWin
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout Source
uses: actions/checkout@v7
- name: Download Coverage Data
uses: actions/download-artifact@v8
with:
pattern: coverage-data-*
merge-multiple: true
- name: Install UV
uses: astral-sh/setup-uv@v10.0.1
- name: Combine Coverage Data
run: |
uvx coverage combine
uvx coverage report --skip-covered
- name: Write Coverage Summary
run: |
{
echo '### Coverage Report (Linux, macOS, Windows)'
echo
uvx coverage report --skip-covered --show-missing --format=markdown --precision=3
echo
echo "**Total: $(uvx coverage report --format=total --precision=3)%**"
} >> "$GITHUB_STEP_SUMMARY"
testUbuntu24:
name: Ubuntu 24.04 & Sys Packages
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
- name: Checkout Source
uses: actions/checkout@v7
- name: Install System Packages
run: |
sudo apt update
sudo apt install \
python3-pyqt6 \
python3-pyqt6.qtsvg \
python3-pytest \
python3-pytestqt \
python3-enchant \
python3-pytest-timeout \
qt6-image-formats-plugins
- name: Build Assets
run: |
python3 pkgutils.py sample
- name: Run Tests
run: |
export QT_QPA_PLATFORM=offscreen
python3 -m pytest -v --timeout=60
testFedoraLatest:
name: Fedora 44 & Sys Packages
runs-on: ubuntu-latest
container:
image: fedora:44
permissions:
contents: read
steps:
- name: Install System Packages
run: |
dnf -y update
dnf -y install \
git \
python3-enchant \
python3-pyqt6 \
python3-pytest \
python3-pytest-qt \
python3-pytest-timeout \
qt6-linguist \
qt6-qtimageformats
- name: Checkout Source
uses: actions/checkout@v7
- name: Run Build Commands
run: |
python pkgutils.py qtlrelease
python pkgutils.py sample
- name: Run Tests
run: |
export QT_QPA_PLATFORM=offscreen
python3 -m pytest -v --timeout=60

33
.gitignore vendored
View File

@@ -12,7 +12,9 @@ setup.iss
/novelWriter.pyw
/setup/macos/Info.plist
/setup/windows/build
.flatpak-builder
.venv
.env
# Translations
/novelwriter/assets/i18n/*.qm
@@ -20,13 +22,14 @@ setup.iss
i18n/*.qm
i18n/*.qph
# Icons Themes Except Material Symbols
/novelwriter/assets/icons/*.icons
!/novelwriter/assets/icons/material_*.icons
# Documentation
/docs/build/
/docs/source/locales/**/*.mo
/novelwriter/assets/help/
/novelwriter/assets/manual*.pdf
*.qch
*.qhc
.~lock.*
# Python Temp
@@ -35,27 +38,25 @@ __pycache__
# Sample Project
/novelwriter/assets/sample.zip
/sample/cache
/sample/meta
*.bak
*.lock
ToC.txt
/sample/**/*.bak
/sample/*.lock
/sample/ToC.txt
# PyTest
/prof/
/htmlcov/
/tests/temp
/tests/lipsum/cache
/tests/lipsum/meta
/tests/_temp
/.pytest_cache
/pytestdebug.log
# Coverage
/.coverage
/.coveragerc
/coverage.*
# Other
/test.py
.config
.local
*.patch
@@ -63,3 +64,15 @@ ToC.txt
# IDE
.vscode
.ruff_cache
# No AI files
AGENTS.md
CLAUSE.md
GEMINI.md
.claude/
.cursor*
.codex/
.gemini/
# Debug
/debug/

File diff suppressed because it is too large Load Diff

View File

@@ -1,132 +1,49 @@
# Contributor Covenant Code of Conduct
# Code of Conduct
## Our Pledge
## Purpose
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, caste, color, religion, or sexual
identity and orientation.
This repository should be welcoming and safe for everyone participating in good faith.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
All contributors and participants must be treated with respect, regardless of characteristics such
as race, ethnicity, caste, colour, age, physical characteristics, neurodiversity, disability, sex
or gender, gender identity or expression, sexual orientation, language, philosophy or religion,
national or social origin, socio-economic position, level of education, or other status.
## Our Standards
## Expected Behaviour
Examples of behavior that contributes to a positive environment for our
community include:
1. Be respectful and constructive in pull requests, issues, discussions, and comments
2. Focus critique on ideas and code, not people
3. Assume good faith, and communicate clearly and honestly
4. Accept feedback gracefully and take responsibility for your contributions
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the overall
community
## Unacceptable Behaviour
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or advances of
any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email address,
without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
1. Harassment, abuse, intimidation, or threats
2. Insults, personal attacks, or demeaning language
3. Discrimination, stereotyping, or hateful conduct
4. Sexualised or otherwise inappropriate conduct
5. Sharing private or identifying information without permission
6. Impersonation, deliberate misrepresentation, or other deceptive behaviour
7. Spam or promotional content unrelated to the project
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
This Code of Conduct applies to interactions in this GitHub repository, including pull requests,
issues, discussions, reviews, and comments.
## Reporting
If you believe this Code of Conduct has been violated, contact the repository owner via
[github.com/vkbo](https://github.com/vkbo).
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at issues (at)
novelwriter.io. All complaints will be reviewed and investigated promptly and
fairly.
Moderation options on GitHub are limited. Depending on severity and pattern of behaviour, the owner
may edit or delete content, close or lock threads, and block users from further participation.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series of
actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or permanent
ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within the
community.
Content that may violate GitHub platform rules may also be reported to GitHub for review.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.1, available at
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
Community Impact Guidelines were inspired by
[Mozilla's code of conduct enforcement ladder][Mozilla CoC].
For answers to common questions about this code of conduct, see the FAQ at
[https://www.contributor-covenant.org/faq][FAQ]. Translations are available at
[https://www.contributor-covenant.org/translations][translations].
[homepage]: https://www.contributor-covenant.org
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
[Mozilla CoC]: https://github.com/mozilla/diversity
[FAQ]: https://www.contributor-covenant.org/faq
[translations]: https://www.contributor-covenant.org/translations
This document is adapted from the Contributor Covenant 3.0:
[https://www.contributor-covenant.org/version/3/0/](https://www.contributor-covenant.org/version/3/0/).

View File

@@ -12,15 +12,75 @@ just make a pull request directly.
* Bugfixes for new or existing bugs. Please also report new bugs in the issue tracker even if you
also provide a fix. It makes it easier to keep track of what has been fixed and when.
* Translations made via the [Crowdin project page](https://crowdin.com/project/novelwriter).
* Translations of the documentation. These need to use Sphinx i18n tooling. Please start a
discussion before beginning such work as it requires some coordination.
* Improvements to the documentation. Particularly if the documentation is unclear. Please don't
make any larger changes to the documentation without discussing them with the maintainer first.
* Adaptations, installation or packaging features targeting specific operating systems.
* Using AI as a coding assistant is fine as long as the code is of good quality and the scope of
change is small, but do not generate large chunks of code. Generated code is not only hard to
maintain, but also poses licensing issues.
**Please do not:**
* Make a pull request that restructures or reformats existing code. If you think some part of the
code could be improved, please make an issue thread or start a discussion. The same applies to
any text document in the repository.
* Make pull requests with AI generated code. This is not a project suitable for vibe coding.
Outright slop will result in the account being blocked.
## Running from Source
This project uses [uv](https://docs.astral.sh/uv/) to maintain dependencies. In order to run
novelWriter directly from checked out source, simply call from the root folder with:
```bash
uv run novelwriter
```
To set up a development environment with all needed dependencies, run:
```bash
uv sync
```
Many tasks, like building assets from source, are handled by the `pkgutils.py` helper tool.
This tool requires no dependencies, so you can either run it directly with Python, or `uv run`.
```bash
python pkgutils.py --help
```
The translation files needed at runtime can be built with:
```bash
python pkgutils.py qtlrelease
```
Material design icons are included with the source. Optional icon themes can be built with:
```bash
python pkgutils.py icons optional
```
### Running Tests
* New code must not break any existing tests.
* New code must come with tests that cover the code in full. This includes branch coverage. If the
code has branches that only runs on some OSes, they only need to be covered when test are run on
that OS. The test suite runs on Linux, Windows and MacOS.
* It is ok to use `pragma` comments with `no cover` and `no branch` if the code is not expected to
touch those areas or branches.
A helper script is provided for running tests. It simplifies coverage reporting and a few other
things. Run the following to see all details:
```bash
uv run run_tests.py --help
```
## Picking the Correct Branch for a Pull Request
@@ -29,81 +89,58 @@ If you are submitting a fix to a current release you must do so from the `releas
make such a fix on the `main` branch, **it cannot be included in a patch release**. This also
applies to the documentation for the latest release published on the main website.
New features are only accepted on full releases, so a feature pull request must be made to the
`main` branch. However, if the `main` branch is very close to a new full release, pull requests may
not be merged until the release is completed.
New features are only added in full releases, so a feature pull request must be made to the `main`
branch. However, if the `main` branch is very close to a new full release, pull requests may not be
merged until the release is completed.
## Pull Request Check List
This project uses GitHub milestones to plan releases, and only pull requests included in the
current release cycle will be merged to `main`. Milestone tickets are not set in stone and are
often moved to other milestones.
### Pull Request Check List
Make sure the pull request follows these rules:
* The `main` branch is the default branch. For general changes, please make a new branch in your
own fork from the current `main` branch. Do not make pull requests from your copy of the `main`
branch.
branch. The same applies to the `release` branch.
* Please provide a description of the changes in the pull request under the summary section of the
pull request template, and reference any related issues by providing the issue number.
pull request template, and reference any related issues by providing the issue number. Do not
post links to issue numbers as that breaks the integration. Stating the issue number is enough.
* Do not change the version number.
* Do not submit files that were not actively changed but have otherwise been modified. This is
mostly an issue with translation files. The language tool may update all files in the `i18n`
folder.
* Make sure the formatting and linting tools have been run before the pull request is made.
## General Rules
These are the guidelines for the project. The source code of novelWriter broadly follows the
[PEP8](https://www.python.org/dev/peps/pep-0008) style guide, but with a few exceptions.
## Code Style
### Tests
This code base uses camelCase convention for function and variable names. This differs from the
common convention of snake_case in Python. The reason for this is that novelWriter is built on the
Qt framework, where everything is camelCase.
* New code must not break any existing tests.
* New code must come with tests that cover the code in full. If the code has branches that only
runs on some OSes, they must be covered when test are run on that OS. The test suite runs on
Linux, Windows and MacOS.
Pretty much everything else regarding formatting is handled by the linter and formatter. This
project uses [ruff](https://docs.astral.sh/ruff/) for linting and formatting and
[pyright](https://github.com/microsoft/pyright) for type checking. The settings for these tools
are defined in `pyproject.toml`, and any submitted code must pass the following three commands:
### Code Formatting
```bash
uv run ruff check
uv run ruff format
uv run pyright
```
* Do not run automatic formatting tools like `black` or `ruff` on the code. Auto-formatting using
`ruff` is planned, but there are a couple of features missing in it, so it is currently only used
for linting. Auto-formatting with `isort` is configured in `pyproject.toml` and can be used.
* The pull request code *must* pass the `ruff` linting rules specified in `pyproject.toml`.
* In general, do not make large scale formatting changes to the code.
### Line Length
### Type Annotations
* The line length of the source code is enforced by the formatter, and is set to 120 characters.
Docstrings should be wrapped manually at 79 characters for better readability.
* For text files, the text should be wrapped 120 character or less. The exception is Markdown image
tags and URLs which can run past that limit.
* All functions and parameters must be type annotated, and so must variables and attributes if the
type cannot be inferred from the initial value. Typing rules are set in `pyproject.toml` and a
pull request must pass `pyright` with these settings.
* Do not use the `Any` type when an actual type exists. `Any` is allowed for functions that
actually handles any kind of input and returns a standard type.
* Do not use deprecated capitalised annotations like `Dict`, `List`, `Tuple`, etc.
* Type annotated code must be runnable on all supported Python versions.
### Internationalisation
* All comments and docstrings in the code must be in English.
* All text presented to the user must be wrapped in calls to Qt's translation framework, and the
spelling of this text *must* be UK English. US English spelling is not allowed for these strings.
spelling of this text *must* be British English. US English spelling *is not allowed* for these
strings.
* Commit descriptions and pull requests must also be in English.
### Line Length
* Source code lines can extend to the upper limit of 99 characters. Generally, if a code statement
requires multiple lines, the lines should wrap at 79 characters if possible. If wrapping can be
avoided by going to 99, then that is generally preferable. Readability has priority.
* For text files, the text should be wrapped at 99 character. The exception is Markdown image tags
and URLs which can run past that limit.
### Spaces, Indentation and Alignment
* Only indentation by multiples of 4 spaces is allowed.
* No trailing spaces should occur on any line in the source code, including empty lines.
* Common line wrapping methods are allowed in the code except `\`, but avoid deep indentations.
* Aligning operators and attributes in columns with multiple spaces is not allowed by PEP8. The
rule is relaxed a bit here. Alignment is allowed when populating large dictionaries or setting
many class attributes. It does improve readability in such cases, but should not be overused.
### General Code Rules
* Use f-string style for string formatting as the first choice, and `.format` functions if there is
a good reason for it. Do not use `%` style formatting except for logging output. For logging, `%`
must be used (it's a limitation in the logging library unfortunately).
* Functions should be on camelCase form for consistency with the Qt library code.

View File

@@ -6,11 +6,14 @@
## Contributors
Larger contributions were made by:
* Early Concept: Marian Lückhof
* Internationalisation: Bruno Meneguello
* Setup and Packaging: Rachel Powers
* Vim Mode: Alexis Dumelie
For other contributions, see the project's [Contributors](https://github.com/vkbo/novelWriter/graphs/contributors) page.
For other contributions, see the project's [Contributors](https://github.com/saga-soft/novelWriter/graphs/contributors) page.
## Artwork
@@ -21,6 +24,7 @@ The artwork on the Welcome dialog was created by Louis Durrant.
The default language is English (UK) with English (US) as an option. These are the original
translators for the languages currently available:
* **Catalan:** Jaume Planas (jaumeplanas)
* **Czech:** Tomáš Zmek (perteus)
* **Dutch:** Martijn van der Kleijn (mvdkleijn)
* **French:** Jan Lüdke (jyhelle)
@@ -36,6 +40,7 @@ translators for the languages currently available:
Additional larger translation contributions:
* **Dutch:** Lise Blok (risingphoenix73)
* **French:** Albert Aribaud (aaribaud)
* **Portuguese:** Oli Maia (olimaia)
@@ -55,19 +60,67 @@ The following libraries are dependencies of novelWriter:
* **Enchant** by Dom Lachowicz
* **PyEnchant** by Dimitri Merejkowsky
## Assets
## Icon Themes
Some of the assets bundled with novelWriter were adapted from the following sources:
The default icon theme is a subset of icons from:
* **Material Symbols** icons by Google Inc (Apache 2.0)
* **Remix** icons by RemixIcon (Apache 2.0)
* **Font Awesome** icons by Fonticons Inc (CC BY 4.0)
* **Tomorrow** syntax themes by Chris Kempson (MIT License)
* **Owl** syntax themes by Sarah Drasner (MIT License)
* **Solarized** themes by Ethan Schoonover (MIT License)
* **Cyberpunk Night** theme by Anders Lemvigh (CC BY-SA 4.0)
* **Dracula** theme by Zeno Rocha (MIT License)
* **Snazzy Light** theme by Florian Reuschel (MIT License)
* **Material Symbols** by Google Inc (Apache 2.0)
Additional icon themes may or may not be bundled with novelWriter, depending on license
constraints. These themes include a subset of icons from:
* **Font Awesome** by Fonticons Inc (CC BY 4.0)
* **Remix** by RemixIcon (Apache 2.0 w/non-free clause)
* **Lucide** by Cole Bemis and Lucide Contributors (ISC License)
## Colour Themes
Colour themes included with novelWriter were adapted from the following sources:
* **Aura** themes by Dalton Menezes
* **B2T** themes by Bram de Haan
* **B4T** themes by Bram de Haan
* **Catppuccin** themes by Catppuccin Org
* **Dracula** theme by Zeno Rocha
* **Espresso** theme by Sainnhe Park and Antoine Cotten
* **Everforest** themes by Sainnhe Park
* **Horizon** themes by Jonathan Olaleye
* **New Moon** theme by Tania Rascia
* **Noctis** themes by Liviu Schera and contributors
* **Nord** theme by Sven Greb
* **Owl** themes by Sarah Drasner
* **Primer** themes by GitHub, Inc. and Myian
* **Rosé Pine** themes by Rosé Pine
* **Snazzy Light** theme by Florian Reuschel
* **Solarized** themes by Ethan Schoonover
* **Tango** themes by the Tango Desktop Project
* **Tomorrow** themes by Chris Kempson
Other themes were created for novelWriter:
* **Aura Bright** theme by Myian
* **Blue Streak** themes by Veronica Berglyd Olsen
* **Castle** themes by Myian
* **Chalky Soil** theme by Myian
* **Chernozem** theme by Myian
* **Cyberpunk Night** theme by Anders Lemvigh
* **Dark Arts** theme by Myian
* **Floral** themes by Myian
* **Friendly** themes by Myian
* **Full Moon** theme by Myian
* **Jewel Case** themes by Myian
* **LCARS** theme by Veronica Berglyd Olsen
* **Nordlicht** theme by Myian
* **Otium** themes by Myian
* **Paragon** theme by Myian
* **Ruby** themes by Myian
* **Selenium** themes by Myian
* **Sepia** themes by Myian
* **Sultana** themes by Myian
* **Today** themes by Veronica Berglyd Olsen
* **Vivid** themes by Myian
* **Warpgate** theme by Myian
* **Waterlily** themes by Myian
## Fonts

View File

@@ -1,6 +0,0 @@
include pkgutils.py
include LICENSE.md
include CREDITS.md
include CHANGELOG.md
recursive-include novelwriter/assets *
recursive-include setup *

View File

@@ -1,22 +1,16 @@
# novelWriter
[![Linux](https://github.com/vkbo/novelWriter/actions/workflows/test_linux.yml/badge.svg)](https://github.com/vkbo/novelWriter/actions/workflows/test_linux.yml)
[![Windows](https://github.com/vkbo/novelWriter/actions/workflows/test_win.yml/badge.svg)](https://github.com/vkbo/novelWriter/actions/workflows/test_win.yml)
[![MacOS](https://github.com/vkbo/novelWriter/actions/workflows/test_mac.yml/badge.svg)](https://github.com/vkbo/novelWriter/actions/workflows/test_mac.yml)
[![Linting](https://github.com/vkbo/novelWriter/actions/workflows/syntax.yml/badge.svg)](https://github.com/vkbo/novelWriter/actions/workflows/syntax.yml)
[![CodeCov](https://codecov.io/gh/vkbo/novelWriter/branch/main/graph/badge.svg)](https://codecov.io/gh/vkbo/novelWriter)
[![Tests](https://github.com/saga-soft/novelWriter/actions/workflows/tests.yml/badge.svg)](https://github.com/saga-soft/novelWriter/actions/workflows/tests.yml)
[![Linting](https://github.com/saga-soft/novelWriter/actions/workflows/syntax.yml/badge.svg)](https://github.com/saga-soft/novelWriter/actions/workflows/syntax.yml)
[![Cloudsmith](https://img.shields.io/badge/OSS%20hosting%20by-cloudsmith-blue?logo=cloudsmith&style=flat&link=https%3A%2F%2Fcloudsmith.com)](https://cloudsmith.com)
<img align="left" style="margin: 0 0 4px 0;" src="https://raw.githubusercontent.com/vkbo/novelWriter/main/setup/novelwriter_readme.png">
<img align="left" style="margin: 0 0 4px 0;" src="https://raw.githubusercontent.com/saga-soft/novelWriter/main/setup/novelwriter_readme.png">
novelWriter is a plain text editor designed for writing novels assembled from many smaller text
documents. It uses a minimal formatting syntax inspired by Markdown, and adds a meta data syntax
for comments, synopsis, and cross-referencing. It's designed to be a simple text editor that allows
for easy organisation of text and notes, using human readable text files as storage for robustness.
The project storage is suitable for version control software, and also well suited for file
synchronisation tools. All text is saved as plain text files with a meta data header. The core
project structure is stored in a single project XML file. Other meta data is primarily saved as
JSON files.
The project format is well suited both for version control software and file synchronisation tools.
For more details, and how to install and use novelWriter, please see the main website and
documentation.
@@ -29,54 +23,65 @@ documentation.
* PyPi Project: [pypi.org/project/novelWriter](https://pypi.org/project/novelWriter)
* Social Media: [fosstodon.org/@novelwriter](https://fosstodon.org/@novelwriter)
## Sponsors
_This project is developed and maintained with care by actual humans._
## Sponsors & Attribution
<table style="border: none;">
<tr>
<td><img align="left" style="height: 25px;" src="https://raw.githubusercontent.com/vkbo/novelWriter/main/setup/signpath_logo.png"></td>
<td><img align="left" style="width: 25px;" src="https://raw.githubusercontent.com/saga-soft/novelWriter/main/setup/signpath_logo.png"></td>
<td>Free code signing on Windows provided by <a href="https://about.signpath.io/">SignPath.io</a>, certificate by <a href="https://signpath.org/">SignPath Foundation</a>.</td>
</tr>
<tr>
<td><img align="left" style="width: 25px;" src="https://raw.githubusercontent.com/saga-soft/novelWriter/main/setup/cloudsmith_logo.png"></td>
<td>Free package repository hosting is graciously provided by <a href="https://cloudsmith.com">Cloudsmith</a>.</td>
</tr>
</table>
## Implementation
novelWriter is written with Python and Qt6 with PyQt6 Python binding. It is released on Linux,
Windows and MacOS. It can in principle run on any Operating System that also supports Qt, PyQt and
Python.
novelWriter is written in Python and uses Qt6 with PyQt6 Python binding as the UI framework. It is
released on Linux, Windows and MacOS. It can in principle run on any Operating System that also
supports Qt, PyQt and Python.
<p align="center">
<img width="80%" src="https://raw.githubusercontent.com/vkbo/novelWriter/main/setup/screenshot.png">
<img width="80%" src="https://raw.githubusercontent.com/saga-soft/novelWriter/main/setup/screenshot.png">
</p>
## Project Contributions
Please don't make feature pull requests without first having discussed them with the maintainer.
You can make a feature request in the [issues tracker](https://github.com/vkbo/novelWriter/issues),
or if the idea isn't fully formed, start a [discussion](https://github.com/vkbo/novelWriter/discussions).
Please also don't make pull requests to reformat or rewrite existing code unless there is a very good reason for doing so.
You can make a feature request in the [issues tracker](https://github.com/saga-soft/novelWriter/issues),
or if the idea isn't fully formed, start a [discussion](https://github.com/saga-soft/novelWriter/discussions).
Please also don't make pull requests to reformat or rewrite existing code unless there is a very
good reason for doing so. Please do not submit AI generated content.
Fixes and patches are welcome. Contributions related to packaging and installing novelWriter will
also be appreciated, but please make an issue or a discussion topic first. Before contributing any
code, please also read the full
[Contributing Guide](https://github.com/vkbo/novelWriter/blob/main/CONTRIBUTING.md).
[Contributing Guide](https://github.com/saga-soft/novelWriter/blob/main/CONTRIBUTING.md).
Project credits are available in [CREDITS.md](https://github.com/vkbo/novelWriter/blob/main/CREDITS.md).
Project credits are available in [CREDITS.md](https://github.com/saga-soft/novelWriter/blob/main/CREDITS.md).
**Note:** New features and pre-releases are made on the `main` branch. Full releases are made from
the `release` branch. So if you're submitting a fix to a current release, **including changes to
documentation**, they must be made to the `release` branch.
### Translations
New translations are always welcome. This project uses Crowdin to maintain translations, and you
can contribute translations at the [Crowdin project page](https://crowdin.com/project/novelwriter).
If you have any questions, feel free to post them to the
[Translations of novelWriter](https://github.com/vkbo/novelWriter/issues/93) issue thread.
[Translations of novelWriter](https://github.com/saga-soft/novelWriter/issues/93) issue thread.
## Licence
This is Open Source software, and novelWriter is licenced under GPLv3. See the
[GNU General Public License website](https://www.gnu.org/licenses/gpl-3.0.en.html) for more
details, or consult the [License](https://github.com/vkbo/novelWriter/blob/main/LICENSE.md)
details, or consult the [License](https://github.com/saga-soft/novelWriter/blob/main/LICENSE.md)
document. Bundled assets and their licences are listed in the
[Credits](https://github.com/vkbo/novelWriter/blob/main/CREDITS.md) document.
[Credits](https://github.com/saga-soft/novelWriter/blob/main/CREDITS.md) document.

View File

@@ -1,22 +0,0 @@
codecov:
require_ci_to_pass: yes
coverage:
precision: 2
round: nearest
range: "70...95"
status:
project:
default:
threshold: 1%
patch: no
changes: no
parsers:
gcov:
branch_detection:
conditional: yes
loop: yes
method: no
macro: no

View File

@@ -1,8 +0,0 @@
docutils>=0.17.1
pygments>=2.7
sphinx-book-theme
sphinx-copybutton
sphinx-design
sphinx-favicon
sphinx-intl
sphinx>=5.0

View File

@@ -1,7 +1,7 @@
"""
Configuration file for the Sphinx documentation builder.
Documentation: http://www.sphinx-doc.org/en/master/config
"""
""" # noqa
# -- Imports -----------------------------------------------------------------
@@ -14,23 +14,22 @@ import time
project = "novelWriter"
copyright = f"{datetime.date.today().year}" # noqa: A001
tmp_authors = ["Veronica Berglyd Olsen"]
if additional := os.environ.get("SPHINX_I18N_AUTHORS"):
tmp_authors.extend(a.strip() for a in additional.split(","))
if override_authors := os.environ.get("SPHINX_I18N_AUTHORS"):
author = override_authors
else:
author = "Veronica Berglyd Olsen"
author = ", ".join(tmp_authors)
initFile = os.path.join(
os.path.dirname(__file__), os.pardir, os.pardir,
"novelwriter", "__init__.py"
)
with open(initFile, encoding="utf-8") as inFile:
for aLine in inFile:
if aLine.startswith("__version__"):
release = aLine.split('"')[1].strip()
break
else:
release = "unknown"
if override_version := os.environ.get("SPHINX_I18N_VERSION"):
release = override_version
else:
initFile = os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, "novelwriter", "__init__.py")
with open(initFile, encoding="utf-8") as inFile:
for aLine in inFile:
if aLine.startswith("__version__"):
release = "20" + aLine.split('"')[1].strip()
break
else:
release = "unknown"
version = release.partition("-")[0]
@@ -42,7 +41,7 @@ time.tzset()
needs_sphinx = "5.0"
extensions = ["sphinx_design", "sphinx_copybutton"]
templates_path = ["_templates"]
source_suffix = ".rst"
source_suffix = {".rst": "restructuredtext"}
master_doc = "index"
today_fmt = "%A, %d %B %Y at %H:%M"
language = "en"
@@ -63,12 +62,12 @@ html_theme_options = {
},
"show_toc_level": 2,
"show_navbar_depth": 1,
"repository_url": "https://github.com/vkbo/novelwriter",
"repository_url": "https://github.com/saga-soft/novelwriter",
"navigation_with_keys": True,
"use_repository_button": True,
"use_issues_button": True,
"pygment_light_style": "tango",
"pygment_dark_style": "dracula",
"pygments_light_style": "tango",
"pygments_dark_style": "dracula",
}
html_sidebars = {
"**": ["navbar-logo", "sidebar-title", "sbt-sidebar-nav"],
@@ -79,13 +78,8 @@ html_sidebars = {
latex_elements = {
"papersize": "a4paper",
"pointsize": "11pt",
"preamble": (
"\\usepackage[utf8]{inputenc}\n"
"\\DeclareUnicodeCharacter{2212}{\\textendash}\n"
),
"preamble": ("\\usepackage[utf8]{inputenc}\n\\DeclareUnicodeCharacter{2212}{\\textendash}\n"),
"figure_align": "htbp",
}
latex_logo = "_static/novelwriter-pdf.png"
latex_documents = [(
master_doc, "manual.tex", None, author, "manual"
)]
latex_documents = [(master_doc, "manual.tex", None, author, "manual")]

View File

@@ -19,7 +19,7 @@ Main Window Shortcuts
:header: "Shortcut", "Description"
":kbd:`F1`", "Open the online user manual"
":kbd:`F5`", "Open the **Build Manuscript** tool"
":kbd:`F5`", "Open the **Manuscript Build** tool"
":kbd:`F6`", "Open the **Writing Statistics** tool"
":kbd:`F8`", "Toggle **Focus Mode**"
":kbd:`F9`", "Re-build the project's index"
@@ -88,7 +88,6 @@ Text Formatting Shortcuts
":kbd:`Ctrl+'`", "Wrap selected text, or word under cursor, in single quotes"
":kbd:`Ctrl+""`", "Wrap selected text, or word under cursor, in double quotes"
":kbd:`Ctrl+/`", "Toggle comment format for block or selected text"
":kbd:`Ctrl+0`", "Remove format for block or selected text"
":kbd:`Ctrl+1`", "Change block format to heading level 1"
":kbd:`Ctrl+2`", "Change block format to heading level 2"
":kbd:`Ctrl+3`", "Change block format to heading level 3"
@@ -101,6 +100,7 @@ Text Formatting Shortcuts
":kbd:`Ctrl+B`", "Format selected text, or word under cursor, with bold"
":kbd:`Ctrl+D`", "Format selected text, or word under cursor, with strike through"
":kbd:`Ctrl+I`", "Format selected text, or word under cursor, with italic"
":kbd:`Ctrl+M`", "Highlight selected text, or word under cursor"
":kbd:`Ctrl+Shift+/`", "Remove format for block or selected text"
":kbd:`Ctrl+Shift+D`", "Toggle ignored text format for block or selected text"
@@ -111,23 +111,34 @@ Other Editor Shortcuts
.. csv-table::
:header: "Shortcut", "Description"
":kbd:`F7`", "Re-run the spell checker on the document"
":kbd:`Ctrl+.`", "Open the context menu at the current cursor location"
":kbd:`Ctrl+A`", "Select all text in the document"
":kbd:`Ctrl+C`", "Copy selected text to clipboard"
":kbd:`Ctrl+K`", "Activate the insert commands (see list in :ref:`docs_features_shortcuts_insert`)"
":kbd:`Ctrl+R`", "Open or reload the current document in the viewer"
":kbd:`Ctrl+S`", "Save the current document"
":kbd:`Ctrl+V`", "Paste text from clipboard to cursor position"
":kbd:`Ctrl+W`", "Close the current document"
":kbd:`Ctrl+X`", "Cut selected text to clipboard"
":kbd:`Ctrl+Y`", "Redo latest undo"
":kbd:`Ctrl+Z`", "Undo latest changes"
":kbd:`Ctrl+Backspace`", "Delete the word before the cursor"
":kbd:`Ctrl+Del`", "Delete the word after the cursor"
":kbd:`Ctrl+F7`", "Toggle spell checking"
":kbd:`Ctrl+Return`", "Open the tag or reference under the cursor in the viewer"
":kbd:`Ctrl+Shift+A`", "Select all text in the current paragraph"
":kbd:`F7`", "Re-run the spell checker on the document"
":kbd:`Ctrl+.`", "Open the context menu at the current cursor location"
":kbd:`Ctrl+A`", "Select all text in the document"
":kbd:`Ctrl+C`", "Copy selected text to clipboard"
":kbd:`Ctrl+K`", "Activate the insert commands (see list in :ref:`docs_features_shortcuts_insert`)"
":kbd:`Ctrl+R`", "Open or reload the current document in the viewer"
":kbd:`Ctrl+S`", "Save the current document"
":kbd:`Ctrl+V`", "Paste text from clipboard to cursor position"
":kbd:`Ctrl+W`", "Close the current document"
":kbd:`Ctrl+X`", "Cut selected text to clipboard"
":kbd:`Ctrl+Y`", "Redo latest undo"
":kbd:`Ctrl+Z`", "Undo latest changes"
":kbd:`Ctrl+0`", "Reset zoom"
":kbd:`Ctrl++`", "Zoom in"
":kbd:`Ctrl+=`", "Zoom in"
":kbd:`Ctrl+-`", "Zoom out"
":kbd:`Ctrl+_`", "Zoom out"
":kbd:`Ctrl+Backspace`", "Delete the word before the cursor"
":kbd:`Ctrl+Del`", "Delete the word after the cursor"
":kbd:`Ctrl+F7`", "Toggle spell checking"
":kbd:`Ctrl+Return`", "Open the tag or reference under the cursor in the viewer"
":kbd:`Ctrl+Shift+Return`", "Open the tag or reference under the cursor in the editor"
":kbd:`Ctrl+Shift+A`", "Select all text in the current paragraph"
":kbd:`Ctrl+Shift+V`", "Paste text as plain text from clipboard to cursor position"
":kbd:`Ctrl+Left`", "Move to previous word."
":kbd:`Ctrl+Right`", "Move to next word."
":kbd:`Ctrl+Up`", "Move to previous paragraph."
":kbd:`Ctrl+Down`", "Move to next paragraph."
.. _docs_features_shortcuts_insert:
@@ -188,5 +199,10 @@ Document Viewer Shortcuts
":kbd:`Alt+Left`", "Move backward in the view history"
":kbd:`Alt+Right`", "Move forward in the view history"
":kbd:`Ctrl+C`", "Copy selected text to clipboard"
":kbd:`Ctrl+0`", "Reset zoom"
":kbd:`Ctrl++`", "Zoom in"
":kbd:`Ctrl+=`", "Zoom in"
":kbd:`Ctrl+-`", "Zoom out"
":kbd:`Ctrl+_`", "Zoom out"
":kbd:`Ctrl+Shift+A`", "Select all text in the current paragraph"
":kbd:`Ctrl+Shift+R`", "Close the document viewer"

View File

@@ -51,7 +51,7 @@ Other analytical models propose tracking a scene's pace, how it affects the mood
which element(s) of the story's genre are being satisfied. An author can use this mechanism to
track any element of a scene. Some examples include time of day, how much time passes in the scene,
or even the physical form of a shape-shifting character. If a story involves magic, one could track
which wand a main character has in hand. It's up to tha author.
which wand a main character has in hand. It's up to the author.
When the story and other scene metadata is extracted into a tabular form, it is possible to get a
comprehensive overview of the story and to identify possible issues. For example, so many

View File

@@ -0,0 +1,115 @@
.. _docs_features_vim_mode:
********
Vim Mode
********
.. _Vim: https://www.vim.org/
Vim_ is a keyboard-centric text editor. "Vim mode" refers to another editor implementing the
ability to perform a subset of vim motions. This will allow you to write, select, edit, copy,
paste, navigate, etc, efficiently by using keyboard commands.
Vim is modal. Three such modes have been implemented in novelWriter:
- **Normal** mode is the default mode used to navigate text.
- **Insert** mode is where you can write text like in a 'normal' text editor.
- **Visual** mode is for selecting text, with:
- **Visual** mode for per character selection.
- **V-Line** mode for per-line selection.
The vim mode setting is found in the **Features** section of the **Preferences**.
.. note::
Vim mode is an advanced feature. When you enable it, the text editor will behave very
differently than a standard text editor. A label in the footer of the editor will show which of
the vim modes it is in.
Mode Switching
==============
To switch between the various vim modes, these keystrokes implemented:
.. csv-table::
:header: "From Mode", "To Mode", "Keystrokes"
"Normal", "Insert", ":kbd:`i`, :kbd:`I`, :kbd:`a`, :kbd:`A`, :kbd:`o`, :kbd:`O`"
"Insert", "Normal", ":kbd:`Esc`"
"Normal", "Visual", ":kbd:`v`, :kbd:`V`"
You can exit visual mode back to normal mode by pressing :kbd:`Esc`, but all visual mode commands
that logically "terminate" the visual mode usage will return you to normal mode.
For instance, press :kbd:`V` to enter V-Line mode, select next word with :kbd:`w`. press :kbd:`y`
to yank (copy), you are now automatically put back in normal mode as you have completed selecting
your text.
Implemented Keystrokes (Vim Motions)
====================================
The table below shows the vim motions currently implemented in novelWriter.
.. csv-table::
:header: "Motion", "Mode(s)", "Description"
":kbd:`i`", "Normal → Insert", "Enter insert mode"
":kbd:`I`", "Normal → Insert", "Jump to first non-blank of line and enter insert"
":kbd:`v`", "Normal → Visual", "Enter character-wise visual mode"
":kbd:`V`", "Normal → V-Line", "Enter line-wise visual mode"
":kbd:`dd`", "Normal", "Delete (cut) current line"
":kbd:`x`", "Normal", "Delete character under cursor"
":kbd:`w`", "Normal / Visual", "Move to next word start"
":kbd:`b`", "Normal / Visual", "Move to previous word start"
":kbd:`e`", "Normal / Visual", "Move to next word end"
":kbd:`dw`", "Normal", "Delete from cursor to next word start"
":kbd:`de`", "Normal", "Delete from cursor to next word end"
":kbd:`db`", "Normal", "Delete from cursor to previous word start"
":kbd:`d$`", "Normal", "Delete from cursor to end of line"
":kbd:`yw`", "Normal", "Yank (copy) from cursor to next word start"
":kbd:`gg`", "Normal / Visual", "Jump to first line"
":kbd:`G`", "Normal / Visual", "Jump to last line"
":kbd:`yy`", "Normal", "Yank current line"
":kbd:`p`", "Normal", "Paste after current line"
":kbd:`P`", "Normal", "Paste before current line"
":kbd:`o`", "Normal → Insert", "Open new line below and enter insert"
":kbd:`O`", "Normal → Insert", "Open new line above and enter insert"
":kbd:`$`", "Normal / Visual", "Move to end of line"
":kbd:`a`", "Normal → Insert", "Enter insert after cursor"
":kbd:`A`", "Normal → Insert", "Enter insert at end of line"
":kbd:`u`", "Normal", "Undo last change"
":kbd:`zz`", "Normal", "Centre cursor vertically"
":kbd:`h`", "Normal / Visual", "Move left"
":kbd:`j`", "Normal / Visual", "Move down"
":kbd:`k`", "Normal / Visual", "Move up"
":kbd:`l`", "Normal / Visual", "Move right"
":kbd:`d`", "Visual / V-Line", "Delete selection"
":kbd:`x`", "Visual / V-Line", "Delete selection"
":kbd:`y`", "Visual / V-Line", "Yank selection"
":kbd:`0`", "Visual", "Move to start of line (extend selection)"
Known Issues
============
* Currently, :kbd:`dd` on an empty line will not delete, but using :kbd:`x` will.
* :kbd:`vypyy` will have :kbd:`ypyy` in command memory and thus not register :kbd:`yy`. Expected
behavior would be visual mode, yank, paste, yank line.
* Differing behavior from vim: the :kbd:`e` command behaves a bit differently with regards to the
last character of a word. The behavior is inconsistent with vim but functional and still logical
to use. The cursor is placed at the end of the word after the last character rather than on the
last character.
.. code-block::
test
^ Cursor placed here in vim
test
^ Cursor placed here in novelWriter vim mode
You will only really ever notice this behavior if you try to combine the :kbd:`e` command with
another. For instance, :kbd:`de` will not delete the last character but delete forward as it
starts one character after the word boundary.

View File

@@ -22,10 +22,10 @@ storage for robustness.
* Documentation: https://docs.novelwriter.io
* Public Releases: https://releases.novelwriter.io
* Internationalisation: https://crowdin.com/project/novelwriter
* Source Code: https://github.com/vkbo/novelWriter
* Source Releases: https://github.com/vkbo/novelWriter/releases
* Issue Tracker: https://github.com/vkbo/novelWriter/issues
* Feature Discussions: https://github.com/vkbo/novelWriter/discussions
* Source Code: https://github.com/saga-soft/novelWriter
* Source Releases: https://github.com/saga-soft/novelWriter/releases
* Issue Tracker: https://github.com/saga-soft/novelWriter/issues
* Feature Discussions: https://github.com/saga-soft/novelWriter/discussions
* PyPi Project: https://pypi.org/project/novelWriter
* Social Media: https://fosstodon.org/@novelwriter
@@ -59,6 +59,7 @@ storage for robustness.
user_interface/editor_viewer
user_interface/split_and_merge
user_interface/manuscript
user_interface/formatting
user_interface/statistics
.. toctree::
@@ -68,6 +69,7 @@ storage for robustness.
features/dialogue
features/story_comments
features/shortcuts
features/vim_mode
.. toctree::
:caption: In-Depth Topics
@@ -75,6 +77,7 @@ storage for robustness.
more/counting
more/typography
more/dictionaries
more/customise
more/handling_errors
more/project_format

View File

@@ -1,2 +0,0 @@
# French translation authors, one name per line
Jean-Michel Heras

View File

@@ -0,0 +1,3 @@
[fr]
version = "2.7"
authors = ["Jean-Michel Heras", "Veronica Berglyd Olsen"]

View File

@@ -96,21 +96,20 @@ msgid "Internationalisation: https://crowdin.com/project/novelwriter"
msgstr "Internationalisation: https://crowdin.com/project/novelwriter"
#: ../../source/index.rst:25
msgid "Source Code: https://github.com/vkbo/novelWriter"
msgstr "Code source : https://github.com/vkbo/novelWriter"
msgid "Source Code: https://github.com/saga-soft/novelWriter"
msgstr "Code source : https://github.com/saga-soft/novelWriter"
#: ../../source/index.rst:26
msgid "Source Releases: https://github.com/vkbo/novelWriter/releases"
msgstr "Source Releases: https://github.com/vkbo/novelWriter/releases"
msgid "Source Releases: https://github.com/saga-soft/novelWriter/releases"
msgstr "Source Releases: https://github.com/saga-soft/novelWriter/releases"
#: ../../source/index.rst:27
msgid "Issue Tracker: https://github.com/vkbo/novelWriter/issues"
msgstr "Issue Tracker: https://github.com/vkbo/novelWriter/issues"
msgid "Issue Tracker: https://github.com/saga-soft/novelWriter/issues"
msgstr "Issue Tracker: https://github.com/saga-soft/novelWriter/issues"
#: ../../source/index.rst:28
msgid "Feature Discussions: https://github.com/vkbo/novelWriter/discussions"
msgstr ""
"Feature Discussions: https://github.com/vkbo/novelWriter/discussions"
msgid "Feature Discussions: https://github.com/saga-soft/novelWriter/discussions"
msgstr "Feature Discussions: https://github.com/saga-soft/novelWriter/discussions"
#: ../../source/index.rst:29
msgid "PyPi Project: https://pypi.org/project/novelWriter"

View File

@@ -183,29 +183,29 @@ msgstr ""
#: ../../source/more/customise.rst:78
msgid ""
"The existing syntax themes are stored in `novelwriter/assets/syntax "
"<https://github.com/vkbo/novelWriter/tree/main/novelwriter/assets/"
"<https://github.com/saga-soft/novelWriter/tree/main/novelwriter/assets/"
"syntax>`_."
msgstr ""
"Les thèmes syntaxiques existants sont stockés dans `novelwriter/assets/"
"syntax <https://github.com/vkbo/novelWriter/tree/main/novelwriter/assets/"
"syntax <https://github.com/saga-soft/novelWriter/tree/main/novelwriter/assets/"
"syntax>`_."
#: ../../source/more/customise.rst:80
msgid ""
"The existing GUI themes are stored in `novelwriter/assets/themes <https://"
"github.com/vkbo/novelWriter/tree/main/novelwriter/assets/themes>`_."
"github.com/saga-soft/novelWriter/tree/main/novelwriter/assets/themes>`_."
msgstr ""
"Les thèmes GUI existants sont stockés dans `novelwriter/assets/themes "
"<https://github.com/vkbo/novelWriter/tree/main/novelwriter/assets/"
"<https://github.com/saga-soft/novelWriter/tree/main/novelwriter/assets/"
"themes>`_."
#: ../../source/more/customise.rst:82
msgid ""
"The existing icon themes are stored in `novelwriter/assets/icons <https://"
"github.com/vkbo/novelWriter/tree/main/novelwriter/assets/icons>`_."
"github.com/saga-soft/novelWriter/tree/main/novelwriter/assets/icons>`_."
msgstr ""
"Les thèmes d'icônes existants sont stockés dans `novelwriter/assets/icons "
"<https://github.com/vkbo/novelWriter/tree/main/novelwriter/assets/icons>`_."
"<https://github.com/saga-soft/novelWriter/tree/main/novelwriter/assets/icons>`_."
#: ../../source/more/customise.rst:85
msgid ""

View File

@@ -15,7 +15,7 @@ generated preview.
Text Word Counts and Stats
==========================
These are the rules for the main counts available for for each document in a project.
These are the rules for the main counts available for each document in a project.
For all counts, the following rules apply.
@@ -82,17 +82,17 @@ The following counts are available:
The number of characters in all lines, including any comments and meta data text. Paragraph
breaks are not counted, but in-paragraph hard line breaks are.
**Character in Text**
**Characters in Text**
The number of characters in body text paragraphs. Paragraph breaks are not counted, but
in-paragraph hard line breaks are.
**Characters in Headings**
The number of characters in headings.
**Character in Text, No Spaces**
**Characters in Text, No Spaces**
The number of characters in body text paragraphs considered part of a word or punctuation. That
is, white space characters are not counted.
**Character in Headings, No Spaces**
**Characters in Headings, No Spaces**
The number of characters in headings considered part of a word or punctuation. That is, white
space characters are not counted.

View File

@@ -1,94 +1,35 @@
.. _docs_more_custom:
**************
Customisations
**************
*************
Custom Themes
*************
.. _Enchant: https://rrthomas.github.io/enchant/
.. _Free Desktop: https://cgit.freedesktop.org/libreoffice/dictionaries/tree/
There are a few ways you can customise novelWriter yourself. Currently, you can add new GUI themes,
your own syntax themes, and install additional dictionaries.
.. _docs_more_custom_dict:
Spell Check Dictionaries
========================
novelWriter uses Enchant_ as the spell checking tool. Depending on your operating system, it may or
may not load all installed spell check dictionaries automatically.
Linux and MacOS
---------------
On Linux and MacOS, you generally only have to install hunspell, aspell or myspell dictionaries on
your system like you do for other applications. See your distro or OS documentation for how to do
this. These dictionaries should show up as available spell check languages in novelWriter.
Windows
-------
For Windows, English is included with the installation. For other languages you have to download
and add dictionaries yourself.
**Install Tool**
A small tool to assist with this can be found under **Tools > Add Dictionaries**. It will import
spell checking dictionaries from Free Office or Libre Office extensions. The dictionaries are then
installed in the install location for the Enchant library and should thus work for any application
that uses Enchant for spell checking.
**Manual Install**
If you prefer to do this manually or want to use a different source than the ones mentioned above,
You need to get compatible dictionary files for your language. You need two files files ending with
``.aff`` and ``.dic``. These files must then be copied to the following location:
``C:\Users\<USER>\AppData\Local\enchant\hunspell``
This assumes your user profile is stored at ``C:\Users\<USER>``. The last one or two folders may
not exist, so you may need to create them.
You can find the various dictionaries on the `Free Desktop`_ website.
.. note::
The Free Desktop link points to a repository, and what may look like file links inside the
dictionary folder are actually links to web pages. If you right-click and download those, you
get HTML files, not dictionaries!
In order to download the actual dictionary files, right-click the "plain" label at the end of
each line and download that.
There are a few ways you can customise novelWriter yourself. Currently, you can relatively easily
add new GUI themes. You can also add new icon themes, although this is not as straightforward.
.. _docs_more_custom_theme:
Syntax and GUI Themes
=====================
Colour Themes
=============
Adding your own GUI and syntax themes is relatively easy, although it requires that you manually
edit config files with colour values. The themes are defined by simple plain text config files with
meta data and colour settings.
Adding your own colour themes is relatively easy, although it requires that you manually edit
config files with colour values. The themes are defined in plain text files with meta data and
colour settings, using the toml format,
In order to make your own versions, first copy one of the existing files to your local computer and
modify it as you like.
* The existing syntax themes are stored in
`novelwriter/assets/syntax <https://github.com/vkbo/novelWriter/tree/main/novelwriter/assets/syntax>`_.
* The existing GUI themes are stored in
`novelwriter/assets/themes <https://github.com/vkbo/novelWriter/tree/main/novelwriter/assets/themes>`_.
* The existing icon themes are stored in
`novelwriter/assets/icons <https://github.com/vkbo/novelWriter/tree/main/novelwriter/assets/icons>`_.
The existing colour themes are stored in
`novelwriter/assets/themes <https://github.com/saga-soft/novelWriter/tree/main/novelwriter/assets/themes>`_.
Remember to also change the name of your theme by modifying the ``name`` setting at the top of the
file, otherwise you may not be able to distinguish them in **Preferences**.
For novelWriter to be able to locate the custom theme files, you must copy them to the
:ref:`docs_technical_locations_data` location in your home or user area. There should be a folder there named
``syntax`` for syntax themes, just ``themes`` for GUI themes, and ``icons`` for icon themes. These
folders are created the first time you start novelWriter.
:ref:`docs_technical_locations_data` location in your home or user area. There should be a folder
there named ``themes`` for colour themes. These folders are created the first time you start
novelWriter.
Once the files are copied there, they should show up in **Preferences** with the label you
set as ``name`` inside the file.
@@ -99,71 +40,156 @@ set as ``name`` inside the file.
files up to date.
Custom GUI and Icons Theme
--------------------------
The Theme File Format
---------------------
A GUI theme ``.conf`` file consists of the following settings:
A colour theme ``.toml`` file consists of the following settings:
.. code-block:: cfg
.. code-block:: toml
:caption: The theme file for the "Default Light Theme"
[Main]
name = My Custom Theme
description = A description of my custom theme
author = Jane Doe
credit = John Doe
url = https://example.com
license = CC BY-SA 4.0
licenseurl = https://creativecommons.org/licenses/by-sa/4.0/
name = "Default Light Theme"
mode = "light"
author = "Veronica Berglyd Olsen"
credit = "Veronica Berglyd Olsen"
url = "https://github.com/saga-soft/novelWriter"
[Icons]
default = 100, 100, 100
faded = 100, 100, 100
red = 255, 0, 0
orange = 255, 128, 0
yellow = 255, 255, 0
green = 0, 255, 0
aqua = 0, 255, 255
blue = 0, 0, 255
purple = 255, 0, 255
[Base]
base = "#fcfcfc"
default = "#303030"
faded = "#6c6c6c"
red = "#a62a2d"
orange = "#b36829"
yellow = "#a39c34"
green = "#296629"
cyan = "#269999"
blue = "#3a70a6"
purple = "#b35ab3"
[Project]
root = 0, 255, 255
folder = 255, 255, 0
file = 100, 100, 100
title = 0, 255, 0
chapter = 255, 0, 0
scene = 0, 0, 255
note = 255, 255, 0
root = "blue"
folder = "yellow"
file = "default"
title = "green"
chapter = "red"
scene = "blue"
note = "yellow"
active = "green"
inactive = "red"
disabled = "faded"
[Icon]
tool = "default"
sidebar = "default"
accept = "green"
reject = "red"
action = "blue"
option = "orange"
apply = "green"
create = "yellow"
destroy = "faded"
reset = "green"
add = "green"
change = "green"
remove = "red"
shortcode = "default"
markdown = "orange"
system = "yellow"
info = "blue"
warning = "orange"
error = "red"
[Palette]
window = 100, 100, 100
windowtext = 100, 100, 100
base = 100, 100, 100
alternatebase = 100, 100, 100
text = 100, 100, 100
tooltipbase = 100, 100, 100
tooltiptext = 100, 100, 100
button = 100, 100, 100
buttontext = 100, 100, 100
brighttext = 100, 100, 100
highlight = 100, 100, 100
highlightedtext = 100, 100, 100
link = 100, 100, 100
linkvisited = 100, 100, 100
window = "base:D105"
windowText = "default"
base = "base"
alternateBase = "#e0e0e0"
text = "default"
tooltipBase = "#ffffc0"
tooltipText = "#15150d"
button = "#efefef"
buttonText = "default"
brightText = "base"
highlight = "#3087c6"
highlightedText = "base"
link = "blue"
linkVisited = "blue"
accent = "#3087c6"
[GUI]
helptext = 0, 0, 0
fadedtext = 128, 128, 128
errortext = 255, 0, 0
helpText = "#5c5c5c"
fadedText = "#6c6c6c"
errorText = "red"
accentText = "blue"
activeButton = "blue:96"
activeBase = "#d7d7d7"
searchMatch = "orange:96"
In the Main section you must at least define the ``name`` settings.
[Syntax]
background = "base"
text = "default"
line = "default:32"
link = "blue"
headerText = "green"
headerTag = "green:L135"
emphasis = "orange"
whitespace = "orange:64"
dialog = "blue"
altDialog = "red"
note = "yellow:D125"
hidden = "faded"
shortcode = "blue"
keyword = "red"
tag = "green"
value = "green"
optional = "blue"
spellCheckLine = "red"
errorLine = "green"
replaceTag = "green"
modifier = "blue"
textHighlight = "yellow:72"
The Palette values correspond to the Qt enum values for ``QPalette::ColorRole``, see the
`Qt documentation <https://doc.qt.io/qt-6/qpalette.html#ColorRole-enum>`_ for more details. The
colour values are RGB numbers on the format ``r, g, b`` where each is an integer from ``0`` to
``255``. Omitted values are not loaded and will use default values. If the ``helptext`` colour is
not defined, it is computed as a colour between the ``window`` and ``windowtext`` colour.
Additional shades of some of the colours are also computed. These are mainly used for 3D effects.
Theme Sections
--------------
.. _ColorRole: https://doc.qt.io/qt-6/qpalette.html#ColorRole-enum
The theme file is made up of different sections depending on what part of novelWriter the theme
affects.
.. csv-table:: Theme Sections Overview
:header: "Section", "Description"
:class: "tight-table"
"``[Main]``", "Meta data about the theme, You must at least set ``name``, ``mode`` and ``author``, and ``mode`` must be either ``light`` or ``dark``."
"``[Base]``", "The base colours of the theme. These are also selectable colours in various places inside the app, like for icon colours in **Preferences**."
"``[Project]``", "The colours used for icons and markers for the different project item types."
"``[Icon]``", "The colours used for icons and buttons on the user interface. The names correspond to button and icon roles."
"``[Palette]``", "The colours used for styling the user interface. The values correspond to the ColorRole_ values in the Qt library."
"``[GUI]``", "The colours used for styling additional elements of the user interface."
"``[Syntax]``", "The colours used for syntax highlighting in documents."
Colour Value Formats
--------------------
There are several ways to enter colour values:
.. csv-table:: Colour Formats
:header: "Syntax", "Description"
:widths: 15, 85
:class: "tight-table"
"``#RRGGBB``", "A CSS style hexadecimal values, like ``#ff0000`` for red."
"``#RRGGBBAA``", "A CSS style hexadecimal values with transparency, like ``#ff00007f`` for half-transparent red."
"``name``", "A name referring to one of the colours already specified under the ``[Base]`` section, like ``red``. Note that you should not use named colours in the ``[Base]`` section itself as that may have unintended results."
"``name:255``", "A name referring to one of the colours already specified under the ``[Base]`` section, with a transparency value added. The value must be in the range ``0`` to ``255``, like ``red:127`` for half-transparent red."
"``name:L100``", "A name referring to one of the colours already specified under the ``[Base]`` section, where the L-number is a percentage value that makes it lighter. The value must be greater than ``0``. ``L100`` means no change."
"``name:D100``", "A name referring to one of the colours already specified under the ``[Base]`` section, where the D-number is a percentage value that makes it darker. The value must be greater than ``0``. ``D100`` means no change."
"``r, g, b``", "A set of red, green and blue numbers in the range ``0`` to ``255``, like ``255, 0, 0`` for red."
"``r, g, b, a``", "A set of red, green, blue and alpha numbers in the range ``0`` to ``255``, like ``255, 0, 0, 127`` for half-transparent red."
.. versionadded:: 2.5
The ``fadedtext`` and ``errortext`` theme colour entries were added.
@@ -172,60 +198,113 @@ Additional shades of some of the colours are also computed. These are mainly use
The ``icontheme`` setting was dropped as the icon theme is now its own setting.
The ``[Icons]`` and ``[Project]`` sections were added, and the ``status*`` settings removed.
.. versionadded:: 2.8
The ``[Syntax]`` section was moved into the main theme file. Previously, these settings were in
their own file. The ``[Icons]`` section was renamed to ``[Base]``, and a new ``[Icon]`` section
added for button and icon roles. Added the ``line`` and ``whitespace`` settings. Dropped the
``license``, ``licenseurl``, and ``description`` settings. The ``author`` field is now required
if the theme is included in the app, but not for user themes.
Custom Syntax Theme
-------------------
.. versionadded:: 26.2
The ``accentText``, ``activeButton``, ``activeBase`` and ``searchMatch`` settings were added to
the ``[GUI]`` section. The file format was also converted from conf to toml, and a number of the
colour settings were renamed to camelCase format. The following values were renamed:
A syntax theme ``.conf`` file consists of the following settings:
* ``altaction`` to ``option``
* ``systemio`` to ``system``
* ``windowtext`` to ``windowText``
* ``alternatebase`` to ``alternateBase``
* ``tooltipbase`` to ``tooltipBase``
* ``tooltiptext`` to ``tooltipText``
* ``buttontext`` to ``buttonText``
* ``brighttext`` to ``brightText``
* ``highlightedtext`` to ``highlightedText``
* ``linkvisited`` to ``linkVisited``
* ``helptext`` to ``helpText``
* ``fadedtext`` to ``fadedText``
* ``errortext`` to ``errorText``
* ``headertext`` to ``headerText``
* ``headertag`` to ``headerTag``
* ``altdialog`` to ``altDialog``
* ``spellcheckline`` to ``spellCheckLine``
* ``errorline`` to ``errorLine``
* ``replacetag`` to ``replaceTag``
* ``texthighlight`` to ``textHighlight``
Icon Themes
===========
Icon themes are *not* straightforward to add, but if you want to make the effort, this section
describes how to do it.
The existing icon themes are stored in
`novelwriter/assets/icons <https://github.com/saga-soft/novelWriter/tree/main/novelwriter/assets/icons>`_.
As with colour themes, remember to change the name of your theme by modifying the ``name`` setting
at the top of the file, otherwise you may not be able to distinguish them in **Preferences**.
For novelWriter to be able to locate the custom theme files, you must copy them to the
:ref:`docs_technical_locations_data` location in your home or user area. There should be a folder
there ``icons`` for icon themes. These folders are created the first time you start novelWriter.
The Icons File Format
---------------------
Icon themes are kept in files with the ``.icons`` file extension. The file format is a custom
format with entries on the form ``section:key = value``.
.. code-block:: cfg
:caption: The icons file for "Material Symbols - Rounded Medium" (truncated)
[Main]
name = My Syntax Theme
author = Jane Doe
credit = John Doe
url = https://example.com
license = CC BY-SA 4.0
licenseurl = https://creativecommons.org/licenses/by-sa/4.0/
# Meta
meta:name = Material Symbols - Rounded Medium
meta:author = Google Inc
meta:license = Apache 2.0
[Syntax]
background = 255, 255, 255
text = 0, 0, 0
link = 0, 0, 0
headertext = 0, 0, 0
headertag = 0, 0, 0
emphasis = 0, 0, 0
dialog = 0, 0, 0
altdialog = 0, 0, 0
note = 0, 0, 0
hidden = 0, 0, 0
shortcode = 0, 0, 0
keyword = 0, 0, 0
tag = 0, 0, 0
value = 0, 0, 0
optional = 0, 0, 0
spellcheckline = 0, 0, 0
errorline = 0, 0, 0
replacetag = 0, 0, 0
modifier = 0, 0, 0
texthighlight = 255, 255, 255, 128
# Icons
icon:alert_error = <svg ...>
icon:alert_info = <svg ...>
icon:alert_question = <svg ...>
icon:alert_warn = <svg ...>
icon:cls_archive = <svg ...>
icon:cls_character = <svg ...>
icon:cls_custom = <svg ...>
icon:cls_entity = <svg ...>
icon:cls_none = <svg ...>
icon:cls_novel = <svg ...>
icon:cls_object = <svg ...>
icon:cls_plot = <svg ...>
icon:cls_template = <svg ...>
icon:cls_timeline = <svg ...>
icon:cls_trash = <svg ...>
icon:cls_world = <svg ...>
In the Main section, you must define at least the ``name`` setting. The Syntax colour values are
RGB(A) numbers of the format ``r, g, b, a`` where each is an integer from ``0`` to ``255``. The
fourth value is the alpha channel, which can be omitted.
The icon keys are associated with icon placement locations inside novelWriter, and the template for
them is defined in the script that generates the default icon themes.
Omitted syntax colours default to black, except ``background`` which defaults to white, and
``texthighlight`` which defaults to white with half transparency.
The script can be found under
`utils/icon_themes.py <https://github.com/saga-soft/novelWriter/blob/main/utils/icon_themes.py>`__
in the source code.
.. versionadded:: 2.2
The ``shortcode`` syntax colour entry was added.
This file includes all the code needed to generate the themes that are included in novelWriter. The
icon keys are mapped to icon keys from the specific themes in JSON files in the ``icon_themes``
folder next to the script. This is the recommended way to generate these themes. Doing it manually
is not advisable.
.. versionadded:: 2.3
The ``optional`` syntax colour entry was added.
.. versionadded:: 2.4
The ``texthighlight`` syntax colour entry was added.
Icon Value Format
-----------------
.. versionadded:: 2.5
The ``dialog``, ``altdialog``, ``note`` and ``tag`` syntax colour entries were added.
``straightquotes``, ``doublequotes`` and ``singlequotes`` were removed.
As can be seen from the example, an icon is defined in the ``icon`` section with a key and an
in-line SVG XML block. The XML must fit on one line and obey the following rules:
#. It must be single colour, that is, the fill colour attribute must be able to colourise the
entire icon.
#. The fill colour attribute *must* be defined and must be set to: ``fill="#000000"``. This value
is replaced by the relevant theme colour when the icon is processed in novelWriter.
.. versionadded:: 2.7
The icon theme files were added. Previously, icons were stored as individual SVG files with a
config file mapping the file names to the internal icon keys.

View File

@@ -0,0 +1,47 @@
.. _docs_more_dictionaries:
************************
Spell Check Dictionaries
************************
.. _Enchant: https://rrthomas.github.io/enchant/
Spell checking is provided by the Enchant_ library. Depending on your operating system, it may or
may not load all installed spell check dictionaries automatically.
Linux and MacOS
===============
On Linux and MacOS, you generally only have to install hunspell, aspell or myspell dictionaries on
your system like you do for other applications. See your distro or OS documentation for how to do
this. These dictionaries should show up as available spell check languages in novelWriter.
Windows
=======
For Windows, English is included with the installation. For other languages you have to download
and add dictionaries yourself.
Install Tool
------------
A small tool to assist with this can be found under **Tools > Add Dictionaries**. It will import
spell checking dictionaries from Free Office or Libre Office extensions. The dictionaries are then
installed in the install location for the Enchant library and should thus work for any application
that uses Enchant for spell checking.
Manual Install
--------------
If you prefer to do this manually or want to use a different source than the ones mentioned above,
You need to get compatible dictionary files for your language. You need two files ending with
``.aff`` and ``.dic``. These files must then be copied to the following location:
``C:\Users\<USER>\AppData\Local\enchant\hunspell``
This assumes your user profile is stored at ``C:\Users\<USER>``. The last one or two folders may
not exist, so you may need to create them.

View File

@@ -76,7 +76,7 @@ right single quotation marks, depending on the font. There is a Wikipedia articl
.. note::
On export with the **Build Manuscript** tool, these apostrophes will be replaced
On export with the **Manuscript Build** tool, these apostrophes will be replaced
automatically with the corresponding right hand single quote symbol as is generally recommended.
Therefore it doesn't really matter if you only use them to correct syntax highlighting in some
places, and not others.

View File

@@ -4,9 +4,10 @@
Running from Source
*******************
.. _GitHub: https://github.com/vkbo/novelWriter/releases
.. _GitHub: https://github.com/saga-soft/novelWriter/releases
.. _PyPi: https://pypi.org/project/novelWriter/
.. _Sphinx Docs: https://www.sphinx-doc.org/
.. _uv: https://docs.astral.sh/uv/
This chapter describes various ways of running novelWriter directly from the source code, and how
to build the various components like the translation files and documentation.
@@ -28,6 +29,7 @@ by running:
.. _docs_technical_source_depend:
Dependencies
============
@@ -43,11 +45,20 @@ The following Python packages are needed to run all features of novelWriter:
If you want spell checking, you must install the ``PyEnchant`` package. The spell check library
must be at least 3.0 to work with Windows. On Linux, 2.0 also works fine.
If you install from PyPi, these dependencies should be installed automatically. If you install from
source, dependencies can still be installed from PyPi with:
If you install novelWriter from PyPi, these dependencies should be installed automatically.
You can run novelWriter directly from source with uv_ or another similar tool:
.. code-block:: bash
uv run novelwriter
If you prefer to install dependencies using ``pip``, you must first generate the
``requirements.txt`` file:
.. code-block:: bash
python pkgutils.py gen-req
pip install -r requirements.txt
.. note::
@@ -136,12 +147,14 @@ running:
Building the Documentation
==========================
A local copy of this documentation can be generated as HTML. This requires installing some Python
packages from PyPi:
A local copy of this documentation can be generated as HTML.
If you're using ``pip``, you must first generate the ``requirements.txt`` file:
.. code-block:: bash
pip install -r docs/requirements.txt
python pkgutils.py gen-req docs
pip install -r requirements.txt
The documentation can then be built from the root folder in the source code by running:
@@ -149,6 +162,12 @@ The documentation can then be built from the root folder in the source code by r
make -C docs html
Or you can run directly with uv_ or similar tools:
.. code-block:: bash
uv run make -C docs html
If successful, the documentation should be available in the ``docs/build/html`` folder and you can
open the ``index.html`` file in your browser.

View File

@@ -190,4 +190,4 @@ Statistics** tool. If this file is lost, the history it contains is also lost, b
no impact on the project.
Each session is recorded as a JSON object on a single line of the file. Each session record is
appended tot he file.
appended to the file.

View File

@@ -4,23 +4,12 @@
Running Tests
*************
.. _uv: https://docs.astral.sh/uv/
The novelWriter source code is well covered by tests. The test framework used for the development
is ``pytest`` with the use of an extension for Qt.
Dependencies
============
The dependencies for running the tests can be installed with:
.. code-block:: bash
pip install -r tests/requirements.txt
This will install a couple of extra packages for coverage and test management. The minimum
requirement is ``pytest`` and ``pytest-qt``.
Simple Test Run
===============
@@ -28,19 +17,35 @@ To run the tests, you simply need to execute the following from the root of the
.. code-block:: bash
pytest
uv run pytest
This uses uv_. See below for manually installing dependencies using ``pip``.
Since several of the tests involve opening up the novelWriter GUI, you may want to disable the GUI
for the duration of the test run. Moving your mouse while the tests are running may otherwise
interfere with the execution of some tests.
You can disable the renderring of the GUI by setting the flag ``QT_QPA_PLATFORM=offscreen``:
You can disable the rendering of the GUI by setting the flag ``QT_QPA_PLATFORM=offscreen``:
.. code-block:: bash
export QT_QPA_PLATFORM=offscreen pytest
Dependencies
------------
To generate the requirements file and install dependencies using ``pip``, run:
.. code-block:: bash
python pkgutils.py gen-req app test
pip install -r tests/requirements.txt
This will install a couple of extra packages for coverage and test management. The minimum
requirement is ``pytest`` and ``pytest-qt``.
Advanced Options
================

View File

@@ -56,6 +56,20 @@ activated by clicking the left-most icon button in the editor header.
.. versionadded:: 2.2
.. _docs_usage_formatting_shortcodes_break:
Forced Line Break
-----------------
Inserting ``[br]`` in the text will ensure a line break is always inserted in that place, even if
you turn off **Preserve Hard Line Breaks** in your **Manuscript Build** settings.
You can add a manual line break after it too, for a better visual representation in the editor, but
keep in mind that this line break is removed before the text is processed, so the text on either
side of the ``[br]`` shortcode will be considered as belonging to the same line. This can affect
how alignment is treated. See :ref:`docs_usage_align_indent_forced` for more details.
.. _docs_usage_formatting_breaks:
Vertical Space and Page Breaks

View File

@@ -53,18 +53,33 @@ the entire paragraph. For the following text, all lines will be centred:
.. code-block:: md
>> I am the very model of a modern Major-General
>> I am the very model of a modern Major-General <<
I've information vegetable, animal, and mineral
I know the kings of England, and I quote the fights historical
From Marathon to Waterloo, in order categorical <<
From Marathon to Waterloo, in order categorical
If you have multiple conflicting alignments on a paragraph, only one is applied. The order of
precedence is:
#. Left alignment
#. Right alignment
#. Centred text
#. Justified text
.. note::
It is strongly recommended that you keep the **Preserve Hard Line Breaks** setting enabled in
your manuscript build settings. This setting assumes all single line breaks in your text are
intended. Turning this off makes adding line breaks more complicated, but it is still possible.
See :ref:`docs_usage_align_indent_forced`.
Alignment with First Line Indent
================================
If you have first line indent enabled in your manuscript build settings, you probably want to
disable it for text in verses. Adding any alignment tags will cause the first line indent to be
switched off for that paragraph.
disable it for text in verses. Adding any alignment tags on a paragraph will cause the first
line indent to be switched off for that paragraph.
:bdg-info:`Example`
@@ -76,3 +91,35 @@ The following text will always be aligned against the left margin:
I've information vegetable, animal, and mineral
I know the kings of England, and I quote the fights historical
From Marathon to Waterloo, in order categorical
.. _docs_usage_align_indent_forced:
Alignment with Forced Line Breaks
=================================
If you turn off **Preserve Hard Line Breaks** in your manuscript build settings, you can still
force line breaks in paragraphs using the ``[br]`` shortcode. For clarity in the text, you can add
a line break after it as well. It doesn't result in two line breaks.
Keep in mind that when the text is processed, the lines on either side of a ``[br]`` shortcode are
combined, and any trailing hard line break is *ignored*. This means that when such a paragraph is
processed, these line breaks count as the same line. This affects how alignment tags are handled.
For instance, this text becomes centred instead of left aligned.
.. code-block:: md
>> I am the very model of a modern Major-General[br]
I've information vegetable, animal, and mineral[br]
I know the kings of England, and I quote the fights historical[br]
From Marathon to Waterloo, in order categorical <<
Since this is understood as one line, this is the only way you can actually centre this paragraph.
.. caution::
Due to this difference in how text with ``[br]`` tags are processed, it is generally better to
stick with the **Preserve Hard Line Breaks** setting enabled. It ensures a better correspondence
between what you see in the editor and what output you get.
See also :ref:`docs_usage_formatting_shortcodes_break`.

View File

@@ -64,19 +64,31 @@ A minimal set of Markdown text emphasis styles are supported for text paragraphs
``**text**``
The text is rendered as strongly emphasised text (bold).
``*text*`` (optional)
The text is also rendered as strongly emphasised text (bold).
``~~text~~``
Strike through text.
``==text==``
The text is highlighted.
In Markdown guides it is often recommended to differentiate between strong emphasis and emphasis
by using ``**`` for strong and ``_`` for emphasis, although Markdown generally also supports ``__``
for strong and ``*`` for emphasis. However, since the differentiation makes the highlighting and
conversion significantly simpler and faster, in novelWriter this is a rule, not just a
recommendation.
In addition, the following rules apply:
As of version 2026.1, it is possible to enable ``*text*`` for bold text. This has become a very
common notation in many user interfaces, and is now also supported by novelWriter. It can be
enabled in **Preferences** in the **Text Editing** section. Enabling this will not disable
``**text**`` as bold, but will allow both formats. It will, however, change the format button and
:kbd:`Ctrl+B` to use a single asterisk instead of two.
1. The emphasis and strike through formatting tags do not allow spaces between the words and the
tag itself. That is, ``**text**`` is valid, ``**text **`` is not.
In general, the following rules apply:
1. The emphasis, strike through and highlight formatting tags do not allow spaces between the words
and the tag itself. That is, ``**text**`` is valid, ``**text **`` is not.
2. More generally, the delimiters must be on the outer edge of words. That is, ``some **text in
bold** here`` is valid, ``some** text in bold** here`` is not.
3. If using both ``**`` and ``_`` to wrap the same text, the underscore must be the **inner**

View File

@@ -45,7 +45,7 @@ manuscript. The chapter and scenes headings are also displayed in the
``## Chapter Title``
This is a heading level two. This heading indicates the start of a new chapter. Chapter numbers
can be inserted automatically when building the manuscript, so you don't have to do this in the
title. See :ref:`docs_ui_manuscript_head_numbers` for more details.
title. See :ref:`docs_ui_manuscript_formatting_head_numbers` for more details.
``### Scene Title``
This is a heading level three. This heading indicates the start of a new scene. Scene numbers or
@@ -78,11 +78,11 @@ want to keep the use cases in mind while writing.
``###! Scene Title``
This is an alternative scene heading that can be formatted differently in the **Manuscript
Build** tool. It is intended for separating "soft" and "hard" scene breaks. Aside from this, it
behaves identically to a regular scene heading. See :ref:`docs_ui_manuscript_head_hard_soft`
for more details.
behaves identically to a regular scene heading.
See :ref:`docs_ui_manuscript_formatting_head_hard_soft` for more details.
The formatting of these headings can be customised quite extensively in the
:ref:`Manuscript Tool <docs_ui_manuscript>`, which is covered in a separate part of the
:ref:`Manuscript Tool <docs_ui_manuscript_formatting>`, which is covered in a separate part of the
documentation.
.. note::
@@ -94,3 +94,8 @@ Page breaks can be automatically added before titles, partition, chapter and sce
the **Manuscript Build** tool when you build your project to a format that supports page breaks.
If you want page breaks in other places, you have to specify them manually.
See :ref:`docs_usage_formatting_breaks` for more details.
.. note::
When you build a manuscript from your project, the level of the headings in your document will
change. See :ref:`docs_ui_manuscript_formatting_head_promote` for more details.

View File

@@ -4,7 +4,7 @@
Tips & Tricks
*************
.. _Discussions Page: https://github.com/vkbo/novelWriter/discussions
.. _Discussions Page: https://github.com/saga-soft/novelWriter/discussions
This is a list of hopefully helpful little tips on how to get the most out of novelWriter.
@@ -13,8 +13,8 @@ This is a list of hopefully helpful little tips on how to get the most out of no
contribute, or start a discussion on the project's `Discussions Page`_.
Managing the Project
====================
Your Project
============
.. dropdown:: How do I create a project from a template?
:animate: fade-in-slide-down
@@ -42,6 +42,57 @@ Managing the Project
Settings** from the respective configuration tabs. You can then import these labels in another
project.
.. dropdown:: How do I add introductory text to chapters?
:animate: fade-in-slide-down
Sometimes chapters have a short preface, like a brief piece of text or a quote to set the stage
before the first scene begins.
If you add separate files for chapters and scenes, the chapter file is the perfect place to add
such text. Separating chapter and scene files also allows you to make scene files child
documents of the chapter.
.. dropdown:: How do I distinguishing between soft and hard scene breaks?
:animate: fade-in-slide-down
Depending on your writing style, you may need to separate between soft and hard scene breaks
within chapters. Like for instance if you switch point-of-view character often.
In such cases you may want to use different scene headings for hard and soft scene breaks. The
**Manuscript Build** tool will let you define a different format for scenes using the ``###``
and ``###!`` heading codes when you generate your manuscript. You can for instance add the
common "``* * *``" for hard breaks and select to hide soft scene breaks, which will just insert
an empty paragraph in their place. See :ref:`docs_ui_manuscript_settings` for more details.
.. versionadded:: 2.4
.. dropdown:: How can I set the language for my manuscript?
:animate: fade-in-slide-down
The language set for manuscript documents like Open Document and Word Document is taken from
your project language setting in **Project Settings**. Only some languages are available here,
but you can override the language information by setting the "Override Document Language" value
in your Manuscript Build settings to a valid language code. The code uses the
`IETF BCP 47 language tag <https://en.wikipedia.org/wiki/IETF_language_tag>`__ format.
Examples: ``en`` for English, ``de`` for German, etc.
If you want to help add new languages to novelWriter, see: :ref:`docs_contributing`.
.. versionadded:: 2.8
The Application
===============
.. dropdown:: How can I increase the line height?
:animate: fade-in-slide-down
Unfortunately, in this case, novelWriter uses the plain text editor component of the underlying
framework (called Qt) which doesn't support changing the line height. However, you can choose an
editor font with larger leading (the spacing between the lines). A good font for this case is
`Noto <https://fonts.google.com/noto>`__, which comes in both Sans-Serif and Serif.
Layout Tricks
=============
@@ -79,34 +130,6 @@ Layout Tricks
See :ref:`docs_usage_align_indent` for more details.
Organising Your Text
====================
.. dropdown:: How do I add introductory text to chapters?
:animate: fade-in-slide-down
Sometimes chapters have a short preface, like a brief piece of text or a quote to set the stage
before the first scene begins.
If you add separate files for chapters and scenes, the chapter file is the perfect place to add
such text. Separating chapter and scene files also allows you to make scene files child
documents of the chapter.
.. dropdown:: How do I distinguishing between soft and hard scene breaks?
:animate: fade-in-slide-down
Depending on your writing style, you may need to separate between soft and hard scene breaks
within chapters. Like for instance if you switch point-of-view character often.
In such cases you may want to use different scene headings for hard and soft scene breaks. The
**Build Manuscript** tool will let you define a different format for scenes using the ``###``
and ``###!`` heading codes when you generate your manuscript. You can for instance add the
common "``* * *``" for hard breaks and select to hide soft scene breaks, which will just insert
an empty paragraph in their place. See :ref:`docs_ui_manuscript_settings` for more details.
.. versionadded:: 2.4
Other Tools
===========

View File

@@ -5,9 +5,11 @@ Introduction
************
.. _Markdown: https://en.wikipedia.org/wiki/Markdown
.. _Contributing Guide: https://github.com/saga-soft/novelWriter/blob/main/CONTRIBUTING.md
.. _Crowdin: https://crowdin.com/project/novelwriter
In a nutshell, novelWriter is a plain text editor that lets you organise one or more novels and
associated notes as many smaller documents. You can at any time generate standard document formats
In a nutshell, novelWriter is a plain text editor that lets you organise one or more novels, and
associated notes, as many smaller documents. You can at any time generate standard document formats
from these plain text documents. Whether it is an outline of your story, a draft, a complete
manuscript, or even a collection of your character notes or other notes.
@@ -51,7 +53,26 @@ comments, and an auto-complete menu can help you here too. More about this later
writing. It is also *not* a full-featured Markdown editor.
In addition, novelWriter is not intended as a tool for organising research for writing, and
therefore lacks formatting features you may need for this purpose. The notes feature in is
therefore lacks formatting features you may need for this purpose. The notes feature is
mainly intended for character profiles and plot outlines. It is recommended to use a proper
note-taking tool for research. This is anyway more practical as you may use the same research
for multiple projects.
.. _docs_contributing:
Contributing
============
This project relies on contributions to add new features. In particular, adding translations into
other languages, or updating translations for existing languages, is particularly useful.
For code contributions, please read the official `Contributing Guide`_.
For translations, please use the project page on Crowdin_. For each language, there are two
translation sets. One for the application itself, labelled "Main GUI". This is a fairly large
dataset to translate. A smaller set called "Project Exports" is also available. The latter is what
makes a language available in **Project Settings** in the application. It is a fairly small set to
translate, and you can choose to translate only this set if you wish. If the language you wish to
contribute to is not available in the list, you can message the maintainer on the Crowdin page to
add new languages to the project.

View File

@@ -15,7 +15,7 @@ side of the main window.
Each line in the project tree shows the name of each item, its word count (or alternatively
character count), an icon for :ref:`docs_usage_project_active`, and a custom icon for
:ref:`docs_usage_project_status` of each item. These latter two are covered alter in this section.
:ref:`docs_usage_project_status` of each item. These latter two are covered later in this section.
You can add, view and edit documents in the project tree by right-clicking on them. Some features
are also located in the buttons along the top, next to the **Project Content** label.
@@ -47,8 +47,8 @@ Root Folder Types
**Novel** (Story)
This is where you put the documents that are part of your story. You can create multiple Novel
folders if you wish, but various parts of the application assumes each Novel folder belong to
one novel.
folders if you wish, but various parts of the application assumes each Novel folder belongs to
only one novel.
The Novel folder is somewhat special in that it can contain documents for chapters, scenes and
story partitions. How this is indicated is covered in the section :ref:`docs_usage_headings`.
@@ -166,6 +166,9 @@ a character note template, you can add a **Templates** root folder to your proje
added to this root folder will show up in the **Add Item** menu in the project tree toolbar. When
selected, a new document is created with its content copied from the chosen template.
If the first line of the template file is a title line, the title text will be replaced with the
text of the document label when it is first created.
.. versionadded:: 2.3

View File

@@ -23,7 +23,7 @@ it selected, or drag and drop it onto the editor panel. This will open the docum
editor.
The editor has a maximise button, which toggles the **Focus Mode**, and a close button in the
top--right corner. On the top--left side you will find a tools button that opens a toolbar with a
top-right corner. On the top-left side you will find a tools button that opens a toolbar with a
few buttons for applying text formatting, a drop down menu for navigating between headings, and a
search button to open the search dialog.
@@ -55,7 +55,7 @@ edited from the **Project Word List** tool available from the **Tools** menu.
.. note::
Generally, spell checking dictionaries are collected from your operating system, but on Windows
they are not. See :ref:`docs_more_custom_dict` for how to add spell checking dictionaries on
they are not. See :ref:`docs_more_dictionaries` for how to add spell checking dictionaries on
Windows.
@@ -102,11 +102,12 @@ Pressing :kbd:`Return` while in the search box will search for the next occurren
highlighted text and move to the next result.
There are a number of settings for the search tool available as toggle switches above the search
box. They allow you to search for, in order: matched case only, whole word results only, search
using regular expressions, loop search when reaching the end of the document, and move to the next
document when reaching the end. There is also a switch that will try to match the case of the word
when the replacement is made. That is, it will try to keep the word upper, lower, or capitalised to
match the word being replaced.
box. They allow you to enable, in order: auto-replace of symbols as you type in the search and
replace boxes (see :ref:`docs_ui_edit_view_auto`), matched case only, whole word results only,
search using regular expressions, loop search when reaching the end of the document, and move to
the next document when reaching the end. There is also a switch that will try to match the case of
the word when the replacement is made. That is, it will try to keep the word upper, lower, or
capitalised to match the word being replaced.
.. _docs_ui_edit_view_auto:
@@ -153,14 +154,14 @@ middle-clicking on the document will also open it in the viewer.
The document viewed does not have to be the same document as the one currently being edited.
However, If you *are* viewing the same document, pressing :kbd:`Ctrl+R` from the editor will update
the document with your latest changes. You can also press the reload button in the top--right
the document with your latest changes. You can also press the reload button in the top-right
corner of the viewer panel, next to the close button, to achieve the same thing.
In the viewer, references become clickable links. Clicking them will replace the content of the
viewer with the content of the document the reference points to.
The document viewer keeps a history of viewed documents, which you can navigate with the arrow
buttons in the top--left corner of the viewer. If your mouse has backward and forward navigation
buttons in the top-left corner of the viewer. If your mouse has backward and forward navigation
buttons, these can be used as well. They work just like the backward and forward features in a
browser. The left-most button is a dropdown menu for quickly navigation between headings in the
document. The edit button on the right will open the viewed document in the editor.

View File

@@ -0,0 +1,213 @@
.. _docs_ui_manuscript_formatting:
*************************
Formatting the Manuscript
*************************
The **Manuscript Build Settings** tool has a **Headings** page and a separate **Formatting** page.
This chapter covers both.
.. _docs_ui_manuscript_formatting_head:
Headings
========
.. figure:: images/fig_build_settings_headings.png
:width: 80%
The **Headings** page of the **Manuscript Build Settings** dialog.
The **Headings** page of the **Manuscript Build Settings** dialog allows you to set how the
headings in your Novel Documents are formatted. By default, the title is just copied as-is,
indicated by the ``{Title}`` format. You can change this to, for instance, add chapter numbers and
scene numbers, or insert character names, as shown in the figure above.
Clicking the edit button next to a format will copy the formatting string into the edit box where
it can be modified, and where a syntax highlighter will help indicate which parts are automatically
generated by the build tool. The :guilabel:`Insert` button is a dropdown list of these formats, and
selecting one will insert it at the position of the cursor.
Any text you add that isn't highlighted in colours will remain in your formatted titles.
``{Title}`` will always be replaced by the text in the heading from your documents.
.. csv-table:: Heading Formats
:header: "Code", "Description"
:class: "tight-table"
"``{BR}``", "Insert a line break."
"``{Title}``", "Insert the original title text."
"``{Chapter}``", "Insert a chapter number."
"``{Chapter:Word}``", "Insert a chapter number as a word."
"``{Chapter:URoman}``", "Insert a chapter number as an upper case Roman numeral."
"``{Chapter:LRoman}``", "Insert a chapter number as a lower case Roman numeral."
"``{Scene}``", "Insert a scene number within the current chapter."
"``{Scene:Abs}``", "Insert a scene number unique to the whole manuscript."
"``{Char:POV}``", "Insert the point-of-view character's :ref:`display name <docs_usage_tags_refs_tags>`."
"``{Char:Focus}``", "Insert the focus character's :ref:`display name <docs_usage_tags_refs_tags>`."
You can preview the result of these format strings by clicking :guilabel:`Apply`, and then clicking
:guilabel:`Preview` in the **Manuscript Build** tool main window.
.. note::
The language used for generating chapter numbers is defined by the project language set in
**Project Settings**. This feature relies on translation files existing for each language.
If you want to help add new languages to novelWriter, see: :ref:`docs_contributing`.
.. _docs_ui_manuscript_formatting_head_numbers:
Automatic Numbering
-------------------
The headings formatter allows you to automatically insert chapter and scene numbers into your
headings. The automatic chapter number counter will skip all chapter headings marked as unnumbered
using the heading format described in :ref:`docs_usage_headings_levels`.
Scene numbers are mostly intended for use in a draft manuscript. You can either insert absolute
scene numbers that count every scene in the novel, or you can insert per-chapter scene numbers
that reset to 1 for each new chapter.
:bdg-info:`Example`
This will create a chapter title on the format "Chapter 1: Title Text":
.. code-block:: md
Chapter {Chapter}: {Title}
This will create a scene title on the format "Scene 1.1: Title Text":
.. code-block:: md
Scene {Chapter}.{Scene}: {Title}
Scene Separators
----------------
If you don't want any titles for your scenes (or for your sections if you have them), you can leave
the formatting boxes empty. If so, an empty paragraph will be inserted between the scenes or
sections instead, resulting in a gap in the text. You can also enable the :guilabel:`Hide` setting,
which will ignore them completely. That is, there won't even be an extra gap inserted.
Alternatively, if you want a separator text between them, like the common ``* * *``, you can enter
the desired separator text as the format. If the format is any piece of static text, it will always
be treated as a separator. A static separator is only inserted between scenes, as opposed to a
formatted heading which is also inserted before the first scene of a chapter.
A special case of the static separator is the horizontal line, which is inserted by using the
``----`` format. There is also an option for it in the :guilabel:`Insert` dropdown list. This will
replace all the text in the edit box with four hyphens. Only if the format is exactly four hyphens
will it be treated as a horizontal line.
In the output formats, the horizontal line is rendered as a line at 50% the text width or the page
width. The exception is for Markdown output, where it is printed as-is.
.. _docs_ui_manuscript_formatting_head_hard_soft:
Hard and Soft Scenes
--------------------
If you wish to distinguish between so-called soft and hard scene breaks, you can use the
alternative scene heading format in your text. You can then give these headings a different
formatting in the **Headings** settings.
See :ref:`docs_usage_headings_levels` for more information on how to format alternative scene
headings in your text.
.. _docs_ui_manuscript_formatting_head_promote:
Heading Level Promotion
-----------------------
When you build the manuscript, novel headings are promoted one level relative to the level
specified in the source documents as typed in the editor. The promotion follows these rules:
#. The main novel title and partition titles are converted to regular text paragraphs with a larger
font size.
#. Chapter titles are promoted to the top-most heading of the document, that is level 1.
#. Scenes and Section titles, if used, are promoted to level 2 and 3, respectively.
#. Headings in note documents are left as-is.
.. _docs_ui_manuscript_formatting_head_styling:
Title Styling
-------------
The **Manuscript Build Settings** dialog also provides layout options for controlling how headings
are visually presented in the output. These options allow you to add page breaks and centre
headings at specific heading levels.
The layout options are presented in a grid showing the following heading styles:
- **Title** – The novel's main title
- **Partition** – Partition headings (for dividing the novel into major sections)
- **Chapter** – Chapter headings
- **Scene** – Scene headings
For each of these, you can toggle:
- **Centre** – Centre the heading text on the page
- **Page Break** – Insert a page break before the heading
These settings apply to the formatted heading output and affect all document formats that support
page breaks and text alignment.
.. _docs_ui_manuscript_formatting_options:
Formatting Options
==================
The **Formatting** section in the **Manuscript Build Settings** dialog is split into groups, each
accessible from its own entry in the sidebar. The sections below summarise what each group
controls.
**Text Content**
Controls which parts of the text in each selected document are included in the output. These
options do not select documents, that is done in the **Selection** page. They only control
which content elements within each document are rendered. The available switches are:
"Include body text", "Include synopsis", "Include comments", "Include story structure",
"Include manuscript notes", and "Include keywords". A text field for specifying keywords to
ignore is also provided, as well as an option to "Add titles for note root folders".
**Text Format**
Controls the base appearance of rendered text. Set the "Text font" and "Line height", and
toggle options for "Justify text margins", "Justify text on manual line breaks",
"Replace Unicode characters", "Replace tabs with spaces", "Preserve hard line breaks", and
"Apply dialogue highlighting".
**Heading Format**
Controls visual formatting applied to all headings in the output. Toggle "Add colours to
headings", "Bold headings", and "Uppercase headings".
**First Line Indent**
Controls paragraph indentation. Toggle "Enable indent", set the "Indent width", and choose
whether to "Indent first paragraph" (the paragraph immediately following a heading).
**Size & Margins**
Controls font sizes and spacing for each element in the output. Entries cover "Title and
Partition", "Heading 1 and Chapter", "Heading 2 and Scene", "Heading 3 and Section",
"Heading 4", "Text paragraph", and "Scene separator". Each entry has a size field and top and
bottom margin fields. The option "Add empty lines instead of margins" replaces spacing with
blank lines, which is useful for formats that do not support paragraph margins.
**Page Layout**
Controls paper settings for formats that support page layout, such as Open Document and PDF.
Set the "Unit" (centimetres, millimetres or inches), "Page size", and "Page margins"
(top, bottom, left, and right).
**Document Style**
Controls document-level settings for office type documents. Set the "Page header" format, the
"Page counter offset", and optionally override the document language with "Override document
language".
**HTML Options**
Controls settings specific to HTML output. Toggle "Add CSS styles" to include inline
stylesheet rules, and "Preserve tab characters" to keep tabs rather than converting them to
spaces.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 94 KiB

After

Width:  |  Height:  |  Size: 107 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 121 KiB

After

Width:  |  Height:  |  Size: 147 KiB

View File

@@ -18,7 +18,7 @@ time you need them. For reference, a list of all shortcuts can be found in the
:ref:`docs_features_shortcuts` section.
On the left side of the main window you will find a sidebar. This bar has buttons for the standard
views you can switch between, a quick link to the **Build Manuscript** tool, and a set of
views you can switch between, a quick link to the **Manuscript Build** tool, and a set of
project-related tools and quick access to settings at the bottom.
@@ -186,17 +186,11 @@ See :ref:`docs_features_shortcuts` for more details.
Colour Themes
=============
By default, novelWriter uses a light colour theme. You can also choose between a standard dark
theme that have neutral colours, or a series of other included themes, from **Preferences**.
By default, novelWriter should pick a dark or light theme based on the colour mode of your
operating system. You can select which colour mode to use from the application sidebar.
The default light and dark theme can be changed from **Preferences**. There are a number of themes
to choose from. There are also some high contrast themes available.
If you wish, you *can* create your own colour themes, and even have them added to the application.
See :ref:`docs_more_custom_theme` for more details.
Switching the GUI colour theme does not affect the colours of the editor and viewer. They have
separate themes selectable from the "Document colour theme" setting in **Preferences**. They are
separated because there are a lot more options to choose from for the editor and viewer.
.. note::
If you switch between light and dark mode on the GUI, you should also switch editor theme to
match, otherwise icons may be hard to see in the editor and viewer.

View File

@@ -26,12 +26,12 @@ The Manuscript Build Tool
=========================
.. figure:: images/fig_manuscript_build.png
:width: 80%
:width: 90%
The **Manuscript Build** tool main window.
The main window of the **Manuscript Build** tool contains a list of all the builds you have
defined, a selection of settings, and a few buttons to generate preview, open the print dialog, or
defined, a selection of settings, and a few buttons to generate a preview, open the print dialog, or
run the build to create a manuscript document.
@@ -39,7 +39,7 @@ Outline and Word Counts
-----------------------
.. figure:: images/fig_manuscript_build_outline.png
:width: 80%
:width: 90%
The **Manuscript Build** tool main window with the **Outline** visible.
@@ -64,9 +64,11 @@ by double-clicking or by selecting it and pressing the edit button in the toolba
.. tip::
You can keep the **Manuscript Build Settings** dialog open while testing the different options,
and just hit the :guilabel:`Apply` button. You can test the result of your settings change by
pressing the :guilabel:`Preview` button in the main **Manuscript Build** window. When you're
happy with the result, you can close the settings.
and just hit the :guilabel:`Apply` button to update the preview in the main **Manuscript Build**
window. When you're happy with the result, you can close the settings.
For detailed information on how to format headings, including how to add chapter numbers, scene
numbers, and other dynamic content, see :ref:`docs_ui_manuscript_formatting`.
.. _docs_ui_manuscript_selection:
@@ -79,126 +81,100 @@ Document Selection
The **Selections** page of the **Manuscript Build Settings** dialog.
The **Selections** page of the **Manuscript Build Settings** dialog allows you to fine tune which
documents are included in the build. The included documents are indicated by an icon in the last
column. On the right you have some filter options for selecting content of a specific type, and a
set of switches for which root folders to include.
The **Selections** page allows you to fine tune which documents are included in the build. The
included documents are indicated by an icon in the last column. The interface is split into two
parts: a project tree on the left showing all documents, and filter options on the right.
You can override the result of these filters by marking one or more documents and selecting to
explicitly include or exclude them by using the buttons below the tree view. The last button can be
used to reset the override and return control to the filter settings.
In the figure, the orange icon and the blue icon indicates which documents are included, and the
In the figure, the orange icon and the blue icon indicate which documents are included, and the
red icon indicates that a document is explicitly excluded.
By default, inactive documents are excluded, but you can override this in the filter settings.
See :ref:`docs_usage_project_active` for more details.
.. _docs_ui_manuscript_head:
Root Folder Selection
^^^^^^^^^^^^^^^^^^^^^
Formatting Headings
-------------------
At the bottom of the filter options on the right, you will find a set of switches for each root
folder in your project. These allow you to quickly include or exclude entire root folders from the
build. For example, you can use this to exclude all your notes if you only want the novel content,
or exclude all story content if you want to build an outline of your notes instead.
.. figure:: images/fig_build_settings_headings.png
:width: 80%
The **Headings** page of the **Manuscript Build Settings** dialog.
The **Headings** page of the **Manuscript Build Settings** dialog allows you to set how the
headings in your Novel Documents are formatted. By default, the title is just copied as-is,
indicated by the ``{Title}`` format. You can change this to for instance add chapter numbers and
scene numbers, or insert character names, like shown in the figure above.
Clicking the edit button next to a format will copy the formatting string into the edit box where
it can be modified, and where a syntax highlighter will help indicate which parts are automatically
generated by the build tool. The :guilabel:`Insert` button is a dropdown list of these formats, and
selecting one will insert it at the position of the cursor.
Any text you add that isn't highlighted in colours will remain in your formatted titles.
``{Title}`` will always be replaced by the text in the heading from your documents.
.. csv-table:: Heading Formats
:header: "Code", "Description"
:class: "tight-table"
"``{BR}``", "Insert a line break."
"``{Title}``", "Insert the original title text."
"``{Chapter}``", "Insert a chapter number."
"``{Chapter:Word}``", "Insert a chapter number as a word."
"``{Chapter:URoman}``", "Insert a chapter number as an upper case Roman numeral."
"``{Chapter:LRoman}``", "Insert a chapter number as an lower case Roman numeral."
"``{Scene}``", "Insert a scene number within the current chapter."
"``{Scene:Abs}``", "Insert a scene number unique to the whole manuscript."
"``{Char:POV}``", "Insert the point-of-view character's :ref:`display name <docs_usage_tags_refs_tags>`."
"``{Char:Focus}``", "Insert the focus character's :ref:`display name <docs_usage_tags_refs_tags>`."
You can preview the result of these format strings by clicking :guilabel:`Apply`, and then clicking
:guilabel:`Preview` in the **Manuscript Build** tool main window.
When a root folder switch is off, all documents within that folder are excluded regardless of the
other filter settings.
.. _docs_ui_manuscript_head_numbers:
.. _docs_ui_manuscript_content:
Automatic Numbering
^^^^^^^^^^^^^^^^^^^
Content Filtering
-----------------
The headings formatter allows you to automatically insert chapter and scene numbers into your
headings. The automatic chapter number counter will skip all chapter headings marked as unnumbered
using the heading format described in :ref:`docs_usage_headings_levels`.
The options in **Document Selection** and **Root Folder Selection** decide which whole documents
are part of the build.
Scene numbers are mostly intended for use in a draft manuscript. You can either insert absolute
scene numbers that counts every scene in the novel, or you can insert per-chapter scene numbers
that reset to 1 for each new chapter.
The content filtering options in the **Formatting** page are different: they only control which
parts of the selected documents are included in the output.
:bdg-info:`Example`
This will create a chapter title on the format "Chapter 1: Title Text":
.. code-block:: md
Chapter {Chapter}: {Title}
This will create a scene title on the format "Scene 1.1: Title Text":
.. code-block:: md
Scene {Chapter}.{Scene}: {Title}
For further content filtering options, see :ref:`docs_ui_manuscript_formatting_options`.
Scene Separators
^^^^^^^^^^^^^^^^
.. _docs_ui_manuscript_build_manage:
If you don't want any titles for your scenes (or for your sections if you have them), you can leave
the formatting boxes empty. If so, an empty paragraph will be inserted between the scenes or
sections instead, resulting in a gap in the text. You can also enable the :guilabel:`Hide` setting,
which will ignore them completely. That is, there won't even be an extra gap inserted.
Build Management
----------------
Alternatively, if you want a separator text between them, like the common ``* * *``, you can enter
the desired separator text as the format. If the format is any piece of static text, it will always
be treated as a separator. A static separator is only inserted between scenes, as opposed to a
formatted heading which is also inserted before the first scene of a chapter.
The main **Manuscript Build** tool window provides several controls for managing your build
definitions:
**Create a New Build**
Press the :guilabel:`Add` button (or plus icon) in the toolbar to create a new build definition.
A new build will be created with default settings that you can then customise.
**Edit a Build**
Double-click on a build in the list, or select it and press the :guilabel:`Edit` button to open
the **Manuscript Build Settings** dialog.
**Duplicate a Build**
Select a build and press the :guilabel:`Duplicate` button (or copy icon) to create a copy of it.
This is useful for creating variations of a build without starting from scratch. The duplicated
build will have "2" appended to its name.
**Delete a Build**
Select a build and press the :guilabel:`Delete` button (or minus icon) to remove it. This action
cannot be undone, so make sure you have saved any settings you want to keep.
**Reorder Builds**
You can drag and drop builds in the list to change their order. The order is saved automatically
when you close the tool.
.. _docs_ui_manuscript_head_hard_soft:
.. _docs_ui_manuscript_stats:
Hard and Soft Scenes
^^^^^^^^^^^^^^^^^^^^
If you wish to distinguish between so-called soft and hard scene breaks, you can use the
alternative scene heading format in your text. You can then give these headings a different
formatting in the **Headings** settings.
See :ref:`docs_usage_headings_levels` for more info on how to format alternative scene headings in
your text.
Output Settings
Statistics View
---------------
The **Formatting** sections of the **Manuscript Build Settings** dialog control a number of other
settings for the output. This includes formatting, but also what content is included. You can for
instance select to include comments, synopsis. tags and reference, and even exclude the body text
itself.
Below the preview panel, there is a collapsible statistics widget showing word and character counts
for the current build. Press the expand button (arrow icon) to toggle between a minimal and detailed
view.
The **Minimal View** shows:
- Total word count
- Total character count
The **Detailed View** shows:
- Total words, words in titles, words in text
- Total characters, characters in titles, characters in text
- Total word characters (letters and numbers only), broken down by section
These statistics are calculated from the text you have included in the document after all
formatting has been applied, making them more accurate than the counts available in the project
tree. For a detailed explanation of how text is counted, see :ref:`docs_more_counting`.
.. _docs_ui_manuscript_build:
@@ -209,9 +185,9 @@ Building Manuscript Documents
.. figure:: images/fig_build_build.png
:width: 80%
The **Manuscript Build** dialog used for writing the actual manuscript documents.
The **Build Manuscript** dialog used for writing the actual manuscript documents.
When you press the :guilabel:`Build` button on the **Build Manuscript** tool main window, a special
When you press the :guilabel:`Build` button on the **Manuscript Build** tool main window, a special
file dialog opens up. This is where you pick your desired output format and where to write the
file.
@@ -247,6 +223,10 @@ novelWriter HTML
is suitable for further processing by document conversion tools like Pandoc_, for importing in
word processors, or for printing from browser.
Electronic Publication E-book (EPub)
The EPub format writes a single ``.epub`` file with minimal style formatting. You can include
your notes in this format, but each notes root folder will be packaged as a chapter.
Standard/Extended Markdown
The Markdown format comes in both Standard and Extended flavour. The *only* difference in terms
of novelWriter functionality is the support for strike through text, which is not supported by
@@ -274,7 +254,7 @@ order they appear in the project tree. Each document is then split up into a lis
entry per paragraph it contains.
These files are mainly intended for scripted post-processing for those who want that option. A JSON
file can be imported directly into a Python dict object or a PHP array, to mentions a few options.
file can be imported directly into a Python dict object or a PHP array, to name a few options.
.. _docs_ui_manuscript_print:

View File

@@ -114,23 +114,6 @@ You can now test the translation in novelWriter. The Preferences dialog should l
language, so go ahead and select it.
### Missing QtBase Translations
The default Qt dialogs also have translations, for instance for standard buttons like "Yes", "No",
"Ok", "Cancel", etc. Generally, these translation files are installed with the Qt libraries on your
system, and novelWriter will collect those translations from there. However, these translations are
missing for many languages.
As a starting point, there is no need to translate any entries in the `.ts` files that are under
elements starting with the letter "Q", like "QPlatformTheme", "QWizard", etc. If these turn up in
English in novelWriter after activating a translation, it means they are probably missing in the Qt
library, and you may also need to translate these.
These additional translation entries are generated from a file named `i18n/qtbase.py`, which is not
a file that novelWriter uses. It is there only to generate these additional entries for the `.ts`
files.
## Project Localisation
Projects can have a different language setting than the GUI itself. The files with format

File diff suppressed because it is too large Load Diff

5570
i18n/nw_ca_ES.ts Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,49 +0,0 @@
"""
Qt Base Translation File
========================
This file causes Qt Linguist to generate translation entries for the Qt
elements that need translation in novelWriter for those languages who do
not yet have a qtbase_xx.qm file shipped with Qt.
If a qtbase_xx.qm file already exists, do not add a translation for the
entries generated from this file.
"""
from PyQt6.QtCore import QT_TRANSLATE_NOOP
# QDialogButtonBox
# ================
QT_TRANSLATE_NOOP("QDialogButtonBox", "OK")
# QGnomeTheme
# ===========
QT_TRANSLATE_NOOP("QGnomeTheme", "&OK")
QT_TRANSLATE_NOOP("QGnomeTheme", "&Save")
QT_TRANSLATE_NOOP("QGnomeTheme", "&Cancel")
QT_TRANSLATE_NOOP("QGnomeTheme", "&Close")
QT_TRANSLATE_NOOP("QGnomeTheme", "Close without Saving")
# QPlatformTheme
# ==============
QT_TRANSLATE_NOOP("QPlatformTheme", "OK")
QT_TRANSLATE_NOOP("QPlatformTheme", "Save")
QT_TRANSLATE_NOOP("QPlatformTheme", "Save All")
QT_TRANSLATE_NOOP("QPlatformTheme", "Open")
QT_TRANSLATE_NOOP("QPlatformTheme", "&Yes")
QT_TRANSLATE_NOOP("QPlatformTheme", "Yes to &All")
QT_TRANSLATE_NOOP("QPlatformTheme", "&No")
QT_TRANSLATE_NOOP("QPlatformTheme", "N&o to All")
QT_TRANSLATE_NOOP("QPlatformTheme", "Abort")
QT_TRANSLATE_NOOP("QPlatformTheme", "Retry")
QT_TRANSLATE_NOOP("QPlatformTheme", "Ignore")
QT_TRANSLATE_NOOP("QPlatformTheme", "Close")
QT_TRANSLATE_NOOP("QPlatformTheme", "Cancel")
QT_TRANSLATE_NOOP("QPlatformTheme", "Discard")
QT_TRANSLATE_NOOP("QPlatformTheme", "Help")
QT_TRANSLATE_NOOP("QPlatformTheme", "Apply")
QT_TRANSLATE_NOOP("QPlatformTheme", "Reset")
QT_TRANSLATE_NOOP("QPlatformTheme", "Restore Defaults")

View File

@@ -1,21 +1,15 @@
#!/usr/bin/env python3
"""
novelWriter – Start Script
novelWriter - Start Script
==========================
"""
""" # noqa
import os
import sys
try:
import PyQt6.QtCore
import PyQt6.QtGui
import PyQt6.QtWidgets # noqa: F401
except Exception:
print("ERROR: Failed to load dependency PyQt6")
sys.exit(1)
os.curdir = os.path.abspath(os.path.dirname(__file__))
if __name__ == "__main__":
import novelwriter
novelwriter.main(sys.argv[1:])

View File

@@ -1,10 +1,7 @@
"""
novelWriter – Init File
novelWriter - Init File
=======================
File History:
Created: 2018-09-22 [0.0.1] main
This file is a part of novelWriter
Copyright (C) 2018 Veronica Berglyd Olsen and novelWriter contributors
@@ -20,9 +17,11 @@ General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
"""
""" # noqa
from __future__ import annotations
import gc
import getopt
import logging
import os
@@ -43,17 +42,19 @@ if TYPE_CHECKING:
# Package Meta
# ============
# fmt: off
__package__ = "novelwriter"
__copyright__ = "Copyright 2018-2025 Veronica Berglyd Olsen"
__copyright__ = "Copyright 2018-2026 Veronica Berglyd Olsen"
__license__ = "GPLv3"
__author__ = "Veronica Berglyd Olsen"
__maintainer__ = "Veronica Berglyd Olsen"
__email__ = "code@vkbo.net"
__version__ = "2.7"
__hexversion__ = "0x020700f0"
__date__ = "2025-06-01"
__version__ = "26.2.2"
__hexversion__ = "0x260202f0"
__date__ = "2026-10-11"
__status__ = "Stable"
__domain__ = "novelwriter.io"
# fmt: on
logger = logging.getLogger(__name__)
@@ -67,12 +68,12 @@ CONFIG = Config()
SHARED = SharedData()
# ANSI Colours
RED = "\033[91m"
GREEN = "\033[92m"
RED = "\033[91m"
GREEN = "\033[92m"
YELLOW = "\033[93m"
BLUE = "\033[94m"
WHITE = "\033[97m"
END = "\033[0m"
BLUE = "\033[94m"
WHITE = "\033[97m"
END = "\033[0m"
# Log Format Components
TIME = "[{asctime:}]"
@@ -84,7 +85,7 @@ TEXT = "{message:}"
# Read Environment
FORCE_COLOR = bool(os.environ.get("FORCE_COLOR"))
NO_COLOR = bool(os.environ.get("NO_COLOR"))
NO_COLOR = bool(os.environ.get("NO_COLOR"))
def main(sysArgs: list | None = None) -> GuiMain | None:
@@ -94,17 +95,7 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
# Valid Input Options
shortOpt = "hvidc"
longOpt = [
"help",
"version",
"info",
"debug",
"color",
"style=",
"config=",
"data=",
"meminfo"
]
longOpt = ["help", "version", "info", "debug", "color", "config=", "data=", "meminfo"]
helpMsg = (
f"novelWriter {__version__} ({__date__})\n"
@@ -130,19 +121,17 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
" -d, --debug Print debug output. Includes --info.\n"
" -c, --color Add ANSI colors to log output.\n"
" --meminfo Show memory usage information in the status bar.\n"
" --style= Sets Qt style flag. Defaults to 'Fusion'.\n"
" --config= Alternative config file.\n"
" --data= Alternative user data path.\n"
)
# Defaults
logLevel = logging.WARN
logLevel = logging.WARNING
fmtColor = FORCE_COLOR
fmtLong = False
fmtLong = False
confPath = None
dataPath = None
qtStyle = "Fusion"
cmdOpen = None
cmdOpen = None
# Parse Options
try:
@@ -172,20 +161,20 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
fmtColor = not NO_COLOR
elif inOpt == "--meminfo":
CONFIG.memInfo = True
elif inOpt == "--style":
qtStyle = inArg
elif inOpt == "--config":
confPath = inArg
elif inOpt == "--data":
dataPath = inArg
else: # pragma: no cover
pass
if fmtColor:
# This will overwrite the default level names, and also ensure that
# they can be converted back to integer levels
logging.addLevelName(logging.DEBUG, f"{BLUE}DEBUG{END}")
logging.addLevelName(logging.INFO, f"{GREEN}INFO{END}")
logging.addLevelName(logging.WARNING, f"{YELLOW}WARNING{END}")
logging.addLevelName(logging.ERROR, f"{RED}ERROR{END}")
logging.addLevelName(logging.DEBUG, f"{BLUE}DEBUG{END}")
logging.addLevelName(logging.INFO, f"{GREEN}INFO{END}")
logging.addLevelName(logging.WARNING, f"{YELLOW}WARNING{END}")
logging.addLevelName(logging.ERROR, f"{RED}ERROR{END}")
logging.addLevelName(logging.CRITICAL, f"{RED}CRITICAL{END}")
logTxt = f"{LVLC} {TEXT}" if fmtColor else f"{LVLP} {TEXT}"
@@ -203,37 +192,34 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
logger.info("Starting novelWriter %s (%s) %s", __version__, __hexversion__, __date__)
# Disable GC, running in GuiMain instead (#2927)
gc.disable()
# Check Packages and Versions
errorData = []
errorCode = 0
if sys.hexversion < 0x030a00f0:
errorData.append(
f"At least Python 3.10 is required, found {CONFIG.verPyString}"
)
if sys.hexversion < 0x030B00F0:
errorData.append(f"At least Python 3.11 is required, found {CONFIG.verPyString}")
errorCode |= 0x04
if CONFIG.verQtValue < 0x060400:
errorData.append(
f"At least Qt6 version 6.4 is required, found {CONFIG.verQtString}"
)
errorData.append(f"At least Qt6 version 6.4 is required, found {CONFIG.verQtString}")
errorCode |= 0x08
if CONFIG.verPyQtValue < 0x060400:
errorData.append(
f"At least PyQt6 version 6.4 is required, found {CONFIG.verPyQtString}"
)
errorData.append(f"At least PyQt6 version 6.4 is required, found {CONFIG.verPyQtString}")
errorCode |= 0x10
if errorData:
errApp = QApplication([])
errDlg = QErrorMessage()
errDlg.resize(500, 300)
errDlg.showMessage((
"<h3>A critical error was encountered</h3>"
"<p>novelWriter cannot start due to the following issues:<p>"
"<p>&nbsp;-&nbsp;{0}</p>"
"<p>Shutting down ...</p>"
).format(
"<br>&nbsp;-&nbsp;".join(errorData)
))
errDlg.showMessage(
(
"<h3>A critical error was encountered</h3>"
"<p>novelWriter cannot start due to the following issues:<p>"
"<p>&nbsp;-&nbsp;{0}</p>"
"<p>Shutting down ...</p>"
).format("<br>&nbsp;-&nbsp;".join(errorData))
)
for errLine in errorData:
logger.critical(errLine)
errApp.exec()
@@ -242,9 +228,12 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
# Finish initialising config
CONFIG.initConfig(confPath, dataPath)
if sys.platform == "darwin":
if sys.platform == "linux":
QApplication.setDesktopFileName(CONFIG.appHandle)
elif sys.platform == "darwin":
try:
from Foundation import NSBundle # type: ignore
bundle = NSBundle.mainBundle()
info = bundle.localizedInfoDictionary() or bundle.infoDictionary()
info["CFBundleName"] = "novelWriter"
@@ -253,8 +242,8 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
elif sys.platform == "win32":
try:
import ctypes
appID = f"io.novelwriter.{__version__}"
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID(appID) # type: ignore
ctypes.windll.shell32.SetCurrentProcessExplicitAppUserModelID("io.novelwriter.app") # type: ignore
except Exception:
pass # Quietly ignore error
@@ -263,7 +252,7 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
from novelwriter.guimain import GuiMain
# Create App
app = _createApp(qtStyle)
app = _createApp()
# Connect the exception handler before making the main GUI
sys.excepthook = exceptionHandler
@@ -289,17 +278,20 @@ def main(sysArgs: list | None = None) -> GuiMain | None:
nwGUI.postLaunchTasks(cmdOpen)
sys.exit(app.exec())
code = app.exec()
logger.info("novelWriter exited with code %d", code)
sys.exit(code)
def _createApp(style: str) -> QApplication:
def _createApp() -> QApplication:
"""Create the app. This is done in a function to make it easier to
block app creation during testing.
"""
app = QApplication([CONFIG.appName, f"-style={style}"])
app = QApplication([CONFIG.appName])
app.setStyle("Fusion")
app.setApplicationName(CONFIG.appName)
app.setApplicationVersion(__version__)
app.setOrganizationDomain(__domain__)
app.setOrganizationName(__domain__)
app.setDesktopFileName(CONFIG.appName)
return app

View File

@@ -0,0 +1,121 @@
{
"Synopsis": "Sinopsi",
"Short Description": "Descripció breu",
"Footnotes": "Notes de peu de pàgina",
"Comment": "Comentari",
"Story Structure": "Estructura de la història",
"Note": "Anotació",
"Notes": "Anotacions",
"Tag": "Etiqueta",
"Point of View": "Punt de vista",
"Focus": "Focus",
"Characters": "Personatges",
"Plot": "Trama",
"Timeline": "Cronologia",
"Locations": "Llocs",
"Objects": "Objectes",
"Entities": "Entitats",
"Custom": "Personalitzat",
"Mentions": "Mencions",
"New Page": "Pàgina nova",
"0": "Zero",
"1": "U",
"2": "Dos",
"3": "Tres",
"4": "Quatre",
"5": "Cinc",
"6": "Sis",
"7": "Set",
"8": "Vuit",
"9": "Nou",
"10": "Deu",
"11": "Onze",
"12": "Dotze",
"13": "Tretze",
"14": "Catorze",
"15": "Quinze",
"16": "Setze",
"17": "Disset",
"18": "Divuit",
"19": "Dinou",
"20": "Vint",
"21": "Vint-i-U",
"22": "Vint-i-Dos",
"23": "Vint-i-Tres",
"24": "Vint-i-Quatre",
"25": "Vint-i-Cinc",
"26": "Vint-i-Sis",
"27": "Vint-i-Set",
"28": "Vint-i-Vuit",
"29": "Vint-i-Nou",
"30": "Trenta",
"31": "Trenta-U",
"32": "Trenta-Dos",
"33": "Trenta-Tres",
"34": "Trenta-Quatre",
"35": "Trenta-Cinc",
"36": "Trenta-Sis",
"37": "Trenta-Set",
"38": "Trenta-Vuit",
"39": "Trenta-Nou",
"40": "Quaranta",
"41": "Quaranta-U",
"42": "Quaranta-Dos",
"43": "Quaranta-Tres",
"44": "Quaranta-Quatre",
"45": "Quaranta-Cinc",
"46": "Quaranta-Sis",
"47": "Quaranta-Set",
"48": "Quaranta-Vuit",
"49": "Quaranta-Nou",
"50": "Cinquanta",
"51": "Cinquanta-U",
"52": "Cinquanta-Dos",
"53": "Cinquanta-Tres",
"54": "Cinquanta-Quatre",
"55": "Cinquanta-Cinc",
"56": "Cinquanta-Sis",
"57": "Cinquanta-Set",
"58": "Cinquanta-Vuit",
"59": "Cinquanta-Nou",
"60": "Seixanta",
"61": "Seixanta-U",
"62": "Seixanta-Dos",
"63": "Seixanta-Tres",
"64": "Seixanta-Quatre",
"65": "Seixanta-Cinc",
"66": "Seixanta-Sis",
"67": "Seixanta-Set",
"68": "Seixanta-Vuit",
"69": "Seixanta-Nou",
"70": "Setanta",
"71": "Setanta-U",
"72": "Setanta-Dos",
"73": "Setanta-Tres",
"74": "Setanta-Quatre",
"75": "Setanta-Cinc",
"76": "Setanta-Sis",
"77": "Setanta-Set",
"78": "Setanta-Vuit",
"79": "Setanta-Nou",
"80": "Vuitanta",
"81": "Vuitanta-U",
"82": "Vuitanta-Dos",
"83": "Vuitanta-Tres",
"84": "Vuitanta-Quatre",
"85": "Vuitanta-Cinc",
"86": "Vuitanta-Sis",
"87": "Vuitanta-Set",
"88": "Vuitanta-Vuit",
"89": "Vuitanta-Nou",
"90": "Noranta",
"91": "Noranta-U",
"92": "Noranta-Dos",
"93": "Noranta-Tres",
"94": "Noranta-Quatre",
"95": "Noranta-Cinc",
"96": "Noranta-Sis",
"97": "Noranta-Set",
"98": "Noranta-Vuit",
"99": "Noranta-Nou"
}

View File

@@ -3,6 +3,8 @@
"Short Description": "Krátký popis",
"Footnotes": "Poznámky pod čarou",
"Comment": "Komentář",
"Story Structure": "Struktura příběhu",
"Note": "Poznámka",
"Notes": "Poznámka",
"Tag": "Štítek",
"Point of View": "Úhel pohledu",
@@ -14,6 +16,7 @@
"Objects": "Objekty",
"Entities": "Subjekty",
"Custom": "Vlastní",
"Mentions": "Zmínky",
"New Page": "Nová stránka",
"0": "Nula",
"1": "Jedna",

View File

@@ -2,8 +2,8 @@
"Synopsis": "Zusammenfassung",
"Short Description": "Kurzbeschreibung",
"Footnotes": "Fußnoten",
"Comment": "Kommentar",
"Story Structure": "Struktur",
"Comment": "Anmerkung",
"Story Structure": "Erzählstruktur",
"Note": "Notiz",
"Notes": "Notizen",
"Tag": "Schlagwort",
@@ -16,6 +16,7 @@
"Objects": "Objekte",
"Entities": "Organisationen",
"Custom": "Benutzerdefiniert",
"Mentions": "Erwähnt",
"New Page": "Neue Seite",
"0": "Null",
"1": "Eins",

View File

@@ -16,7 +16,7 @@
"Objects": "Objects",
"Entities": "Entities",
"Custom": "Custom",
"New Page": "New Page",
"Mentions": "Mentions",
"0": "Zero",
"1": "One",
"2": "Two",

View File

@@ -16,6 +16,7 @@
"Objects": "Objects",
"Entities": "Entities",
"Custom": "Custom",
"Mentions": "Mentions",
"New Page": "New Page",
"0": "Zero",
"1": "One",

View File

@@ -3,6 +3,8 @@
"Short Description": "Breve Descripción",
"Footnotes": "Notas al pie",
"Comment": "Comentario",
"Story Structure": "Estructura Narrativa",
"Note": "Nota",
"Notes": "Notas",
"Tag": "Etiqueta",
"Point of View": "Punto de Vista",
@@ -13,7 +15,8 @@
"Locations": "Lugares",
"Objects": "Objetos",
"Entities": "Entidades",
"Custom": "Otros",
"Custom": "Personalizado",
"Mentions": "Menciones",
"New Page": "Nueva Página",
"0": "Cero",
"1": "Uno",
@@ -46,15 +49,15 @@
"28": "Veintiocho",
"29": "Veintinueve",
"30": "Treinta",
"31": "Treinta y ",
"32": "Treinta y ",
"33": "Treinta y ",
"34": "Treinta y ",
"35": "Treinta y ",
"36": "Treinta y ",
"37": "Treinta y ",
"38": "Treinta y ",
"39": "Treinta y ",
"31": "Treinta y uno",
"32": "Treinta y dos",
"33": "Treinta y tres",
"34": "Treinta y cuatro",
"35": "Treinta y cinco",
"36": "Treinta y seis",
"37": "Treinta y siete",
"38": "Treinta y ocho",
"39": "Treinta y nueve",
"40": "Cuarenta",
"41": "Cuarenta y uno",
"42": "Cuarenta y dos",

View File

@@ -3,6 +3,8 @@
"Short Description": "Description sommaire",
"Footnotes": "Notes de bas de page",
"Comment": "Commentaire",
"Story Structure": "Structure de l'histoire",
"Note": "Note",
"Notes": "Notes",
"Tag": "Étiquette",
"Point of View": "Point de vue",
@@ -14,6 +16,7 @@
"Objects": "Objets",
"Entities": "Entités",
"Custom": "Personnalisé",
"Mentions": "Mentions",
"New Page": "Nouvelle page",
"0": "Zéro",
"1": "Un",

View File

@@ -16,6 +16,7 @@
"Objects": "Oggetti",
"Entities": "Enti",
"Custom": "Personalizzato",
"Mentions": "Menzioni",
"New Page": "Nuova pagina",
"0": "Zero",
"1": "Uno",

View File

@@ -16,6 +16,7 @@
"Objects": "オブジェクト",
"Entities": "エンティティ",
"Custom": "カスタム",
"Mentions": "メンション",
"New Page": "新規ページ",
"0": "零",
"1": "一",

View File

@@ -16,6 +16,7 @@
"Objects": "Objekter",
"Entities": "Enheter",
"Custom": "Annet",
"Mentions": "Nevnt",
"New Page": "Ny side",
"0": "null",
"1": "én",

View File

@@ -1,11 +1,13 @@
{
"Synopsis": "Synopsis",
"Short Description": "Korte beschrijving",
"Short Description": "Korte Omschrijving",
"Footnotes": "Voetnoten",
"Comment": "Opmerking",
"Story Structure": "Verhaalstructuur",
"Note": "Notitie",
"Notes": "Notities",
"Tag": "Label",
"Point of View": "Perspectief",
"Point of View": "Standpunt",
"Focus": "Focus",
"Characters": "Personages",
"Plot": "Plot",
@@ -14,7 +16,8 @@
"Objects": "Objecten",
"Entities": "Entiteiten",
"Custom": "Aangepast",
"New Page": "Nieuwe pagina",
"Mentions": "Vermeldingen",
"New Page": "Nieuwe Pagina",
"0": "nul",
"1": "één",
"2": "twee",

View File

@@ -16,6 +16,7 @@
"Objects": "Objekt",
"Entities": "Eining",
"Custom": "Anna",
"Mentions": "Nevnt",
"New Page": "Ny side",
"0": "null",
"1": "ein",

View File

@@ -16,6 +16,7 @@
"Objects": "Obiekty",
"Entities": "Podmioty",
"Custom": "Różne",
"Mentions": "Wzmianki",
"New Page": "Nowa strona",
"0": "zero",
"1": "pierwszy",

View File

@@ -16,6 +16,7 @@
"Objects": "Objetos",
"Entities": "Entidades",
"Custom": "Outros",
"Mentions": "Menções",
"New Page": "Nova página",
"0": "Zero",
"1": "Um",

View File

@@ -3,6 +3,8 @@
"Short Description": "Краткое описание",
"Footnotes": "Примечания",
"Comment": "Комментарий",
"Story Structure": "Структура повествования",
"Note": "Заметка",
"Notes": "Заметки",
"Tag": "Тэг",
"Point of View": "Точка зрения",
@@ -14,6 +16,7 @@
"Objects": "Объекты",
"Entities": "Сущности",
"Custom": "Другое",
"Mentions": "Упоминания",
"New Page": "Новая страница",
"0": "Ноль",
"1": "Один",

View File

@@ -16,6 +16,7 @@
"Objects": "物品",
"Entities": "条目",
"Custom": "自定义",
"Mentions": "提及",
"New Page": "新建页面",
"0": "零",
"1": "一",

Some files were not shown because too many files have changed in this diff Show More