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

Implement syntax mapping #361

Merged
merged 1 commit into from
Oct 17, 2018
Merged

Implement syntax mapping #361

merged 1 commit into from
Oct 17, 2018

Conversation

sharkdp
Copy link
Owner

@sharkdp sharkdp commented Oct 17, 2018

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 bats new configuration file.

closes #169

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
@sharkdp sharkdp merged commit 10965a6 into master Oct 17, 2018
@sharkdp sharkdp deleted the syntax-mappings branch October 17, 2018 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support custom extension and file name mappings
1 participant