HackerTrans
TopNewTrendsCommentsPastAskShowJobs

philocalyst

52 karmajoined 3 yıl önce

Submissions

A motion graphics library in ~100 lines

skeary.me
1 points·by philocalyst·4 ay önce·0 comments

Show HN: BlueBoy, a macOS CLI for Bluetooth management

github.com
1 points·by philocalyst·geçen yıl·0 comments

Show HN: Lichen – Manage and create code licenses on the CLI and with TOML

github.com
6 points·by philocalyst·geçen yıl·2 comments

Badgen – A Badge Generating Service

github.com
3 points·by philocalyst·geçen yıl·1 comments

Show HN: Infat – Declaritive application assocation manager for macOS

github.com
94 points·by philocalyst·geçen yıl·41 comments

Lichen -- a License management CLI tool

github.com
3 points·by philocalyst·geçen yıl·1 comments

comments

philocalyst
·9 saat önce·discuss
Or use https://swiftbundler.dev/ ?
philocalyst
·geçen yıl·discuss
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
philocalyst
·geçen yıl·discuss
Thanks !
philocalyst
·geçen yıl·discuss
Walking back my regex commitment, just a heads-up/apology if you had your hopes up. Want this to stay as a CLI and not a dynamic app. Let me know if there's anything else you could see useful that would fit within that scope!
philocalyst
·geçen yıl·discuss
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/
philocalyst
·geçen yıl·discuss
THANK YOU! i knew something was wrong. i knew i knew i was missing it ;)
philocalyst
·geçen yıl·discuss
I loveee hammerspoon. And had a subscription to OpenIn a bit back. Advanced scripting isn’t going to happen, even paging out to another script. Recently committed to Regex which would cover most of that. I’ll look into how it “fixes” old associations.
philocalyst
·geçen yıl·discuss
Thank you for the question! I didn’t even think of this use case. I’ll setup regex (and wildcards) but not scripting.

Check back in a week!
philocalyst
·geçen yıl·discuss
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
philocalyst
·geçen yıl·discuss
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.
philocalyst
·geçen yıl·discuss
Shields.io but faster, simpler, and more flexible. (Paraphrasing the README)

https://badgen.net/
philocalyst
·geçen yıl·discuss
It wouldn't be possible with the current interface, but I have a feeling it's possible. I'm thinking it's part of a new configuration option "type" that allows you to define openers for categories of files (text,video,etc.)

I can get it out in a week ;)
philocalyst
·geçen yıl·discuss
Yep! Just added a clarification in the README.

After running `infat set IINA mov`: https://jezq5q9mfh.ufs.sh/f/Ii8qBn67qEOu1ZUKDXSn3BIE8fDuiWay...
philocalyst
·geçen yıl·discuss
No dependencies for install, just is the command runner I use to keep things organized, it's a replacement for make(1). If it hurts to download just, you can build using SPM:

swift build -c release

mv .build/PLATFORM/release/infat /usr/local/bin
philocalyst
·geçen yıl·discuss
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 :(
philocalyst
·geçen yıl·discuss
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?
philocalyst
·geçen yıl·discuss
I don't use nixpkgs personally but would love to give it a shot, check the repo in a day or two to give me some time to learn to ropes! I'll shoot you an email if I need any help :)
philocalyst
·geçen yıl·discuss
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.
philocalyst
·geçen yıl·discuss
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. :)))
philocalyst
·geçen yıl·discuss
Actually I did not! That's so great then -- maybe I'll just fork it and add skim support :)

Thanks