Skip to content

mnaoumov/obsidian-refresh-any-view

Repository files navigation

Refresh Any View

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

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

License

© Michael Naumov

About

Obsidian Plugin that allows to refresh preview mode without reopening the note

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published