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: Download files from the internet #2070

Closed
lunaneff opened this issue Feb 10, 2022 · 1 comment
Closed

Feature request: Download files from the internet #2070

lunaneff opened this issue Feb 10, 2022 · 1 comment
Labels
feature-request New feature or request

Comments

@lunaneff
Copy link

I often use bat to syntax highlight files from the internet, for example:

curl https://example.com | bat --language html

It would be nice if I could just do this instead:

bat https://example.com

and it detected the language from the Content-Type header. This might cause issues with filenames that look like URLs, but that could be solved by also adding support for the file scheme: file:///path/to/file and maybe adding a warning if there's a file with the same name

@lunaneff lunaneff added the feature-request New feature or request label Feb 10, 2022
@keith-hall
Copy link
Collaborator

Thanks for the feedback/suggestion. As bat is primarily a cat replacement, I personally don't feel this feature would be in scope. Sounds perfect for a wrapper script though! Maybe suggest it on https://github.com/eth-p/bat-extras? :)

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

No branches or pull requests

3 participants