Commit Graph

15 Commits (233d3759831e8fb49ce7f5b458ef89ead2f82e1f)

Author SHA1 Message Date
Guido Cella 44deddbbfe Highlight pacman hooks as ini 4 years ago
Guido Cella aa8a2b1769 Highlight systemd files as ini 4 years ago
sharkdp 74e8373e34 Return mappings as a slice 4 years ago
Alex Novak 48b4a6a906 Adds a little logic to main to get other mappings from config 4 years ago
sharkdp c4031ad65c Fix syntax detection for files called 'rails'
closes #1008
4 years ago
sharkdp 0064321323 cargo fmt 4 years ago
sharkdp 793af6b911 Add a syntax mapping for bats own config file 4 years ago
sharkdp 702cb198da Rename error module 4 years ago
sharkdp dfd3ef022e Add more default mappings, reverse traversal 4 years ago
sharkdp bd8a13dbc9 Initial implementation of glob-based syntax mapping 4 years ago
sharkdp 90397a8aac Hide SyntaxMapping::replace 4 years ago
Daniele Esposti f259ff2920 Formatted code 5 years ago
Daniele Esposti 82f14121bd Applied linter fixes 5 years ago
Ole Martin Ruud 348c9f3562 Enhance SyntaxMapping with impl Trait 6 years ago
sharkdp 10965a6122 Implement syntax mapping
This adds a `-m`/`--map-syntax` option that allows users to (re)map
certain file extensions or file names to an existing syntax.

For example:
```
bat --map-syntax .config:json
```

The option can be use multiple times. Note that you can easily make
these mappings permanent by using `bat`s new configuration file.

closes #169
6 years ago