Refresh Any View

approved

by Michael Naumov

Allows to refresh any view without reopening it.

28 stars16,995 downloadsUpdated 19d agoMIT

Refresh Any View

Buy Me a Coffee GitHub release GitHub downloads Coverage: 100%

Obsidian renders a view once, when it opens. So a note showing a Dataview query, an embedded note, output from another plugin, or simply the current time keeps showing its original render — the content is stale and the only way to update it is to close the tab and open it again, losing your place.

This plugin re-renders any view in place, keeping your scroll position: from a toolbar button, from a command, or automatically on file change or on a timer.

Refresh this view, the visible ones, or every open tab

More screenshots
And a refresh button in every view, top right Refresh this view, the visible ones, or every open tab And a refresh button in every view, top right

Demo vault

The documentation is a demo vault. Every feature has a note that explains what it does and why you would want it, and walks you through it.

Start reading here — it is plain markdown, so it works on GitHub with nothing installed.

A copy of the vault ships with every release. You can access it via any of the following:

  1. Running the Refresh Any View: Open demo vault command.
  2. Downloading refresh-preview-demo-vault.zip from the Releases. It unzips into a single refresh-preview-demo-vault-<version> folder.
  3. Browsing its source in demo-vault/ in this repository.

What it does

  • Refresh in place — a toolbar button on every view, plus commands for the active view, every visible view, or every open view. Your scroll position survives. 01 Refresh a view
  • Refresh automatically — on file change, or on an interval, for content that should not wait for you to ask. 02 Settings

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Debugging

By default, debug messages for this plugin are hidden.

To show them, run the following command in the DevTools Console:

window.DEBUG.enable('refresh-preview');

For more details, refer to the documentation.

Rebranding

This plugin was formerly known as Refresh Preview.

The plugin was extended to refresh any view, not just the preview, so it got a new name.

However, for backward compatibility, the previous id refresh-preview is still used internally and you might find it

  • in the plugin folder name;
  • in the plugin URL;
  • in the Debugging section.

Changelog

All notable changes to this project will be documented in the CHANGELOG.

Contributing

Contributions are welcome — see CONTRIBUTING to get set up.

Support

Buy Me A Coffee

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.