Commit graph

31 commits

Author SHA1 Message Date
Leo Yao
640d920f8f
Bugfix: pass DataManager to BarManager constructor
Before this patch, the BarManager constructor created a new DataManager instance,
leading to this.dataManager != this.barManager.dataManager. This led to effects such as
daily counts not updating in some circumstances, while total counts did.
2022-05-25 10:55:11 -04:00
Leo Yao
60ea70cfff Add basic filename filtering functionality
Adds a new setting fileNameFilter that omits filenames including
that string from total word/character/sentence counts.
2021-12-26 10:17:22 -05:00
Leo Yao
ba22ec7db9 Fix stats file creation when stats collection off
I noticed that despite having collectStats set to false, upon vault
or plugin load, the .vault-stats file would keep coming back. This is
due to:

In the plugin onload(), a BarManager is created
In the BarManager constructor, a DataManager is created
In the DataManager constructor, the .vault-stats file is created and
then written to, regardless of the user's collectStats setting.

We add an additional check in the DataManager constructor for the
collectStats setting, propagating settings through constructors
as necessary.
2021-12-25 22:26:59 -05:00
Luke Leppan
ca577458d8 🐛 Fix #14 and #16 and probably #15 2021-07-17 16:11:05 +02:00
Luke Leppan
89c74b9054 🐛 Fix #15 2021-07-12 14:47:37 +02:00
Luke Leppan
ddaeb41d4d 🐛 Fix incorrect defaults #15 2021-07-12 12:10:54 +02:00
Luke Leppan
90a277bc53 improves High CPU usage #14 2021-07-11 23:36:48 +02:00
Luke Leppan
03989d6b7a 🐛 Fix Broken Stats 2021-07-11 13:18:37 +02:00
Luke Leppan
992ff69040 🔀 Merge some stuff 2021-07-10 20:43:45 +02:00
Luke Leppan
72d8ac4a24 . 2021-07-10 05:37:54 +02:00
Luke Leppan
f9e3f467a1 fix syntax 2021-07-08 22:54:59 +02:00
Luke Leppan
f1440baa4d add stats syntax 2021-07-08 22:42:07 +02:00
Luke Leppan
5aa51986fe Add Daily Counts #11 2021-07-08 22:20:38 +02:00
Luke Leppan
7f817bd5bd add #13 2021-07-07 19:29:16 +02:00
Luke Leppan
691ffe88ea total counts working 2021-07-07 19:00:11 +02:00
Luke Leppan
7c420b0b0b getting closer 2021-07-07 14:34:39 +02:00
Luke Leppan
49ad4d12f5 turning out to be a much larger update 😂 2021-07-03 21:22:50 +02:00
Luke Leppan
a2843911ba Edit Stats.ts
Should fix #12
2021-06-20 09:04:16 +02:00
Luke Leppan
7f1361960f Edit README.md 2021-04-03 11:56:14 +02:00
Leo Yao
4b60c3ee86 Add total word counts into graph view count
This patch adds total word/character/sentence counts into the count
for non-markdown files. Visibility of each count is based on already
existing settings.

Note that the first call of updateAltCount() has been moved after
the settings are loaded.
2021-04-02 17:24:17 -04:00
Luke Leppan
31c3de78c6 Fix Word Count for other lang 2021-02-17 06:29:24 +02:00
Luke Leppan
f466e27884 Add file count to non-markdown files #5 2021-01-20 00:41:11 +02:00
Luke Leppan
137019ec8d Remove sentence count as default #4 2021-01-19 23:19:48 +02:00
Luke Leppan
11b793baa8 Add settings to toggle counts and more #4 2021-01-19 22:39:10 +02:00
Luke Leppan
7dfa75e1bc Enhancement credits #4 2021-01-19 18:40:22 +02:00
Luke Leppan
bc1879adae Added support for counting sentences #4 2021-01-19 18:36:58 +02:00
lukeleppan
014180fae7 fix not working release 2020-11-11 11:47:44 +02:00
lukeleppan
b0b939ce28 first bit #2 2020-11-11 11:32:20 +02:00
lukeleppan
ec914ea36b fix ghost count bug 2020-11-10 16:23:28 +02:00
lukeleppan
142923be97 flicker fix 2020-11-10 16:19:55 +02:00
lukeleppan
0f1cc5ecd8 first commit 2020-11-09 15:33:44 +02:00