otavioschwanck / arrow.nvim

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

Bug: Does not work when changing project during a session #5

Closed chrisgrieser closed 8 months ago

chrisgrieser commented 8 months ago

When I start neovim in directory-a, and then change project (cd directory-b), then arrow still shows me the bookmarks from directory-a. If I quit and start in directory-b, arrow correctly shows me the bookmarks from directory-b.

It seems the bookmark-loading only happens one during initialization and does not monitor changes in the directory.

I think this could be fixed by triggering bookmark-loading via the DirChanged event.

otavioschwanck commented 8 months ago

When I start neovim in directory-a, and then change project (cd directory-b), then arrow still shows me the bookmarks from directory-a. If I quit and start in directory-b, arrow correctly shows me the bookmarks from directory-b.

It seems the bookmark-loading only happens one during initialization and does not monitor changes in the directory.

I think this could be fixed by triggering bookmark-loading via the DirChanged event.

i will fix it, thanks for bringing it

otavioschwanck commented 8 months ago

Done at: https://github.com/otavioschwanck/arrow.nvim/commit/df0210c87229edd4f8e1ed10aa6cd611e4f6cf4b

chrisgrieser commented 8 months ago

thanks!