Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gbcreation opened this issue Sep 7, 2024 · 1 comment · May be fixed by #268
Open

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

gbcreation opened this issue Sep 7, 2024 · 1 comment · May be fixed by #268

Comments

@gbcreation
Copy link

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
Copy link
Member

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

@delphinus delphinus linked a pull request Sep 8, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants