-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Add SSH config syntax #582
Conversation
Tested: ``` bash assets/create.sh cargo build target/debug/bat --language ssh_config ~/.ssh/config ```
Thank you very much! It would be great if we could somehow make this work automatically for |
Thanks! Happy to help. Regarding detection of files, one idea I've been playing with is adding a
If we go that route though, that will likely require a patch to the sublime-syntax file, just like the Java one currently. Thoughts? |
That's definitely a good first step and something that we could implement before we have a more general solution. I was thinking it would be even better if we could provide a "out of the box" solution for every user of For the SSH config, we could then explicitly check if the (expanded) file path matches
Hmm.. I think that could lead to false positive matches. I'd rather not follow that route.
I'm not very happy with the hack I did for the Java syntax. I would try to avoid having more patched files like this. To add the
What do you think? |
Awesome suggestions!
I think this is great. This would work for hosts, ssh config, and likely a whole number of files that are simply called
If it's not too hard to implement, this would bring |
I'm going to add open two new feature requests in separate issues. Thank you very much for your feedback! |
Released in bat v0.12. |
Tested: