artempyanykh / marksman

Write Markdown with code assist and intelligence in the comfort of your favourite editor.
MIT License
1.98k stars 35 forks source link

Jump to relative link to another markdown file broken in some instances #333

Closed leiDnedyA closed 4 weeks ago

leiDnedyA commented 1 month ago

I can't figure out why, but in one of my notes directories, jumping to relative links to markdown files works, and in some it doesn't.

The only difference that I can see is that one links to a file in a subfolder of the parent directory. I tested this by adding another markdown file in the same directory as the main.md that's not allowing me to jump and linking it, and even when at the same level in the tree, it doesn't work.

Feature working properly

Screencast from 09-04-2024 08:42:06 AM.webm

.
├── future-stuff.md
├── links.md
├── meeting-notes.md
├── meetings
│   ├── 2024-08-29.md
│   └── 2024-09-01.md
├── misc.md
├── notes.md
└── todo.md

Feature not working

Screencast from 09-04-2024 08:48:41 AM.webm

.
├── CS420
│   ├── lectures
│   │   └── 1.md
│   └── main.md
├── CS444
│   ├── lectures
│   │   └── 1.md
│   └── main.md
├── CS460
│   ├── lectures
│   │   └── 1.md
│   └── main.md
├── main.md
├── other.md
└── PHYS113
    ├── discussions
    │   └── 1.md
    ├── lectures
    │   └── 1.md
    ├── main.md
    └── syllabus.pdf

I'm really stumped on this. Please let me know if anyone things of any other method of troubleshooting

leiDnedyA commented 4 weeks ago

This morning I realized it's because I didn't run git init or have a .marksman.toml file in the root directory. Should have read the readme, woops