Is it OK to post your own little projects with babashka here? Assuming yes, it's dinky but it's been so incredibly helpful. I get a ton of passworded PDFs from e.g. my CPA. It's all security theater (ask me how I know) and the passwrods are consistent. I have better ways to keep that data safe so I want to take the passwords off. This does that with a set of passwords, configurable, stored in 1Password: https://github.com/lvh/pdfunpassword it's a perfect example of "slightly too complicated for me to like writing it in bash, still super useful". it's not clj-kondo but it sparked joy 🙂
Thanks for sharing :)
So what's the latest thinking on cider and babashka nrepl? It is a real problem that babashka identifies as clj and gets sent my Clojure code when I have two (clj, babashka) REPLs open, but on a mixed project. The application is supporting babashka in clay, which uses cider for it's emacs integration. The user would have two REPLs in this scenario, one for working on the babashka notebook (and clay sending forms to it when rendering it) and one for clay itself. Long term we might also just have a babashka port of Clay, but for other dialects the issue might come up as well.
I don't know if babashka can solve this problem. It just offers you an nREPL server and doesn't know anything about editors. Probably the #cider channel know more about this
Yes, thanks for the immediate reply, going to forward there as well. I just saw yesterday there are some long discussion in issues on it.
Would it be a good addition to babashka.fs to wrap Path#getRoot ? I find it useful when I'm rebuilding an absolute path from components & want the same behavior on Unix & Windows. On Unix, it's easy to assume the root of an abspath is "/" (for a local path, at least). On Windows, it's often "C:\", but not always. One could parse the path string, but Path#getRoot is cleaner & better documents the intent. One important caveat: It's not helpful for dealing with non-native paths, say a Windows path on Linux.
oh yes!
that sounds good
Thanks! I'm glad we're in agreement. 🙂
I've been in babashka/fs mode of late. While I'm in the groove, I can do up an issue (and later a PR) if you like.
seems good, unless @jdjohn316ston is keen to do it
yep, let us know @jdjohn316ston, don't want to step on your fun!
@lee Feel free, if you are so inclined. I'll plan to be an early adopter.
Okey dokey, will start with an issue!
LGTM
I have yet to review your other issues and PRs but there's quite a queue - eventually I'll get to it
Thanks!