Commit Graph

215 Commits (0c9277108b31de846081365ba446caa5e40845d1)

Author SHA1 Message Date
Grégoire Paris 082abf65d1 Document how to disable difftastic temporarily
It can be useful if you want to obtain a diff in the standard format and
copy paste it to github, for instance.
2024-05-07 08:48:20 +07:00
Wilfred Hughes b4ff51f6ac Update URL to Lua parser 2024-04-28 23:34:12 +07:00
Wilfred Hughes 5c40cd0282 Prefer _1 and _2 naming for test files
This is less to type, and it's now alphabetical, so e.g.
sample_files/*.kt just works as a test argument.
2024-04-28 23:28:06 +07:00
Ivan Kuchin 287ddd7b42 Much shorter version of dlog alias
Use `-c` to set config instead of environment variable, so no need for building shell command
2024-04-08 08:39:49 +07:00
Wilfred Hughes bca6da38ce Improve wording 2024-04-07 15:56:45 +07:00
Wilfred Hughes b40e744a32 Clarify headings on internals pages 2024-04-07 15:55:49 +07:00
Wilfred Hughes a7e2a3914f Add favicon for manual 2024-04-07 15:54:29 +07:00
mbaitelman d718d64a6e
Update installation.md to include chocolatey 2024-03-26 13:40:38 +07:00
Wilfred Hughes e34185f190 Consistent whitespace 2024-03-23 16:07:18 +07:00
Wilfred Hughes ca472bf0f1
Merge pull request #671 from matthewhughes934/add-tab-completion-for-git-alias
Add tab completion for documented `dlog` alias
2024-03-23 16:03:29 +07:00
Wilfred Hughes 5aeddd79d4 Add missing from_source manual page 2024-03-22 15:48:31 +07:00
Ed Maste 59d20674f4 Add FreeBSD installation instructions 2024-03-22 10:13:29 +07:00
Matthew Hughes f984413e6b Add tab completion for documented `dlog` alias
There's a feature of Git's completion scripts that allows
completing function aliases[1]:

> If you use complex aliases of form '!f() { ... }; f', you can use the null
> command ':' as the first command in the function body to declare the desired
> completion style

This allows completion:

    $ git dlog --pat<tab>
    --patch             --patch-with-raw    --patch-with-stat   --patience

Tested on `bash`, though I believe this should also work with `zsh` and
`tsch` since their respective completion scripts also make use of the
`bash` one

[1] https://git.kernel.org/pub/scm/git/git.git/tree/contrib/completion/git-completion.bash?id=11c821f2f2a31e70fb5cc449f9a29401c333aad2#n26
2024-03-22 08:20:56 +07:00
opakapaka2003 47f63b28f0
Update installation.md
Revise nix installation instructions to change "ripgrep" to "difftastic"
2024-03-21 11:37:54 +07:00
Wilfred Hughes a70786d731 Expand installation instructions
Include more installation commands, split out source installation to a
separate page.
2024-03-19 08:47:27 +07:00
Wilfred Hughes 7ddd8879b1 Merge branch 'scheme-support' of github.com:kutsurak/difftastic into kutsurak-scheme-support 2024-03-04 08:46:59 +07:00
Wilfred Hughes 7a00339977
Merge pull request #634 from evanrichter/smali
Smali language support
2024-02-19 11:57:54 +07:00
Wilfred Hughes 3490aea9ec Document how to update existing parsers 2024-02-13 08:45:45 +07:00
Panagiotis Koutsourakis 67ada1ccd4 Add support for Scheme 2024-02-12 10:20:57 +07:00
Wilfred Hughes 3476a68efb Simplify description of manual 2024-02-08 08:47:33 +07:00
Wilfred Hughes 6cc1a5f3e3 Add 'hunk' to the glossary 2024-02-06 09:01:25 +07:00
Evan Richter d106c979ee add smali language support 2024-02-01 15:41:14 +07:00
Wilfred Hughes 6760559e6f Increase MSRV to 1.65
See discussion in #570
2024-01-28 12:55:07 +07:00
Wilfred Hughes a3731067b2
Merge pull request #618 from arbrauns/tree-sitter-vhdl
Add tree-sitter-vhdl
2024-01-28 12:04:53 +07:00
Armin Brauns c5638750d6 Add tree-sitter-vhdl 2024-01-09 09:23:51 +07:00
Armin Brauns 1087c805d0 manual: fix instructions for adding new parser
The `LANG_*` lists were removed and replaced with functions in
4d85b5c15e.
2024-01-08 15:31:42 +07:00
Wilfred Hughes db86b28a28 Add support for Objective-C
Closes #600

Co-authored-by: Nick Moore <nick@pilotmoon.com>
2024-01-07 12:50:19 +07:00
Wilfred Hughes 89c7e6f471 Pass arguments to `git dlog` just like `git log` 2023-12-16 13:05:38 +07:00
Rodolphe Blancho e18b5d0712
Merge branch 'master' into feature/salesforce_apex_support 2023-12-05 12:31:59 +07:00
Wilfred Hughes b9a1302e54 Bump MSRV to 1.63
In the past I've been more cautious, but this is the version supported
by Debian Stable, and it's more than 12 months old.

A decent number of dependencies are only tested against newer rustc
versions (see e.g. the recent aho-coarasick pin due to no MSRV on that
library). I've filed bugs in some cases, but upgrading rustc versions
more aggressively should make this problem less common.
2023-11-26 01:24:29 +07:00
Wilfred Hughes 4284c3578a Increase MSRV to 1.60 2023-10-31 16:34:59 +07:00
Wilfred Hughes 69060fd617 Document SCSS support 2023-10-11 20:00:44 +07:00
Rodolphe Blancho 05d78ca741 add support for Salesforce Apex
Apex Language documentation:
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_dev_guide.htm

Uses https://github.com/aheber/tree-sitter-sfapex
2023-10-06 11:08:02 +07:00
Wilfred Hughes 6805939c66 Add missing paren in example 2023-09-28 01:05:58 +07:00
Wilfred Hughes 6c28bc9401 Expand parse error discussion 2023-09-27 15:45:46 +07:00
Wilfred Hughes c153090a65 Fix highlighting 2023-09-15 22:25:01 +07:00
Wilfred Hughes b5942abc66 Rewrite git instructions 2023-09-15 18:18:54 +07:00
Wilfred Hughes c627326e31 Add XML to the languages in the manual 2023-09-09 10:06:10 +07:00
Wilfred Hughes 4fd36915b0 Rust parser is no longer forked 2023-08-18 23:08:36 +07:00
Wilfred Hughes e0a1405453 Add the ability to parse conflict markers and diff the two files 2023-08-15 09:01:15 +07:00
Wilfred Hughes 4fdc8eebcd Increase MSRV to 1.59 2023-08-07 20:32:08 +07:00
Wilfred Hughes b3acf48128 Bump minimum required Rust version to 1.58
Difftastic is generally conservative about MSRV, and will only
increase the version when there is a compelling reason (e.g. major
performance improvement, important bug fix in a dependendency).

This version increase will enable us to upgrade crossterm to 0.26, which
has better detection of terminal width on Windows.

I've also clarified MSRV details for other dependencies that cannot
currently be upgraded.
2023-07-26 11:34:05 +07:00
Wilfred Hughes 5374dc4452 Clarify wording and difftastic's status in Tricky Cases 2023-07-24 08:46:20 +07:00
Wilfred Hughes 8da6efa262 Suggest --locked when people install with cargo 2023-07-24 08:25:01 +07:00
Wilfred Hughes 1b9844cd60 Add sliders to the glossary
Fixes #537
2023-07-21 08:39:53 +07:00
Wilfred Hughes 2d23eb549d Document the new LaTeX support 2023-07-20 23:05:18 +07:00
Wilfred Hughes d134bc8e9a Move profiling to a separate page in the manual 2023-05-21 23:37:15 +07:00
Wilfred Hughes b0a3a0ada9 Use DFT_LOG as the internal logging environment variable
Fixes #519
2023-05-21 23:33:34 +07:00
Cthulhux f0f4baedec
Document how to use difftastic with Fossil (#513)
* Add Fossil

* Create fossil.md
2023-05-10 10:33:41 +07:00
grunweg a053d34829
Tweak documentation for adding a parser (#510)
* fix/doc: change git subtree instructions to use https protocol

Typing the instructions as shown resulted in a git error: `Permission denied (publickey) fatal - Could not read from remote repository`. Switching to the https protocol as [suggested online](https://stackoverflow.com/a/33072867) worked.

* doc: complete instructions for language detection

If there are file extensions associated with my language, I want to add them as well!

* whoops, delete duplicate sentences

* doc: update section on configuring parsing.

- The highlighting definitions got moved to a subdirectory -> adjust the path.
- Mention the sub_languages field, which has also been added since the docs were last edited.

* Tweak description of language detection.
2023-05-05 15:26:16 +07:00