otavioschwanck / arrow.nvim

Bookmark your files, separated by project, and quickly navigate through them.
Other
341 stars 16 forks source link

Getting empty buffer only when selecting bookmarks by index key #54

Closed Zexius closed 2 months ago

Zexius commented 2 months ago

I installed arrow via the default installation via lazy but I am getting a rather weird bug. When loading a saved bookmark via the index key, the buffer appears blank even though the filename is correct on the status line. However if I were use "[" or "]" to cycle to the bookmark it shows up perfectly fine. Any idea what might be causing this?

below is the exact same book mark, the first one access via the index key and the latter accessed via next item image

image

otavioschwanck commented 2 months ago

i will take a look later in the week, thanks from bringing it

ysirobs commented 2 months ago

I ran into the same issue. It looks like on Windows it's appending the cwd on to the front of the path twice. I switched to global mode as a work around and things are fine.

otavioschwanck commented 2 months ago

@Zexius i don't have windows to test it:

Could you verify if it works: https://github.com/otavioschwanck/arrow.nvim/commit/b5403e5e7217f559f7f2f7eaf1c8f9dc16070c1a

Zexius commented 2 months ago

@otavioschwanck just tried it out and it works beautifully. Thanks for being so quick on the fix!