Commit Graph

591 Commits (31608c9a031fc1b2cec70595c6fa0026bf77ca4e)
 

Author SHA1 Message Date
sharkdp 931c6e9414 Update man page 6 years ago
sharkdp 8dc7e2efa3 Add --config-file option 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
sharkdp e43d97dc15 Small cleanup 6 years ago
sharkdp 2c7087b8de Add integration tests for pager handling 6 years ago
sharkdp bb1f5aa841 Add proper handling of empty PAGER variables 6 years ago
sharkdp 2109a7830b Add error handling for parsing errors 6 years ago
sharkdp ec27c78a8a Remove duplicate 'extern crate' 6 years ago
Morten Linderud 67fe833bc8 Add arguments from PAGER/BAT_PAGER
Solves #352

Signed-off-by: Morten Linderud <morten@linderud.pw>
6 years ago
sharkdp e956225b4d Update syntect to 3.0.1
closes #314
6 years ago
sharkdp 314ec881ef Bump Rust version 6 years ago
sharkdp 25a6a55437 Revert "Fix for older version of Rust"
This reverts commit c530fadc44.
6 years ago
sharkdp 5bff4548be Add BAT_OPTS environment variable 6 years ago
sharkdp 866b9e16a8 Add error handling 6 years ago
sharkdp 5af176c94f Move transpose to util module 6 years ago
sharkdp 9e7da05459 Fix for older version of Rust 6 years ago
sharkdp 1ae02c65fb Fix include 6 years ago
sharkdp 495e7fd3b1 Add --no-config option 6 years ago
sharkdp b48f0fe389 Fix tests 6 years ago
sharkdp c19c704a43 Add more tests 6 years ago
sharkdp 693bd5929d Add possibility for spaces on a single line 6 years ago
sharkdp 8275b0436d Add simple configuration file
This allows users to create simple configuration file
(`~/.config/bat/config` on Linux) that has the following format:

    ```bash
    --flag1
    --flag2
    --option1=value1
    # lines beginning with '#' are ignored
    --option2=value2
    # empty lines and trailing whitespace are also ignored

    --option3=value3
    ```
6 years ago
sharkdp 278bde5cee Continue with output after "is directory"-error 6 years ago
Russ Taylor eee7e5a575 Removes duplicate explanation. 6 years ago
Russ Taylor ad7b634ee6 Fixes #328 - adds info for light backgrounds. 6 years ago
David Peter 1310f83c8d
Update Docker alias for bat 6 years ago
David Peter 897b9e7030
Add Docker instructions, closes #331 6 years ago
sharkdp 1891e194b5 Add simple integration tests 6 years ago
Taylor cea05e9f22 be consistent 6 years ago
sharkdp d2d01b9fe8 Always remove the local cache when creating new assets 6 years ago
sharkdp 2a7851530d Fix formatting 6 years ago
Taylor 1a6709c2cb add line highlight 6 years ago
sharkdp 5842d58c01 Updates for syntect 3.0 6 years ago
Tim Sampson e3c71adba7 syntax: Add robot framework support 6 years ago
Merlin Göttlinger 504f28b3a1 Documented nix availability 6 years ago
Fredrik Fornwall d977ba9194 Update dependencies 6 years ago
Tim Sampson 9c09799e1f misc: add exec bit for create.sh 6 years ago
David Peter d83c93c805
Update README.md 6 years ago
sharkdp fc8fd1e63f cargo fmt 6 years ago
sharkdp 404d6a4a81 Update content_inspector version 6 years ago
sharkdp 25d96da4a2 Add support for UTF-16LE and UTF-16BE 6 years ago
sharkdp e97095b724 Use first-line detection for STDIN 6 years ago
sharkdp ce96df00b6 Do not display binary files in interactive mode
closes #248
6 years ago
sharkdp f98fc5f06a Simplify access to first line 6 years ago
sharkdp 1dbb4ef683 Update minimum Rust version to 1.27 6 years ago
sharkdp 0502a3bd4a Add first-line detection for all input types
closes #205
6 years ago
sharkdp 869cf6368c Add possibility to get first line 6 years ago
sharkdp 078228deac Add unit test for InputFileReader 6 years ago
sharkdp e09d7dabb8 Move snapshot tests into separate module 6 years ago
sharkdp 6d1cc8c2c8 Move read_line functionality to inputfile module 6 years ago