3 ms·
> You can double-click-to-highlight a ULID; the standard UUID representation doesn't like this. You can control this behavior in CSS with `user-select`. Peep m
by Lammy 2y ago
> You can double-click-to-highlight a ULID; the standard UUID representation doesn't like this.
You can control this behavior in CSS with `user-select`. Peep my fiddle: https://jsfiddle.net/gLyph5km/ https://jsfiddle.net/gLyph5km/
- eropple 2y agoYup, in a browser you can. In my terminal or my text editor or Slack, I can't.
- Lammy 2y agoYou're right that there isn't a good standard way to configure this, but a lot of terminals should be able to do it. The magic phrase is “word characters”. I know Konsole, gnome-terminal, iTerm2, Terminal-dot-app at least have this setting.
- eropple 2y agoYep, I know about that (and WORDCHARS in zsh, for keyboard navigation). The thing is, though, UUIDs overload the dash character. I don't want dashes to be word characters except for a UUID. (ULID representations also are shorter because they use a wider character set, which is nice though not critical.)