Commit Graph

21 Commits (fd52c01e7802e39a28dda1f96fb8dec19a02f2ac)

Author SHA1 Message Date
sharkdp 71b2089384 Code formatting 4 years ago
Kienyew 31fb7087f1 Revert to previous commit 4 years ago
Kienyew f97634011e Handle file extension conflicts in --list-languages (#1076) 4 years ago
Niklas Mohrin ad18f070ae Adds custom mapping for nginx and apache config files 4 years ago
Kienyew cab5ddf6ae Fix Typo 4 years ago
Caio Alonso fc121f0c87 Defaults *.fs to F# 4 years ago
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 5 years ago
sharkdp 793af6b911 Add a syntax mapping for bats own config file 5 years ago
sharkdp 702cb198da Rename error module 5 years ago
sharkdp dfd3ef022e Add more default mappings, reverse traversal 5 years ago
sharkdp bd8a13dbc9 Initial implementation of glob-based syntax mapping 5 years ago
sharkdp 90397a8aac Hide SyntaxMapping::replace 5 years ago
Daniele Esposti f259ff2920 Formatted code 6 years ago
Daniele Esposti 82f14121bd Applied linter fixes 6 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