EFLS / zetteldeft

A Zettelkasten system! Or rather, some functions on top of the emacs deft package.
https://efls.github.io/zetteldeft
GNU General Public License v3.0
394 stars 42 forks source link

`zetteldeft--check` should compare true filenames on both sides. #75

Closed JHonaker closed 4 years ago

JHonaker commented 4 years ago

The function zetteldeft--check should expand symlinks in the deft-directory as well as the buffer-file-name. If the true-filename isn't compared on both, you'll have false mismatches when the deft-directory is in a symlinked folder, like ~/org/ which is a symlink to ~/Dropbox/org.

Before the change, this would search for ~/Dropbox/org/ in ~/org/new-zettel.org. Now it searches for ~/Dropbox/org/ in ~/Dropbox/org/new-zettel.org.

EFLS commented 4 years ago

That makes sense, thanks!

JHonaker commented 4 years ago

No problem! I'm surprised the problem hadn't hit anyone else yet.