Afnan Enayet

Results 21 comments of Afnan Enayet

Thanks for the bug report! And I'll think about more intelligent modes for diffsitter - we could possibly do something like only checking for diffs between tokens of a certain...

@dgunay which version of diffsitter are you using and what platform are you on? I tried replicating your crash with this test: and it seems like it's getting a different...

Hmm it seems like the binary is showing 0.7.0 but the package is for 0.7.1? I don't think it should make a difference in any case. Could you do me...

Yeah this would be cool, I like the split view a lot. It would probably be good to integrate this thing with a pager too.

I can write up how it works. I started out with a very naive min-edit-distance algorithm, but I was thinking of switching to Myers since you're effectively comparing an in-order...

Nice, tried it out and it seems to work fine. Probably easier/cleaner than my little script here: https://github.com/afnanenayet/diffsitter/blob/main/assets/git-diffsitter

We gracefully handle unsupported filetypes now that #212 has been merged

Yeah it's actually pretty easy to add new tree sitter grammars (or at least, it should be). I have them set up as submodules, and I compile the tree sitter...

It seems like all JSON *theoretically* should be valid Javascript: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON

@bar9 The process to add a grammar: 1. Add the tree-sitter submodule to the project 2. Add an entry in the build script to the submodule, make sure that the...