Commit Graph

722 Commits

Author SHA1 Message Date
Jacki 50b9fd4980
Implement filter for characters
Signed-off-by: Jacki <jacki@thejackimonster.de>
2023-12-17 15:01:43 +01:00
TheJackiMonster 5a109250bb
========== manuskript-0.16.1 ==========
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-14 14:21:49 +01:00
TheJackiMonster 8beea301ec
Fix path inconsistencies
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-12 16:26:31 +01:00
TheJackiMonster f274cd489f
Use text mode writing files
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-12 16:22:46 +01:00
TheJackiMonster 41e59d71c1
Fix newline changes to read universally
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-12 16:18:43 +01:00
TheJackiMonster 98d6eb4975
Remove usage of hardcoded path separators
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-12 15:53:37 +01:00
TheJackiMonster 530352c78b
========== manuskript-0.16.0 ==========
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-07 19:42:24 +01:00
TheJackiMonster 82fe3262af
Prevent initial crash by changes in spellchecking
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-07 19:36:37 +01:00
TheJackiMonster 4d79bef20c
Update ui and translation
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-07 18:53:14 +01:00
TheJackiMonster a7abc68f8e
Initialize textColor with None
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-07 16:08:44 +01:00
Tobias Frisch 3d4eef2b49
Merge pull request #1214 from TheShadowblast123/develop
Update spellchecker.py And Fixed crashing
2023-12-07 16:06:03 +01:00
TheJackiMonster 1fd8762f5a
Fix crash #1218
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-07 16:00:27 +01:00
TheJackiMonster d93e8eb544
Merge branch 'develop' of github.com:olivierkes/manuskript into develop 2023-12-07 15:41:25 +01:00
TheJackiMonster 79ba7b59ed
Set templateIndex to none when marked as deleted
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-07 15:41:18 +01:00
Tobias Frisch 892f8f0592
Merge pull request #1226 from drmousse/develop
Crash on spellcheck context menu #1224
2023-12-07 15:35:59 +01:00
TheJackiMonster 14392909c3
Fix word count for template selection (fix #1163)
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-12-07 15:34:01 +01:00
Tobias Frisch 5f3933bde2
Merge pull request #1198 from Niwreg/develop
added extra check for the filebase dir not to start with an .
2023-12-07 15:07:14 +01:00
Tobias Frisch cf4ff9f35a
Merge pull request #1196 from Dreaded-Gnu/cross-platform-fix
Fix inconsistent newline handling across operating systems
2023-12-07 15:04:25 +01:00
mousse 56dac84932 issue 1224: contextmenu on unknown word in context of pyspellchecker and symspellpy 2023-09-20 16:24:55 +02:00
Shadow 161290686b Update corkDelegate.py 2023-09-18 14:28:30 -07:00
Shadow 7d31628977 Resolved critical error that crashes
textColor isn't always set to a value and whenever it was used as an empty variable the program would crash. I'm uncertain as to whether or not this solution is appropriate, but this is one way to handle it and maintain functionality. Another would be setting textColor to a default value, but this default would have to depend on the theme set by the user.
2023-09-18 14:11:30 -07:00
Shadow fbab930c44 Update spellchecker.py
Corrected issue where words within certain quotations would show up as incorrectly spelled (ex: 'I'm fine') would indicate both words are misspelled
2023-09-12 18:57:03 -07:00
Sage Vaillancourt d149ae45e7 Better regex dot config 2023-09-04 20:24:41 -04:00
Sage Vaillancourt 18089ae44f Fix regex for ignoring multi-line comments. 2023-09-03 20:33:25 -04:00
Sage Vaillancourt f25b47149b Use regex to remove comments before counting 2023-08-25 14:46:45 -04:00
Sage Vaillancourt 6f6abc6f65 I think this reads slightly cleaner. 2023-08-19 21:38:30 -04:00
Sage Vaillancourt 80e90b5ddc Skip comments in word count. 2023-08-19 21:36:13 -04:00
Gerwin van der Kamp 8a5dd11075 added extra check for the filebase dir not to start with an . 2023-08-12 02:39:48 +02:00
Christian Freitag e267699667 - Adjusted open calls to use \n as newline for all platforms instead of guessing it 2023-08-07 13:09:55 +02:00
Christian Freitag 42245d38c3 - Added catch of RuntimeError triggered on when sys.stderr is none 2023-08-07 10:04:26 +02:00
TheJackiMonster 1933d53c1c
Fix match and case syntax for python 3.9 and below
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-06-15 22:38:05 +02:00
Arne Sostack b05377b417 Implemented history back and forward navigation 2023-05-14 11:59:07 +02:00
tntscreed 863e8df483 Bug and style fixes.
- Made small changes to better fit the style of the project.

- Fixed a bug that would result in a crash when details were applied with the bulk info manager.

- Improved the Bulk Manager UI by adding the list-add and list-remove icons, to better fit it to Manuskript's style. Also added tooltips.
2023-03-16 16:06:48 +01:00
tntscreed 9b372eac73 Added remaining QMessageBox text to self.tr method
I'm assuming it was left out on accident. Sorry, but I can't update the translation files on my own.
2023-03-16 13:19:19 +01:00
TheJackiMonster e62432307f
Make selection adjustment permanent and improve consistency
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-03-15 21:06:31 +01:00
tntscreed 92b1e0b648 Made small improvements to the bulk detail manager.
-Cleaned the code up a bit.

-Added warning message before discarding unapplied entries in the bulk manager. The bulk manager now doesn't automatically close when selecting a single (or no) character, but asks for the user's consent.
2023-03-09 16:24:35 +01:00
tntscreed 1fd45ba1d2 Fixed a typo.
The warning message-box for when the bulk manager was empty has been fixed.
2023-03-07 21:56:30 +01:00
tntscreed 2ead298b00 Removed the absolute path left in by pyuic.
Sorry about that. It didn't exactly doxx me, but it was weird.
2023-03-07 21:19:29 +01:00
tntscreed 953ce4bd15 Multi-Deletion of Characters + Confirmation Dialog
-Since multi-selection of characters is now possible, it's more intuitive that all selected characters should be deleted.

-Added a confirmation dialog before character-deletion? Why the heck  was this not a thing before? It was way too easy to accidentally delete characters, with no way to restore them without external source-control or backups.
2023-03-07 20:56:54 +01:00
tntscreed 06f8ab3519 The bulk info managers is now completely functional.
Also, a change has been made to the character tree view. Theoretically it shouldn't have any functional significance, but "addCharacterInfo" is used for adding info to only one character, so it makes sense to remove the old multi-selection info-adding functionality, even if it wouldn't ever be accessible.
2023-03-07 20:27:16 +01:00
tntscreed 66df68af69 Made the code a little nicer, added addition and deletion
The bulk manager has been made partially functional.
2023-03-07 18:14:01 +01:00
tntscreed b5dfee59d7 Created a (not yet functional) bulk manager widget.
-Some variables had to be declared in the mainWindow.py __init__ function.

-Added functions for creating the bulkPersoInfoManager widget as a tab when multiple characters are selected. All other tabs get stored and deleted, and restored after only one character is selected.

-Started work on functions that create the intended behaviours of the widget.
2023-03-06 21:43:31 +01:00
tntscreed d55e88599d Made multi-selection of characters a bit more intuitive 2023-03-05 17:40:05 +01:00
tntscreed fc86ed5df6 Started work on character multi-selection features.
-Added currentCharacters method, a list counterpart of currentCharacter.

-Replaced the connection for currentItemChanged with itemSelectionChanged. This is to accommodate for the bulk-changes when multiple characters are selected. The currentItemChanged method is now not called with a connection, but from the handleCharacterSelectionChanged method. The latter is called with the itemSelectionChanged connection.

-If no valid characters are selected, the tabPersos widget is disabled. This obviously breaks the functionality of bulk-adding info to characters. This will have to be fixed by only disabling the parts of the tabPersos widget that should not be affected with multiple selection operations.
2023-03-05 14:14:58 +01:00
tntscreed eaebfa9dfa Merge remote-tracking branch 'origin/develop' into develop 2023-03-05 01:10:48 +01:00
tntscreed a046656acf Made bulk-adding "Detailed info" to characters possible
-Changed the selection mode to extended selection on the lstCharacters tree-view. This will not affect anything else other than the "detailed info" rows. Every other change to a character's descriptions, motivations and such only affect the last selected one.

-Made a method to get all the IDs of the selected characters.

-Added a character-info dialog UI. Originally, adding information worked by adding a placeholder and then changing it. Users never want to just add a placeholder without initialising the values. And the bulk-adding only works this way.
2023-03-05 00:58:25 +01:00
TheJackiMonster 041fda5b74
========== manuskript-0.15.0 ==========
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-03-04 20:32:58 +01:00
TheJackiMonster 2ca25a06f6
Update ui files regarding shortcut translation
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-03-04 16:15:30 +01:00
TheJackiMonster 9203e0cc83
Fix #305, adding an indicator to tree view root element
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-02-13 21:40:52 +01:00
TheJackiMonster 6ea209e523
Prevent right-click for popup menus to select item (fix #919)
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
2023-02-13 21:34:35 +01:00