HN user

philocalyst

52 karma
Posts11
Comments21
View on HN

Wondering if you would be interested in plugging into my

https://github.com/philocalyst/lang-config

Which contains comment tokens, block and line, common language servers, special pairs, recognized shebangs, root scopes, etc.

It's mostly for use in one of my other projects, although you can see some of its higher aspirations one day in the README. Would love to collaborate with you and make it useful for a real use-case outside my own! If any of the information contained there could be useful! Reach out through an issue or through an email (linked in my github profile) if you're keen

Walking this back, the API only allows setting this up for app bundles, which adds another layer of complexity I'm not down for. I want it to be a CLI tool, it doesn't need a helper or any other layers.

As a kind of apology, I made a drop-in hammerspoon config that should accomplish exactly what you wanted: https://gist.github.com/philocalyst/ad9f6d7cc08a9cdefa795e1b...

And if you've never used it before: https://www.hammerspoon.org/go/

MacOS doesn't give any way to block an association from happening, I'm assuming they're using the same API's under the hood that Duti is using, and the only way you could block that from being accessed is by disabling the Launch services API.

In the next release of Infat, I'm introducing listing the openers from the plist (As you're doing now). If you record these values, then get their set defaults through infat, you could put those into your config and load from you config whenever they're overriden!

Best I got... Shameless promotion

There is not, infat is subject to the limitations of Apple's API for setting handlers, which do not support passing in any data that an application could work with. If you wanted to, and have the time, I would recommend setting up a wrapper with https://github.com/sveinbjornt/Platypus with applescript. Then you could make an alternate for whichever mode you please and set it as an opener using infat. Clunky but functional.

Okay, confusing -- just tried to replicate on my machine and couldn't get that error. When you say touch, you mean creating a file with that extension, or any interaction period?

Could you please try to replicate with verbosity enabled (-v) and email me the output or file an issue at the repo with the results and full summary? It's helpful for tracking. Sorry this isn't a quick fix :(

Have an idea of how I would do this already, give me until the end of the week. To be clear, an interface like this?

Infat list [--identifier] [--application] Where identifier and application are mutually exclusive, and application lists the openers it is capable of opening by default? Merging the application flag for simplicities sake, so either returns a list with both their possibilities *and* the assigned apps.

Thoughts?

Love this!! Is there a reason why you chose to not display repository information like the language breakdown or tags? Messing with the sidebar might also be an opportunity to expand the capabilities of the interface, like including a star-chart or LOC.

Thank you for the awesome project! I wonder if you have seen Gothub? https://codeberg.org/gothub/gothub

And there's a number of alternative front-end lists out there that I would submit to if you all are serious about it, and make instructions easy on self-hosting.

Bello! I made this to make the creation and management of licenses on the CLI simple and scalable. Built in Rust (Oooh), full of features, and distributed as a single binary, it's a terrible convenience. Happy to answer any questions/concerns/whatever! First larger project like this and I don't want to stop here in the least. :)))