Skip to content

Show new notebook contents when file is changed "from the outside" #142

@yurivish

Description

@yurivish

If a notebook is open in Observable Desktop and the notebook file is contemporaneously edited and saved in another editor (eg. Zed), a subsequent refresh inside of Observable Desktop will still show the old contents, and edits inside Observable desktop will overwrite the external edits.

It would be nice if changes from the outside were reflected in the Observable Desktop editor.

For example, if a notebook consists of

<!doctype html>
<notebook theme="air">
  <title>Untitled</title>
  <script id="1" type="text/markdown">
    # Untitled
  </script>
</notebook>

and I externally change it to

<!doctype html>
<notebook theme="air">
  <title>Titled</title>
  <script id="1" type="text/markdown">
    # Titled
  </script>
</notebook>

then refresh (cmd+R) in Observable Desktop, I continue to see "Untitled", and any subsequent edits in the Observable Desktop editor will overwrite the edited file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions