Skip to content

When capturing a file, check if it exists on disk too#1713

Merged
jethrokuan merged 2 commits intoorg-roam:masterfrom
alanz:check-file-exists-on-disk-too
Jul 30, 2021
Merged

When capturing a file, check if it exists on disk too#1713
jethrokuan merged 2 commits intoorg-roam:masterfrom
alanz:check-file-exists-on-disk-too

Conversation

@alanz
Copy link
Copy Markdown
Contributor

@alanz alanz commented Jul 30, 2021

We now check for either an unsaved buffer visiting the file path, or
the unvisited file on disk.

Motivation for this change

#1707 replaced checking if a file exists on disk with checking if a buffer is visiting it.

This PR combines both tests, so it is regarded as existing if either it is being visited in a buffer but is still unsaved, or is unvisited on disk.

See #1707 (comment)

alanz and others added 2 commits July 30, 2021 19:44
We now check for either an unsaved buffer visiting the file path, or
the unvisited file on disk.
@jethrokuan jethrokuan merged commit cf918c3 into org-roam:master Jul 30, 2021
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Jun 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants