otavioschwanck / arrow.nvim

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

FR: make *full* path to data files customizable (e.g. for syncing purposes) #4

Closed chrisgrieser closed 8 months ago

chrisgrieser commented 8 months ago

As far as I can tell, the data files are always saved in the cache folder? I'd suggest making the full path customizable, i.e. adding a setting data_folder in addition to save_key.

The reason being, that when you work on more than one machines, being able to set a folder would allow you to put the file into your dotfiles repo or a cloud drive for syncing purposes.

otavioschwanck commented 8 months ago

On it

otavioschwanck commented 8 months ago

Done: https://github.com/otavioschwanck/arrow.nvim/commit/bba131afe67e8d5e77e60a194bb0fa5ce77f94d6

Just add a function on save_path, like:

save_path = function() return vim.fn.stdpath("cache") .. "/arrow" -- never put / at the end. end,

Also i found o bug that was not saving inside nvim on cache, fixed too.

chrisgrieser commented 8 months ago

fantastic, thank you! Also thanks for the quick implementation

chrisgrieser commented 8 months ago

-- never put / at the end.

That screams for a fix :P save_path = save_path:gsub("/$", "")

otavioschwanck commented 8 months ago

-- never put / at the end.

That screams for a fix :P save_path = save_path:gsub("/$", "")

i will do it