on master help sign in
Updates for 0.4
commitbf5883f06f94f5af329cb8d7a8dcac5fbfc1524b authorsharkdp <davidpeter@web.de> dateThu 31 May 2018, 22:57 (8 years ago) parente27bdfc
3 files changed+16−7
Cargo.lock+4−4 Cargo.toml+1−3 README.md+11
Cargo.lock+4−4
@@ -50,7 +50,7 @@ dependencies = [
5050 "error-chain 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)",
5151 "git2 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)",
5252 "lazy_static 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
53− "syntect 2.0.1 (git+https://github.com/trishume/syntect?rev=c025dad49564e96322df4468fd268b65b91b2eae)",
53+ "syntect 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)",
5454]
5555
5656[[package]]
@@ -580,8 +580,8 @@ dependencies = [
580580
581581[[package]]
582582name = "syntect"
583−version = "2.0.1"
584−source = "git+https://github.com/trishume/syntect?rev=c025dad49564e96322df4468fd268b65b91b2eae#c025dad49564e96322df4468fd268b65b91b2eae"
583+version = "2.1.0"
584+source = "registry+https://github.com/rust-lang/crates.io-index"
585585dependencies = [
586586 "bincode 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
587587 "bitflags 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
@@ -841,7 +841,7 @@ dependencies = [
841841"checksum stable_deref_trait 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "15132e0e364248108c5e2c02e3ab539be8d6f5d52a01ca9bbf27ed657316f02b"
842842"checksum strsim 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "bb4f380125926a99e52bc279241539c018323fab05ad6368b56f93d9369ff550"
843843"checksum syn 0.13.7 (registry+https://github.com/rust-lang/crates.io-index)" = "61b8f1b737f929c6516ba46a3133fd6d5215ad8a62f66760f851f7048aebedfb"
844−"checksum syntect 2.0.1 (git+https://github.com/trishume/syntect?rev=c025dad49564e96322df4468fd268b65b91b2eae)" = "<none>"
844+"checksum syntect 2.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "dc8a6f0db88d4afc340522c20d260411e746b2225b257c6b238a75de9d7cec78"
845845"checksum term_size 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)" = "9e5b9a66db815dcfd2da92db471106457082577c3c278d4138ab3e3b4e189327"
846846"checksum termion 1.5.1 (registry+https://github.com/rust-lang/crates.io-index)" = "689a3bdfaab439fd92bc87df5c4c78417d3cbe537487274e9b0b2dce76e92096"
847847"checksum termios 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "d5d9cf598a6d7ce700a4e6a9199da127e6819a61e64b68609683cc9a01b5683a"
Cargo.toml+1−3
@@ -22,9 +22,7 @@ default-features = false
2222features = []
2323
2424[dependencies.syntect]
25−git = "https://github.com/trishume/syntect"
26−rev = "c025dad49564e96322df4468fd268b65b91b2eae"
27−# version = "2"
25+version = "2.1"
2826default-features = false
2927features = ["parsing", "yaml-load", "dump-load", "dump-create"]
3028
README.md+11
@@ -62,6 +62,17 @@ Read from stdin, explicitly specify the language
6262> curl -s https://raw.githubusercontent.com/sharkdp/bat/master/src/main.rs | bat -l rs
6363```
6464
65+As a replacement for `cat`:
66+
67+```bash
68+bat > note.md # quickly create a new file
69+
70+bat header.md content.md footer.md > document.md
71+
72+bat -n main.rs # show line numbers (only)
73+
74+cat f - g # output 'f', then stdin, then 'g'.
75+```
6576
6677## Installation
6778