Refresh Any View

approved

by mnaoumov

Allows to refresh any view without reopening it.

23 stars11,022 downloadsUpdated 29d agoMIT
View on GitHub

Refresh Any View

formerly known as Refresh Preview, see Rebranding section for more details

Buy Me a Coffee GitHub release GitHub downloads

This is a plugin for Obsidian that allows to refresh any view without reopening it.

It is usually useful if you have some dynamic content:

```dataviewjs
dv.span(new Date().toString());
```

When you switch to the preview or live preview mode, the content is rendered once and will rerender only if you change the content of the code block or reopen the note.

The plugin adds a Refresh button:

Demo

Also the plugin adds the Refresh Any View: Refresh active view command to the command palette.

The plugin allows to configure auto refresh on file change.

The plugin allows to configure auto refresh within a given time interval (it may introduce undesired UI flickering).

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:

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

For more details, refer to the documentation.

Rebranding

This plugin was formerly known as Refresh Preview.

The plugin can now refresh any views, not only in preview mode. That's why it got a new name.

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

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

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.