(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:
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).
The plugin is available in the official Community Plugins repository.
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:
- Ensure you have the BRAT plugin installed and enabled.
- Click Install via BRAT.
- 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.
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.
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;