skritch / obsidian-file-activity

Obsidian plugin to visualize the files you link to over time.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Obsidian File Activity Plugin

This Obsidian plugin adds a visualization showing what you have recently linked to.

image

This is an alpha release—feedback is welcome! In particular, I am not happy with the visualization above. Open to ideas.


I created this to support my personal workflow, where most of my note-taking happens in my Daily Note (with the help of the Calendar plugin), with frequent links out to many diffrerent "topic" pages. The topic pages backlinks then serve as a collection of raw thoughts, which I can use as source material for focused writing.

Often I want to continue referring to the same topic for many days in a row, or elaborate on ideas from a few days before. So I made this plugin to keep track of all the topics I've been linking to.

Note that the plugin counts links by the date the file was created. This works well for a "daily notes" workflow, but will not capture links in pages you contribute to continuously over time. It would easy to modify the plugin to track this, though. It would be harder to track links by the day each individual link was created, but not impossible, so please open an issue if this is of interest.

Releasing

  • Update your manifest.json with your new version number, such as 1.0.1, and the minimum Obsidian version required for your latest release.
  • Update your versions.json file with "new-plugin-version": "minimum-obsidian-version" so older versions of Obsidian can download an older version of your plugin that's compatible.
  • Create new GitHub release using your new version number as the "Tag version". Use the exact version number, don't include a prefix v. See here for an example: https://github.com/obsidianmd/obsidian-sample-plugin/releases
  • Upload the files manifest.json, main.js, styles.css as binary attachments. Note: The manifest.json file must be in two places, first the root path of your repository and also in the release.
  • Publish the release.

You can simplify the version bump process by running npm version patch, npm version minor or npm version major after updating minAppVersion manually in manifest.json. The command will bump version in manifest.json and package.json, and add the entry for the new version to versions.json

Manually installing the plugin

Copy over main.js, styles.css, manifest.json to your vault, e.g. by:

PLUGIN_DIR=$VAULT_DIR/.obsidian/plugins/file-activity-dev/
mkdir $PLUGIN_DIR
npm run build
cp main.js manifest.json styles.css $PLUGIN_DIR

Acknowledgments

This plugin was based in large part on the Recent Files plugin by tgrosinger.

About

Obsidian plugin to visualize the files you link to over time.

License:GNU General Public License v3.0


Languages

Language:TypeScript 81.4%Language:JavaScript 17.3%Language:CSS 1.3%