Commit Graph

7399 Commits (8f6b269492900d16240092f7cdcf80fc6a00ffc3)
 

Author SHA1 Message Date
Wilfred Hughes 8f6b269492 Tag a 0.18.1 release 2022-01-30 22:56:19 +07:00
Wilfred Hughes 01d6cb149f Fix compilation on Rust 1.54 2022-01-30 22:54:02 +07:00
Wilfred Hughes 3c05d979ba Add a helper script for doing releases 2022-01-30 18:04:03 +07:00
Wilfred Hughes 409f7aae75 Roll version 2022-01-30 18:03:45 +07:00
Wilfred Hughes 9b77d07e93 Store novel lines on hunks
This allows us to recognise lines that have only additions or only
removals, even if we've managed to find a matching opposite line.

Fixes #115
2022-01-30 17:53:13 +07:00
Wilfred Hughes ea24dd8784 Skip unchanged delim and find a fixpoint
This lets us discard more nodes before diffing, improving performance.

Fixes #84
2022-01-30 17:20:24 +07:00
Wilfred Hughes ad6898fdde Remove node detachment logic
We now only init the next/prev nodes for possibly changed nodes, so
this work is unnecessary.
2022-01-30 14:28:38 +07:00
Wilfred Hughes 4223dd883c Tweak comment wording 2022-01-30 14:25:15 +07:00
Wilfred Hughes 6aa7d59540 Expand and improve glossary 2022-01-30 14:22:42 +07:00
Wilfred Hughes 4fa00d5d11 Consistent casing in help 2022-01-30 11:22:11 +07:00
Wilfred Hughes 712f4c0bba Print a more helpful message when called with the wrong number of arguments 2022-01-30 11:16:25 +07:00
Wilfred Hughes 760b54e0cf Improve help text
Don't hard code the binary name, and use "you" consistently.
2022-01-29 23:24:45 +07:00
Wilfred Hughes 82ce1ab818 Add a --skip-unchanged flag
Closes #98
2022-01-29 23:06:42 +07:00
Wilfred Hughes 2d3b08cc0a Document loop parsing fix 2022-01-29 18:22:47 +07:00
Wilfred Hughes 7e3bdaf125 Merge commit 'c7e814975ab0d0d04333d1f32391c41180c58919' 2022-01-29 18:19:41 +07:00
Wilfred Hughes 2c5de5734b Use blue consistently for highlighting comments 2022-01-29 18:14:28 +07:00
Wilfred Hughes 308ad6bb3a Use blue for comments on light backgrounds
Cyan is pretty pale on my machine, even when not using the bright
version.
2022-01-29 18:10:27 +07:00
Wilfred Hughes 2ecbfb5676 Update screenshots to show new syntax highlighting 2022-01-29 17:54:36 +07:00
Wilfred Hughes 9a065b65e9 Fix unnecessary borrows 2022-01-29 16:55:28 +07:00
Wilfred Hughes dabaddd709 Discuss usage in --help 2022-01-29 16:32:53 +07:00
Wilfred Hughes 037b8bd6cc Use upper case for positional arguments in help too 2022-01-29 16:22:02 +07:00
Wilfred Hughes db1a356856 Use bright/normal line colours depending on background 2022-01-29 16:12:59 +07:00
Wilfred Hughes 36c4520025 Provide an environment variable for controlling background colour
Fixes #55
2022-01-29 16:07:31 +07:00
Wilfred Hughes c38b072fd2 Add a --background option
Improves #55
2022-01-29 15:58:51 +07:00
Wilfred Hughes 0abc839481 Consistent casing for argument value placeholders 2022-01-29 15:45:11 +07:00
Wilfred Hughes ebd923acbe Use project and author information from Cargo.toml
Prevents duplication.
2022-01-29 15:38:44 +07:00
Wilfred Hughes 2762e35cf9 Prefer long argument help text
This displays the help text on a separate line to the argument name,
which is more readable.
2022-01-29 15:38:00 +07:00
Wilfred Hughes 203a0c3d70 cargo fmt 2022-01-29 15:36:49 +07:00
Wilfred Hughes 0eeb91d591 Add a --color CLI option 2022-01-29 12:38:31 +07:00
Wilfred Hughes c15e4d0cd5 Remove needless variable 2022-01-29 12:19:04 +07:00
Wilfred Hughes ad9cb5beb4 Clarify which options are for debugging in --help 2022-01-29 12:18:11 +07:00
Wilfred Hughes c0ba12bf68 Add a --width CLI argument 2022-01-29 12:13:21 +07:00
Wilfred Hughes d37a233b39 Use clap for parsing dump-syntax and dump-ts options 2022-01-29 12:10:35 +07:00
Wilfred Hughes d0fce4c42f Add a unit test for clap args configuration 2022-01-29 11:14:06 +07:00
Wilfred Hughes 934be78573 Fix clap deprecation warnings 2022-01-29 11:06:44 +07:00
Wilfred Hughes 5a2e0379aa Update to clap 3 2022-01-29 11:01:36 +07:00
Wilfred Hughes 4d8d258837 Clarify argument names 2022-01-29 10:28:18 +07:00
Stephan Seitz c7e814975a fix: don't allow maximizeing 2022-01-28 21:33:11 +07:00
Stephan Seitz 77fded65fb Fix #10: it's maximizing not maximizeing 2022-01-28 21:22:46 +07:00
Stephan Seitz ea9a194a33 Bump tree-sitter-cli 2022-01-28 21:20:00 +07:00
Wilfred Hughes 64deb7eff0 Dim .. ellipses that signify an absent line 2022-01-27 22:37:30 +07:00
Wilfred Hughes 98ccc6e2d9 Prefer bold over bright terminal colours
Bright colours work well on dark terminals, but not on light
terminals.
2022-01-27 22:24:47 +07:00
Wilfred Hughes fca1c6fffe Prefer 'normal' over white foreground colours
This is important in terminals with white backgrounds.

Improves #55
2022-01-27 22:18:06 +07:00
Wilfred Hughes 1b907e84c1 Fix character literals in Lisp
Improves #85
2022-01-27 21:53:21 +07:00
Wilfred Hughes 5cf143228f Treat attribute IDs in OCaml as atoms
Fixes #114
2022-01-27 20:25:17 +07:00
Wilfred Hughes bde1009825 Factor out a line tuple comparison helper 2022-01-26 22:38:46 +07:00
Wilfred Hughes bf5d9b6192 Print header on every hunk in inline display
See #34
2022-01-26 22:05:52 +07:00
Wilfred Hughes 6fb800606e Get all matched lines and then slice
This is much simpler conceptually and less prone to bugs.

Fixes #111
2022-01-26 21:58:02 +07:00
Wilfred Hughes cb510375c1 Show ChangedCommentPart in bold 2022-01-25 22:55:30 +07:00
Wilfred Hughes 69dbad35ad Roll version 2022-01-25 22:32:18 +07:00