-
-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
find-up #115
find-up #115
Conversation
Removed draft, curious what you think @borkdude! |
I'll have a look later this week! |
32f67e0
to
a57a20d
Compare
Is there a reason why you keep force-pushing this branch? I prefer not to see force-pushes as it's hard to track incremental changes and to collaborate this way. |
Mainline was changed, so I updated API.md - Sorry for the noise, I'll make new commits going fw. |
ok, no problem, I'll get to this change soon, but have some other stuff to get through first, I haven't forgotten :) |
Sure take your time - it was indeed not meant to 'poke' you, just to keep the patch in shape (I'm testdriving it in a project as well, so finding small improvements). |
Ah thank you, yes, test-driving would be good! |
I think this function does a bit too many things. E.g. the
can just be written as The logic seems a bit verbose and it's not immediately clear why expressions like In the current state I'm hesitant to merge it until I find more use cases myself to test drive this function. |
Perhaps there are other fs-like libraries that have a similar function we can obtain more information from. |
Thanks for taking a look. I agree it does a lot and this might all just remain a sketch... That said, I took another look and pruned...:
I think the fn now has more focus and hope the remaining logic justifies this being included. As to similar libs, there's this discussion where someone brought up https://github.com/rejeep/f.el. |
I meant, a similar lib with a similar function as the one you're proposing. I'm not aware of any in |
There's https://www.npmjs.com/package/find-up (and https://www.npmjs.com/package/find-up-simple). For some recent project I settled on traverse-up. |
Stock Emacs has the function |
Issue #112
Applied to clj-kondo.
considerations
start
not existing (as fs/parent happily traverses up existing or not) - maybe this should be configurable (seems needed for the clj-kondo-example that is currently not strict)glob