nvim-telescope / telescope-frecency.nvim

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

[Feature request]: enhance the `workspaces` setting to use list of paths as values #264

Open gbcreation opened 1 week ago

gbcreation commented 1 week ago

Hi! Thank you for this very useful plugin.

Could it be possible to enhance it to specify a list of paths for the workspaces? The type of the workspace setting would be table<string, string | table<string>>. It would be similar to the search_dirs option of the Telescope find_files builtin and would be configured like this:

    workspaces = {
      ["conf"] = "/home/my_username/.config",
      ["data"] = { "/home/my_username/.local/share", "/usr/local/share" }
      ["project"] = "/home/my_username/projects",
      ["wiki"] = "/home/my_username/wiki",
    }

With this config, running :Telescope frecency workspace=data would display files from both /home/my_username/.local/share and /usr/local/share folders in the list.

delphinus commented 1 week ago

That's interesting. I will try to implement this.