nvim-telescope / telescope-frecency.nvim

A telescope.nvim extension that offers intelligent prioritization when selecting files from your editing history.
MIT License
773 stars 37 forks source link

Would `stdpath("state")` be a better fit for `db_root`? #200

Closed adrian5 closed 4 months ago

adrian5 commented 4 months ago

I wonder if that would be a better default for transient data of this nature (similar to shada). What do you think?

delphinus commented 4 months ago

I see. This plugin was born in 2021-01-14 according to commit logs. In those days, XDG_STATE_HOME did not exist because the first spec for XDG Base Directory is version 0.8 which is published in May 2021 (mentioned here).

XDG_DATA_HOME should store persistent data for applications, so frecency DB should be stored in XDG_STATE_HOME.

I will update the default place to XDG_STATE_HOME, but also add a fallback logic to search XDG_DATA_HOME.