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: Git files should support viewing everything as if you were at the root of the repo #751

Closed
1 task done
WolfeCub opened this issue Jan 25, 2025 · 0 comments · Fixed by #728
Closed
1 task done
Labels
enhancement New feature or request

Comments

@WolfeCub
Copy link

Did you check the docs?

  • I have read all the snacks.nvim docs

Is your feature request related to a problem? Please describe.

In telescope and fzf-lua git_files would show you all the files from the root of the repo. However in snacks it's relative to your current working directory.

Describe the solution you'd like

Add another function, option or change the behaviour of git_files so that there's a way to view the directory contents as if you were at the root from any sub-directory. The files should be formatted relative to the repo root regardless of where in the repo you are.

Describe alternatives you've considered

I would write it myself but the documentation around cwd and transform to get the correct formatting is unclear.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant