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

Slows down Emacs when doing obsidian-follow-link-at-point and sometimes create new file while the file already exists in Obsidian Vault. #37

Open
suliveevil opened this issue Nov 10, 2022 · 11 comments
Labels
bug Something isn't working

Comments

@suliveevil
Copy link

suliveevil commented Nov 10, 2022

I have these files in Obsidian Vault:

status

主题/文件对比.md
callout_test.md
test.md

What's in test.md

[[文件对比]]

What's in 文件对比.md

[[test]]

problem

When I was in test.md, obsidian-follow-link-at-point creates a new file under Vault instead goto 主题/文件对比.md.
When I was in 主题/文件对比.md, obsidian-follow-link-at-point list two option in minibuffer:

callout_test.md
test.md

Instead of goto test.md.

Similar to what this PR mentions:

#32

@licht1stein
Copy link
Owner

licht1stein commented Nov 10, 2022

Hi, thanks for reporting!
What's the package version you have?

@suliveevil
Copy link
Author

suliveevil commented Nov 10, 2022

obsidian.el: 20221102.1643

Emacs Version 29.0.50 (9.0)

@suliveevil
Copy link
Author

suliveevil commented Nov 10, 2022

upgrade to 20221110.1824
Problems remains.

截屏2022-11-11 05 40 55

@licht1stein
Copy link
Owner

Probably a unicode problem. Can you zip a test folder structure with these files and attach it here?

@suliveevil
Copy link
Author

suliveevil commented Nov 11, 2022

It seems GitHub issue page didn't support zip files, I uploaded a repo as a minimal Obsidian Vault.

https://github.com/suliveevil/test/releases/tag/0.0.1

@suliveevil
Copy link
Author

suliveevil commented Nov 12, 2022

The only characters Obsidian doesn't allow to use are:

\/|:#*^[]

regexp: [^\\/|:#*^[\]]

These characters are fine:

+{;"=?~()<>&$

@licht1stein
Copy link
Owner

@suliveevil I've seen you forked the repo, are you working on a fix?

@suliveevil
Copy link
Author

@suliveevil I've seen you forked the repo, are you working on a fix?

I'm Emacs noob 😂

@joseedil
Copy link

joseedil commented Nov 22, 2022

I'm probably experiencing the same issue.

I have a file called Reading MOC that lives in Atlas/MOCs/ in my vault. Also, I use a Home note that has a link to it link: [[Reading MOC]].

obsidian-follow-link-at-point insists on creating a new file.

When I try obsidian-insert-wikilink it creates the link as [[Atlas/MOCs/Reading MOC]]. That works for new links but is not compatible with mostly any link in my current vault, as I have a pretty semantic folder structure aside from making heavy use of links.

Using Emacs 28.2 and obsidian package 20221115.1143 from melpa.

It seems to be related to #25, as it found many files with broken YAML headers on my vault (my bad, my citations plugin template was incorrect).

EDIT: It's not. I fixed all YAML headers, and the problem persists.

@licht1stein
Copy link
Owner

It's supposed to find a file by a simple link, not create a new one. I'll look into it as soon as I have time.

@licht1stein licht1stein added the bug Something isn't working label Jun 13, 2023
@shraacha
Copy link

shraacha commented Oct 30, 2023

Hey! I'm having a similar problem right now where I cannot follow any wiki links or markdown links that are nested within some directory when using obsidian-follow-*-link-at-point.

I am currently on emacs version GNU Emacs 29.1 (build 1, aarch64-apple-darwin22.4.0, Carbon Version 169 AppKit 2299.5) using the obsidian package from melpa.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants