Hacker News new | past | comments | ask | show | jobs | submit | matijs's comments login

Absolutely matches your experience!

Also curious about the delightful type generation Astro uses.


`event.detail` [1] is 0 for keyboard “clicks” and 1 for pointer clicks.

1: https://developer.mozilla.org/en-US/docs/Web/API/UIEvent/det...


The whole point of the learning from this article is don’t use hacks and make assumptions about what is happening. This is not for that, this is about how many clicks happened. You might get away with it but it’s not good code.


I have this set as an alias:

difft = -c diff.external=difft diff

I may add a similar alias for delta


I’ve been planning a prodcast for a while now.


! Is for external commands. You can drop the !git from that alias.


Not if you're piping it to sed though, right?


Oh! Thanks for clarifying!


> because the global excludes file needs a config setting for it to even be considered

Using `~/.config/git/ignore` requires no extra setting.


Oh. TIL. Thank you


Out of curiosity, what editor do you use and how do you make sure 4. happens when for example using ‘save all’?


I'm currently using neovim so it is pretty trivial to add save hooks. Although the approach I am currently using is just a custom shortcut that saves all files and touches the file. This way only explicit saves by me trigger the rerun.

My current setup is documented here but it's easy to tweak to your prefered workflow. https://kevincox.ca/2022/06/14/small-tools/#w


GitHub does the same. There is a compare button that appears after a force (with-lease) push of a rebased branch.


And `ignoreboth` to combine the two.


Those files (and components) still need sensible names (that would make very nice class names).


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: