Commit Graph

1234 Commits

Author SHA1 Message Date
Dan Davison
9f173e03c8 Fix doc comment 2019-06-26 12:51:59 -04:00
Dan Davison
01ce9b3ab4 README 2019-06-26 12:30:51 -04:00
Dan Davison
36d1de25e9 Change names 2019-06-26 10:46:59 -04:00
Dan Davison
6bc6ccfc1c Don't panic unnecessarily 2019-06-26 10:46:59 -04:00
Dan Davison
183eba159f Right pad to 100 char width 2019-06-26 10:46:59 -04:00
Dan Davison
0f7ef3cdac Propagate unexpected error 2019-06-26 10:46:59 -04:00
Dan Davison
3d927f4ffa Only replace a space character if we removed a {+,-} 2019-06-26 10:46:59 -04:00
Dan Davison
147e923c49 Change variable name 2019-06-26 10:46:59 -04:00
Dan Davison
4d54c0f7e2 Handle broken pipe 2019-06-26 10:46:59 -04:00
Dan Davison
fab6966981 Dark theme 2019-06-26 10:46:59 -04:00
Dan Davison
044913f0bc Don't output +/- at beginning of diff lines 2019-06-26 09:59:01 -04:00
Dan Davison
c6f1a38bcc Retain original colors except in diff hunks 2019-06-26 09:59:01 -04:00
Dan Davison
be5f329e1b Refactor colorizing 2019-06-26 09:59:01 -04:00
Dan Davison
0cabaa4b4a Revert "Only output color if stdout is a tty"
This reverts commit e0e2d5fb1ea52294afb0d7ed4ab59752b13b3c41.

Pipe to ansifilter if this is needed
2019-06-26 09:59:01 -04:00
Dan Davison
f076e143e4 Only output color if stdout is a tty 2019-06-26 09:59:01 -04:00
Dan Davison
7dc1c93a40 Output all input lines 2019-06-26 09:59:01 -04:00
Dan Davison
a81c86cc4c Parse file names and extensions 2019-06-26 09:59:01 -04:00
Dan Davison
10d1790dc8 Don't try to be efficient with highlighter instantiation 2019-06-26 09:59:01 -04:00
Dan Davison
cf4751aabc DNC: simplify diff parsing 2019-06-26 09:59:01 -04:00
Dan Davison
d216fb3f03 Separate files in output 2019-06-25 09:29:03 -04:00
Dan Davison
76bf59b8a5 Reuse a buffer for output strings 2019-06-25 08:49:30 -04:00
Dan Davison
0f90659f67 rustfmt 2019-06-25 08:49:18 -04:00
Dan Davison
9c23378589 Apply background colors 2019-06-24 23:20:35 -04:00
Dan Davison
5bfe90ea97 Copy as_24_bit_terminal_escaped from syntect 2019-06-24 21:59:09 -04:00
Dan Davison
70097af273 Use target file to determine extension
TODO: should use the unique extension obtained from both
2019-06-24 10:58:19 -04:00
Dan Davison
0c9c948113 Theme 2019-06-24 10:34:24 -04:00
Dan Davison
f2a9c6650a Handle error conditions 2019-06-24 10:34:24 -04:00
Dan Davison
673c73532a syntax-highlight hunks 2019-06-23 21:29:47 -04:00
Dan Davison
5ce64e9d06 Obtain file name 2019-06-23 21:29:47 -04:00
Dan Davison
ddf4156214 Iterate over hunks 2019-06-23 21:29:47 -04:00
Dan Davison
d4130bad3d Parse diff on stdin 2019-06-23 18:30:55 -04:00
Dan Davison
4404c17c22 Read from stdin, write to stdout 2019-06-23 18:06:47 -04:00
Dan Davison
5a4361fa03 cargo new delta 2019-06-23 17:28:25 -04:00
Dan Davison
4a3ebfa4d6 2019-06-23 17:28:12 -04:00