mklein994's comments
mklein994 | 8 months ago | on: Using Microsoft's New CLI Text Editor on Ubuntu
mklein994 | 1 year ago | on: Things you didn't know about GNU readline (2019)
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`.mklein994 | 2 years ago | on: Let the terminal bells ring out
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.mklein994 | 2 years ago | on: Navigational Instruments (2020)
mklein994 | 2 years ago | on: Lazygit: Simple terminal UI for Git commands
git commit --fixup=':/message regexp'
This will find the youngest commit where the message matches the "message regexp" pattern.
See also: https://git-scm.com/docs/gitrevisionsmklein994 | 3 years ago | on: TablEdit – Music Tablature Editor
mklein994 | 3 years ago | on: Solving Advent of Code with jq
mklein994 | 3 years ago | on: The Perfect Commit
If I were to apply this patch, this commit will…
- Simplify FooWidget
- Add optional table support
- Remove trailing whitespace
- Update fizzbuzz to 1.2.0
- Merge branch 'feature/ABC-123-foobar'
- Revert "Add foo to bar"
mklein994 | 3 years ago | on: Brickit scans your pile of bricks and gives you ideas, with instructions
mklein994 | 3 years ago | on: Ask HN: What is your default font for coding and terminal?
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.
mklein994 | 3 years ago | on: Dark Sky Has a New Home (2020)
It's not quite a drop-in replacement, but it's pretty close. They have a free plan for 1,000 calls/day.
mklein994 | 3 years ago | on: Syntax highlighting on the web
mklein994 | 3 years ago | on: Ask HN: What are you using for a RSS Reader?
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…
mklein994 | 4 years ago | on: Highlights from Git 2.35
Sweet! I've been wanting this feature for a while.
See also:
https://raw.github.com/git/git/master/Documentation/RelNotes...
mklein994 | 5 years ago | on: Show HN: I wrote a program to convert lines of text into trees
Somewhat unrelated: I discovered some time ago that the column command (from util-linux) can print trees of hierarchical data (up to 2 levels deep).
From the man page:
$ echo -e '1 0 A\n2 1 AA\n3 1 AB\n4 2 AAA\n5 2 AAB' | column --tree-id 1 --tree-parent 2 --tree 3
1 0 A
2 1 |-AA
4 2 | |-AAA
5 2 | `-AAB
3 1 `-AB
column(1): https://github.com/karelzak/util-linux/blob/master/text-util...mklein994 | 5 years ago | on: A Vim Guide for Advanced Users
mklein994 | 5 years ago | on: A Vim Guide for Advanced Users
It should actually say VISUAL BLOCK mode. This is where you use `CTRL-v` to select a block of text. You can read more in `:help blockwise-visual`.
Also see the 'nrformats' option: `:help 'nrformats'`. You can include alphabetic characters to do the same thing with A-Z, for example.
mklein994 | 5 years ago | on: Networking Tools Every Developer Needs to Know
mklein994 | 5 years ago | on: This is how I git
This will "REuse REcorded REsolutions" of conflicted merges.
Once enabled, it will record how a merge conflict was resolved, and replay it back the next time it encounters it. Saves a lot of time in cases where you already solved the merge once before.
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.