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

insert_link yields incorrrect results (missing $/) for relative file paths #23

Closed
ziontee113 opened this issue Jul 26, 2022 · 0 comments · Fixed by #41
Closed

insert_link yields incorrrect results (missing $/) for relative file paths #23

ziontee113 opened this issue Jul 26, 2022 · 0 comments · Fixed by #41

Comments

@ziontee113
Copy link

Hi @max397574 , thank you for creating this awesome plugin.

The issue: let's say we have this folder structure, and I'm in the 2022 Jul 25 file:
Screenshot from 2022-07-26 06-38-30

If I run Telescope neorg insert_link, and pick one of the headers in rust.norg in the examples folder, the result will be:

{:examples/rust:* Programming in Rust}[Programming in Rust]

Which won't work.
The correct result should be:

{:$/examples/rust:* Programming in Rust}[Programming in Rust]

It's odd that Telescope neorg insert_file_link handles this well. This must be a bug fore insert_link.

@ziontee113 ziontee113 changed the title insert_link yields incorrrect results (missing $/) insert_link yields incorrrect results (missing $/) for relative file paths Jul 26, 2022
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 a pull request may close this issue.

1 participant