difftastic icon indicating copy to clipboard operation
difftastic copied to clipboard

feat request: command option to list all supported language

Open ShuguangSun opened this issue 2 years ago • 3 comments

Is it possible to list all supporte languages in command line?

For example, I find it support emacs lisp in the mannual. However, I don't know whether my version (from github release) supports emacs lisp or how to specify it in the command line (--language elisp not work).

ShuguangSun avatar May 23 '22 09:05 ShuguangSun

difftastic uses extension to specify the language. You may use difft --language el to specify Emacs Lisp.

        --language <EXT>
            Override language detection. Inputs are assumed to have this file
            extension. When diffing directories, applies to all files.

I think this feature would make difftastic more user-friendly so instead of reading through the latest supported languages in https://difftastic.wilfred.me.uk/languages_supported.html, users could view current supported languages directly via difftastic in command line.

@Wilfred

tizee avatar May 23 '22 10:05 tizee

Thanks.

ShuguangSun avatar May 23 '22 11:05 ShuguangSun

Agreed, this would be really useful.

FWIW most difftastic packages include a copy of the manual, so you can see what languages are supported in your current version that way.

Elisp has always been supported though. You can also see when languages were added by looking at the changelog.

Wilfred avatar May 23 '22 16:05 Wilfred