Scandir improvements#169
Scandir improvements#169Conni2461 merged 6 commits intonvim-lua:masterfrom jose-elias-alvarez:scandir-improvements
Conversation
|
I also wanted to take care of #75 as part of this PR but noted that changing |
|
What? Why? What? If we want to get the output of I just done get it right now. I know its hard. So i would look at already existing implementations like https://github.com/ggreer/the_silver_searcher/blob/master/src/ignore.c or https://github.com/BurntSushi/ripgrep/tree/master/crates/ignore |
|
Understood. Frankly, my Lua skills aren't up to the task of creating an implementation on the level of |
|
@Conni2461 Let me know if there's anything I can add / change on this to get it merged! |
Conni2461
left a comment
There was a problem hiding this comment.
LGTM, sorry i hadn't have much time to review it and now tami knows about it and forces me to merge it 😆
I was thinking, maybe we could also expose the git ignore things as scandir.__ functions and then test these things isolated. Thoughts
|
Thanks for taking a look at this again! I exposed |
|
Sorry, I haven't been reviewing much lately. If you fix conflicts I will take a look again and we can merge after I review |
|
Thanks! I just fixed the conflicts (and formatted) so let me know. Not sure what's going on with the test failures, but the scandir tests seem fine on my end, and I'm getting the same issues on the master branch. |
|
Everything look good here thanks :) can you do another rebase to make sure that the tests are happy. I think all of those issues are solved in master but just in case 😆 I keep this tab open. I intend to merge this today :) |
|
I just run it locally. Everything seems to work. Thanks you very much :) Sorry for neglecting the PR |
This PR combines a handful of small fixes and features for the
scandirmodule as well as a refactor of therespect_gitignorefunctionality. Instead of attempting to interpret the.gitignorefile, which is quite difficult when the file contains more advanced patterns, it instead checks relative file paths against the output ofgit ls-tree -rt HEAD --name-only. This should close #76.I've split up the changes into separate commits for easier review but will squash them whenever this PR is ready to merge.