Recent submissions

Comment · 9 months ago
For me, it was how I learned Vim. The awkward keyboard pushed me towards learning more efficient keystrokes, so now I'm very comfortable with Vim.

I would learn it on the bus, and at the time I didn't have a data plan, so I could only access things I had already downloaded. The `:help` documentation is very thorough.

Comment · 1 year ago
It's actually a bit more nuanced: `:x` is like `:wq`, but only writes if changes have been made. `:x!` has the same semantics as `:wq!`.
Comment · 2 years ago
> Also, without some sort of indicator, Vim’s modal design is awkward here—it’s very easy to forget which mode you’re in.

With `bash`, you can show which mode you're in by putting this in your `~/.inputrc`:

    show-mode-in-prompt on
It makes your prompt look like this:

    [foo@bar ~]$ # before turning it on
    @[foo@bar ~]$ # after
    @[foo@bar ~]$ set -o vi
    (ins)[foo@bar ~]$ # and after I press esc:
    (cmd)[foo@bar ~]$
Customize these with `emacs-mode-string`, `vi-ins-mode-string`, and `vi-cmd-mode-string`.
Comment · 2 years ago
> [...] but I found it difficult to remember to put `;tput bel` on every command that would be slow [...]

What I do in these situations (assuming the job is still in the foreground, and can be interrupted), is suspend the task with ctrl+z and resume with `fg`, chaining it with some other command:

    fg; notify-send "done"
This uses the "job control" feature of `bash`, so it requires no extra setup. Your approach has the simple advantage however, that once it's set up, it just works, automatically.
Comment · 3 years ago
Cool. I didn't know about "Ctrl+T, Ctrl+Z"; I've always used "Alt+D, Alt+Enter" to duplicate tabs. This other shortcut might come in handy if I want to immediately edit the URL.
Comment · 3 years ago
Comment · 3 years ago
Lead sheets?
Comment · 3 years ago
This is incredible. I'm learning so much by just reading the source code and trying it out.
Comment · 4 years ago
Comment · 4 years ago
Comment · 4 years ago
Cascadia Mono/Code, depending if I feel like having ligatures:

https://github.com/microsoft/cascadia-code

It has the option to enable cursive italics, which is disabled by default. Been using it for over a year. No complaints.

Comment · 4 years ago
Another alternative is OpenWeatherMap: https://openweathermap.org/api/one-call-3

It's not quite a drop-in replacement, but it's pretty close. They have a free plan for 1,000 calls/day.

Comment · 4 years ago
Comment · 4 years ago
https://fraidyc.at/

It's a browser extension, and it's been very pleasant to use. I came across it on a previous Show HN post: https://news.ycombinator.com/item?id=22545878

Now if only it worked on mobile…

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton