Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Use file-truename in denote-filename-is-note-p and denote--di… #447

Merged
merged 1 commit into from
Sep 22, 2024

Conversation

jeanphilippegg
Copy link
Contributor

I am reverting commit 5fade0c because it will break Denote for some users.

If one's denote-directory contains symlink subdirectories (that link to
directories outside denote-directory), then some Denote features for those
notes will not work anymore.

We should not use file-truename because those directories will become
"outside" denote-directory. I don't see a non-costly way of doing this
validation. So I just recommend this warning in the manual:

If your `denote-directory` or its subdirectories involve symbolic links, make
sure that you access them using those links (and that
`find-file-visit-truename` is nil). Otherwise, Denote features will not work.

For the same reason, we should remove file-truename to fix related issue
#346 (with the same warning as above). I will do a separate pull request.

@protesilaos protesilaos merged commit 731a5dc into protesilaos:main Sep 22, 2024
@protesilaos
Copy link
Owner

Merged, thank you!

I don't see a non-costly way of doing this validation.

Perhaps we can provide this as an opt-in feature. Though this also comes down to the complexity of a user's setup, so maybe we should not do anything to account for it.

@protesilaos
Copy link
Owner

I will do a separate pull request.

Thank you!

@jeanphilippegg
Copy link
Contributor Author

Perhaps we can provide this as an opt-in feature. Though this also comes down to the complexity of a user's setup, so maybe we should not do anything to account for it.

Yes, it could be a good solution.

@jeanphilippegg jeanphilippegg deleted the revert-file-truename branch October 6, 2024 03:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants