Email or username:

Password:

Forgot your password?
29 posts total
Sindre Sorhus

Gonna make my sindresorhus.com/online-check app paid tomorrow, so now is the time to download it if you want it for free.

Brendan (he/him)

@sindresorhus
I love this app. Clean, simple. Does just one thing but does it well.
10/10. No notes.

Sindre Sorhus

Why? It didn't reach the success I had hoped for and I want to reduce support (and troll) burden.

Sindre Sorhus

Be the change you want to see in the world. Start by changing your editor settings from spaces to tabs.

Show previous comments
Jay Hannah

@sindresorhus now my workplace’s git pre-commit hooks replace all my code anyway.
Starting to think my decades long holy crusade was… silly?

Sindre Sorhus

Be the change you want to see in the world. Start by changing your editor settings from spaces to tabs.

Show previous comments
Jay Hannah

@sindresorhus now my workplace’s git pre-commit hooks replace all my code anyway.
Starting to think my decades long holy crusade was… silly?

Sindre Sorhus

How come there is no proper HTML dropdown component that displays a system menu when clicked?

By system menu, I mean how it looks when you right-click, but I'm specifically looking for left-click menu.

We have `<select>` for selections, but nothing to pop up a dropdown with actions. I'm aware I can hack `<select>` to do that. That's exactly what I did. But it's ain't easy or pretty.

And no, not `<dialog>`.

Show previous comments
Moritz G.

@sindresorhus Like somebody already said, there was an implementation of something like this in Firefox where you could add your own options to the native menu. All the other options suppress the native context menu which I think is not optimal, but it works in some app like contexts, like Nextcloud or VSCode

Sindre Sorhus

Reason #4221 why I prefer native development 🤷‍♂️

AK

@sindresorhus or a typeahead multi select... so much design system effort goes towards implementing that one component

Sindre Sorhus

How come there is no proper HTML dropdown component that displays a system menu when clicked?

By system menu, I mean how it looks when you right-click, but I'm specifically looking for left-click menu.

We have `<select>` for selections, but nothing to pop up a dropdown with actions. I'm aware I can hack `<select>` to do that. That's exactly what I did. But it's ain't easy or pretty.

And no, not `<dialog>`.

Show previous comments
Moritz G.

@sindresorhus Like somebody already said, there was an implementation of something like this in Firefox where you could add your own options to the native menu. All the other options suppress the native context menu which I think is not optimal, but it works in some app like contexts, like Nextcloud or VSCode

Sindre Sorhus

Reason #4221 why I prefer native development 🤷‍♂️

AK

@sindresorhus or a typeahead multi select... so much design system effort goes towards implementing that one component

Sindre Sorhus

I added a random app endpoint to my website: sindresorhus.com/apps/random

Shows you a random app each time you click it.

Jon Koops 🇪🇺

@sindresorhus looks like there is an xdg portal available for this, not sure how many desktop environments make use of this, but al least GNOME.

github.com/flatpak/xdg-desktop

Thomas Hunter II

@sindresorhus I think this video of Linus would resonate:
m.youtube.com/watch?v=Pzl1B7nB

The gist being that Linux is ultimately too fractured. There is a Linux Desktop Diaspora, if you will.

Sindre Sorhus

Some Apple apps use an entitlement that gives them access to calendar and contacts without a privacy prompt. Even Apple knows the privacy prompts are dumb.

Sindre Sorhus

Good thing competition is on equal ground 🤷‍♂️

John-Mark Gurney

@sindresorhus
Alt text:

Screenshot that reads:
v com.apple.private.tcc.allow 3 items

kTCCServiceCalendar kTCCServiceAddressBook kTCCServicePhotos

Sindre Sorhus

My GIF searcher app, Jiffy, will unfortunately be sunset at the end of the month. Giphy is soon removing their free API tier.

sindresorhus.com/jiffy

Lesson learned (too many times). Don't depend on free APIs.

I may bring it back some day using the Tenor API, but I don't have the time or interest in rewriting it right now. And Tenor is yet another API which could become paid one day.

Show previous comments
Jay Miller

@sindresorhus @podfeet It would seem I need to check back in with all things podfeet. I spent a good 2-3 hours yesterday learning some lua trying to pass a NVIM selection into Tenor to speed up writing blog posts.

Marcus Eckert

@sindresorhus how do you know they're going to charge? Some secret source? can't find anything. I'm also using their api...

Sindre Sorhus

I know, I know, "security." This shows utter contempt for the user.

I was just asked to authorize an app that I've used SINCE THE 1990s so it would continue working for a week. And next week I guess it'll ask again?

You have to let the user say, somewhere, "never ask me again--always allow."
mastodon.online/@9to5Mac/11291

Show previous comments
John Socks

@jsnell so, I don't use Macs, and I am pretty much an outside observer.

To be honest this (admittedly strange) solution makes me wonder, what the heck are they responding to?

Have there been some particularly horrific crimes? Theft of plain people's money? Or has this led to hacks of Apple itself!

Maybe if the crimes were bad enough the heavy hammer is justified.

Chris Adams

@jsnell @nicklockwood @9to5Mac personally, I agree but there are problems like spyware which get nasty (did “you” approve it or was that your abusive spouse when you used the bathroom?) which makes me wish they had put the effort into visibility so there isn’t a way to capture the screen without user awareness.

.

@jsnell it’s the same as on iOS where it asks you for continuing confirmation about location-tracking or background-refresh permissions. Not exactly intrusive and helps stop the “grant all permissions to everything, forever” mindset.

Sindre Sorhus

Quite late to the party, but I finally replaced Bartender on my Mac with a combination of these little status bar utilities:

Vanilla by Matthew Palmer for hiding some icons:
matthewpalmer.net/vanilla/

Menu Bar Spacing by @sindresorhus for narrowing down the spacing:
sindresorhus.com/menu-bar-spac

Spaced by @sindresorhus for visually grouping icons:
sindresorhus.com/spaced

So happy with the new setup!

Quite late to the party, but I finally replaced Bartender on my Mac with a combination of these little status bar utilities:

Vanilla by Matthew Palmer for hiding some icons:
matthewpalmer.net/vanilla/

Menu Bar Spacing by @sindresorhus for narrowing down the spacing:
sindresorhus.com/menu-bar-spac

Sindre Sorhus

Is there any AI service where I can feed it all my open source projects and then ask questions about them?

Show previous comments
Brahn

@sindresorhus I use this github.com/simonw/files-to-pro all the time to bundle up repositories and shove them into 4o or sonnet. @simon has several utilities that are great for this. ttok and strip-tags too.

Otherwise I use typingmind.com and the (VERY) basic RAG to give me some control over what is pulled into chat.

Uhl Albert

@sindresorhus Greptile AI does that: greptile.com/

As a new developer, I used it to understand a large open-source codebase that was too big for other AI chats. Greptile answered my basic questions which led to a successful PR for a bug fix.

But for my personal (small) SwiftUI projects, I prefer ChatGPT and Claude AI. It's easier to just drag and drop my latest files from Xcode's Project navigator to keep those chats updated. Greptile seems to be most useful with large projects.

Erfin

@sindresorhus is there any way for us to pass an mp3 through this for analysis? :-)

T. Körner • LSA • ☑️

@sindresorhus Did I understand correctly that you can use it to create Siri shortcuts?

Sindre Sorhus

New app:

Menu Bar Spacing

Customize the gap between menu bar items

MacBooks have limited menu bar space. This app reclaims space by reducing the gap between menu bar items.

sindresorhus.com/menu-bar-spac

Sindre Sorhus

This could eliminate the need for Bartender/Ice for some users.

And it can also let you fit more of my menu bar apps in your menu bar: sindresorhus.com/apps/menu-bar

RobLoach

@sindresorhus Fun fact: This can be done in Linux with CSS via Gnome Shell.

Sindre Sorhus

New app:

Online Check — See whether you are online or not directly in the menu bar

sindresorhus.com/online-check

Show previous comments
Owen 🇦🇺 

@sindresorhus Cool, I’ll probably use this app.

Suggestion - if you could add links to open network and/or wi-fi settings I could probably remove the wi-fi icon from my menu bar and just use this app instead 😊

Braw ☕🏳️‍🌈

@sindresorhus as a non-mac user, surprised to hear this isn't something already provided by the OS...

sweet app, though! love small utilities like this—focused on one particular thing, nothing more, nothing less :)

podfeet

@sindresorhus Cool! I noticed that if online-check isn’t in the main menu bar but rather in Bartender’s secondary bar, it doesn’t turn red when my Mac is offline. It _does_ turn red when in the main menu bar. Is that expected behavior?

Sindre Sorhus

I published a TestFlight for a early Gifski 3 build, now rewritten in SwiftUI. The initial goal was feature parity. Moving forward, it will be much easier to add new features.

testflight.apple.com/join/iCyH

Jason Morley

@sindresorhus How often do you find yourself bumping up against the edges of SwiftUI on macOS? I hit them often and wonder if I'm just holding it wrong…

Go Up