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

Allow clicking on results in terminal to open folder or file viewer #1563

Open
schallm opened this issue May 16, 2024 · 0 comments
Open

Allow clicking on results in terminal to open folder or file viewer #1563

schallm opened this issue May 16, 2024 · 0 comments

Comments

@schallm
Copy link

schallm commented May 16, 2024

Would love to see something similar to ripgrep's new --hyperlink-format option. ( 14.0.0 release ) It so helpful to be able to open matching files and even have it jump line number of matched text. It would be great if fd allowed something similar.

For example:

  • Allowing folders to be opened in the OS's default folder viewer (i.e., Finder, Explorer, ...) with --folder-hyperlink-format default and allowing overrides like the following to open directory a new default shell --folder-hyperlink-format shell
  • File handling could match ripgrep's handler and open the file with the OS's default handler with --file-hyperlink-format default and allow overrides for common tools like vscode with --file-hyperlink-format vscode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant