Skip to content

Commit

Permalink
adding "newline" to snapshot syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
zuluwi committed Jan 28, 2024
1 parent e46c6df commit 0f70cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export default class VLCBridgePlugin extends Plugin {
.filter((f) => f.path.startsWith(`${currentConfig.snapshotFolder || this.settings.snapshotFolder}/`) && f.stat.mtime > beforeReq && f.stat.mtime < afterReq)
?.first();
if (snapshot) {
editor.replaceSelection(`${currentFile ? `${await this.getTimestampLink(response)}` : `${this.secondsToTimestamp(response.json.time)}`} ![](${snapshot.path})\n`);
editor.replaceSelection(`${currentFile ? `${await this.getTimestampLink(response)}` : `${this.secondsToTimestamp(response.json.time)}`}\n![](${snapshot.path})\n`);
} else {
new Notice(t("Snapshot not found, if you made a change to the snapshot folder name, try restarting VLC."));
}
Expand Down

0 comments on commit 0f70cdd

Please sign in to comment.