Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ View count is an [Obsidian.md](https://obsidian.md) plugin for desktop and mobil

Once you enable the plugin, view count data will start being tracked. You can see the view count on desktop in the status bar in the bottom righthand corner.

There are 2 different definitions for a view count. Please see **View count type** setting section below.
There are 2 different definitions for a view count. Please see [View count type](#settings) setting section below.

If you would like to view the view count on mobile, you will need to enable the [Sync view count to frontmatter](#settings) setting.

Expand Down Expand Up @@ -134,7 +134,7 @@ getTrendingWeight: (file: TFile, duration: DurationFilter) => number;

### Duration options

The `getTrendingWeight` function accepts a duration string. Here are the following options:
The `getTrendingWeight` function accepts a duration. Here are the following options:

| Duration | Description |
| ---------- | ------------------------------------- |
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "view-count",
"name": "View Count",
"version": "2.2.0",
"version": "2.2.1",
"minAppVersion": "1.4.0",
"description": "Tracks view count for each vault file.",
"author": "DecafDev",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-view-count",
"version": "2.2.0",
"version": "2.2.1",
"description": "Tracks view count for each vault file",
"main": "main.js",
"scripts": {
Expand Down
3 changes: 1 addition & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { formatMessageForLogger, stringToLogLevel } from './logger';
import _ from 'lodash';
import { isVersionLessThan } from './utils';
import ViewCountCache from './storage/view-count-cache';
import { getStartOfTodayMillis } from './utils/time-utils';
import { migrateFileStorage } from './migration/migrate-file-storage';
import { migratePropertyStorage } from './migration/migrate-property-storage';

Expand Down Expand Up @@ -182,7 +181,7 @@ export default class ViewCountPlugin extends Plugin {
throw new Error("View count cache is null");
}

this.viewCountCache.handleFileOpen(file);
await this.viewCountCache.handleFileOpen(file);

if (!this.viewCountStatusBarItem) {
this.viewCountStatusBarItem = this.addStatusBarItem();
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
"2.0.1": "1.4.0",
"2.0.2": "1.4.0",
"2.1.0": "1.4.0",
"2.2.0": "1.4.0"
"2.2.0": "1.4.0",
"2.2.1": "1.4.0"
}