From ef199c417741a5df2fa32ea5a7b7387ad58d144c Mon Sep 17 00:00:00 2001 From: fjwillemsen Date: Fri, 12 Aug 2022 13:35:06 +0200 Subject: [PATCH] Automatic wordcount tracking --- README.md | 2 +- Scripts/preferences.js | 1 + Scripts/wordcount.js | 31 +++++++++++++++++-------------- bundled_script.js | 2 +- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 4600cf0..4d2d73d 100644 --- a/README.md +++ b/README.md @@ -51,7 +51,7 @@ However, would it not be even better if it were to behave like a native app on y ## Tips - The preferences pane can be found in the same left-side menu as the other Overleaf settings. - You can run multiple instances of Native Overleaf, allowing you to keep multiple projects open at the same time and receive notifications for each project. -- The word count tracker tracks the total words in the project, so includes anything written by other authors. It counts the words in the compiled PDF, hence it must be recompiled to reflect recent changes. +- The word count tracker tracks the total words in the project, so includes anything written by other authors. It counts the words in the compiled PDF, hence it must be recompiled to track a new change in the number of words. - The word count tracker uses the local date of your system, hence inconsistencies may arise when switching time zones. If necessary, the word count can be reset using the button in the preferences pane. - Notice on notifications: For notifications to work, the app must be allowed to by your system. You will only receive notifications for projects that are opened in the background, so you will not get notifications while working in a project. **Important**: to get notifications for chats, the chat window must have been opened at least once after loading a project (you can close it again). This is a limitation of the way we listen for new chat messages. If someone has a better idea, please get in touch. diff --git a/Scripts/preferences.js b/Scripts/preferences.js index 8cae316..ff3599e 100644 --- a/Scripts/preferences.js +++ b/Scripts/preferences.js @@ -120,6 +120,7 @@ function setupPreferencesPane() {
Wordcount Tracking
+

When the document is recompiled, this keeps track of the number of words, allowing you to see your progress.