Commit Graph

43 Commits (522e24f1784cecaaa231a1e4458c729cf5581600)
 

Author SHA1 Message Date
Wilfred Hughes 522e24f178 Track the corresponding line in the alternate file 2019-01-27 19:11:09 +07:00
dependabot[bot] 5a92de425d Bump colored from 1.6.1 to 1.7.0
Bumps [colored](https://github.com/mackwic/colored) from 1.6.1 to 1.7.0.
- [Release notes](https://github.com/mackwic/colored/releases)
- [Changelog](https://github.com/mackwic/colored/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mackwic/colored/compare/v1.6.1...v1.7.0)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2019-01-27 20:39:57 +07:00
Wilfred Hughes 5b2d6167b5 Defining a Change struct 2019-01-25 09:54:18 +07:00
Wilfred Hughes cd6cabc14b Rename Change to ChangeKind 2019-01-25 09:47:46 +07:00
Wilfred Hughes d0faad336b Minor option refactoring 2019-01-25 09:44:27 +07:00
Wilfred Hughes c49dfc8c37 Print left lines and right lines separately 2019-01-25 09:44:16 +07:00
Wilfred Hughes 178864e416 Move line boundary logic into NewlinePositions 2019-01-24 10:02:08 +07:00
Wilfred Hughes f75c3784a5 Factoring out a newline conversion API 2019-01-23 09:42:41 +07:00
Wilfred Hughes ef9d05fee3 Enforcing length should not remove newlines 2019-01-22 00:54:25 +07:00
Wilfred Hughes 498bd8df1b Lex single quoted strings in JS 2019-01-22 00:47:25 +07:00
Wilfred Hughes 37f7a4edbf Crude rust support 2019-01-22 00:45:55 +07:00
Wilfred Hughes f20ba428cf Use apply_color_by_line for highlighting 2019-01-22 00:37:59 +07:00
Wilfred Hughes 820a1b49db Fixing tests broken in f94ef9e 2019-01-22 00:37:42 +07:00
Wilfred Hughes 206e9be4b2 Ensure apply_color_by_line doesn't discard newlines 2019-01-22 00:35:19 +07:00
Wilfred Hughes 1dd56fff47 Truncate excessively long lines so output fits in the terminal 2019-01-22 00:12:33 +07:00
Wilfred Hughes a27f7c11c1 Allow overriding the terminal width calculation 2019-01-21 10:05:56 +07:00
Wilfred Hughes 1c6501cf6f Tweak help formatting 2019-01-21 10:05:32 +07:00
Wilfred Hughes 842f8f0554 Three lines of context by default 2019-01-21 09:57:53 +07:00
Wilfred Hughes f94ef9e300 Factoring out a helper function for line start positions 2019-01-21 01:02:30 +07:00
Wilfred Hughes 140ad392ab A function for colouring on a line-by-line basis 2019-01-21 00:38:53 +07:00
Wilfred Hughes 586842721d Make apply_color handle ranges that exceed the length of the string 2019-01-18 09:41:32 +07:00
Wilfred Hughes 515fb70b82 Adding a modified list to a sample file 2019-01-16 09:42:16 +07:00
Wilfred Hughes ed653c0b20 Factor out a diffs module 2019-01-15 09:54:45 +07:00
Wilfred Hughes 07e0774818 Basic context implementation 2019-01-15 09:44:57 +07:00
Wilfred Hughes 8823efa83c Remove debugging 2019-01-14 09:59:27 +07:00
Wilfred Hughes 6ff9764716 Add Language::from helper function 2019-01-14 09:59:04 +07:00
Wilfred Hughes 4971083c23 Move language detection and lexing to a separate module 2019-01-14 09:53:57 +07:00
Wilfred Hughes cb74212cbd Adding a basic Travis configuration 2019-01-14 01:15:50 +07:00
Wilfred Hughes 9775bf9b60 Move lines functionality to a separate file 2019-01-14 01:13:40 +07:00
Wilfred Hughes 5f487211a7 WIP allow the user to specify context 2019-01-13 10:43:26 +07:00
Wilfred Hughes 33a6d189fe Define a LineNumber wrapper type 2019-01-12 15:10:06 +07:00
Wilfred Hughes c3fd6ab072 Factor out a range type 2019-01-12 13:37:36 +07:00
Wilfred Hughes 07b72c1ee6 Factor out a LineRange type 2019-01-12 01:28:42 +07:00
Wilfred Hughes 5bb9fca580 Get relative line length calculations passing 2019-01-11 09:50:24 +07:00
Wilfred Hughes ee4650b031 WIP line relative positions 2019-01-10 01:48:32 +07:00
Wilfred Hughes d763cf9c3b Drop trivia, fix start positions for lexing, and add test 2019-01-04 01:14:24 +07:00
Wilfred Hughes 8d0710d4f0 Use first class string offsets 2019-01-04 01:14:20 +07:00
Wilfred Hughes 79d32067f0 Infer file type from extension 2019-01-01 13:45:43 +07:00
Wilfred Hughes 71bc6a53c4 Pad to the terminal width if the files are narrower 2018-12-31 17:53:07 +07:00
Wilfred Hughes 479d0d1671 Tweak colour to avoid confusion with the red shown during diffing 2018-12-31 11:25:15 +07:00
Wilfred Hughes db04937663 Expand related projects 2018-12-30 01:36:48 +07:00
Wilfred Hughes 1e23284e42 Add some test files 2018-12-29 17:44:30 +07:00
Wilfred Hughes 958033924a Initial proof of concept 2018-12-29 15:29:42 +07:00