ThePrimeagen / harpoon

MIT License
6.75k stars 365 forks source link

Add File when working with multiple drives. #231

Closed kinglisi closed 9 months ago

kinglisi commented 1 year ago

Using require("harpoon.mark").add_file() while you are not in the main drive pops or marks the whole directory from driveletter/path/file.extension, it would be fine if it worked however after then opening the quick menu and trying to enter the marked file it does not open the designated file just makes a new one somewhere else. Quick fix from the users for this is relatively simple you just either change the path from driveletter/path/file.extension to the relative path from where you opened vim so /path/file.extension and it will open the right file or simply typing the relative path manually in the first place.

I would not say this has any priority to be fixed since there is a very understandable and simple work around (plus most people work in one drive) And also not on windows like me, Don't judge I need windows for schooling because the school has no support for linux, ever since they became online primarily due to the pandemy But I would like the issue to at least be known!

kinglisi commented 1 year ago

Also just a note, this doesn't happen everytime which is why I opened the issue. Every now and then when I use the marker it grabs absolute path and most of the time it's the right relative path.

kinglisi commented 1 year ago

Another note, you can avoid this if you open every singular file via a fuzzy finder such as telescope. In this case marking a file will show fuzzy finders buffer links instead of the non relative paths given by vim.cmd.Ex.