12 ms·
> i can write some configuration to hook a shell command to a bind is `reflow` a binary that comes with kakoune or something?
by llimllib 1y ago
> i can write some configuration to hook a shell command to a bind
is `reflow` a binary that comes with kakoune or something?
- andrewflnr 1y ago'|' is the command to pipe a selection through a shell command and replace it with the output, so I guess it's just a regular command on their system. You could use any other reflow or reformatting program you had handy. Kakoune in particular is really serious about delegating everything possible to the system.
- llimllib 1y agoI’m curious about the particular program though! On my Mac it doesn’t exist and I didn’t find it in a quick search
- andrewflnr 1y agoHonestly, it might have just been a placeholder name for an arbitrary formatter. I vaguely remember old-school unix had a command for that, but none of them seem to be named exactly "reflow".
- mackeye 1y agoapologies, i probably should've written `fmt` there (which does the same thing). `reflow` is a `fmt` clone i wrote, without the knowledge `fmt` existed --- that was a bit embarrassing for a friend to eventually point out, that my idea was already in coreutils :D i use `fmt` now because i figure it's far better tested (i think it's posix), but i still think of the action as a "reflow", and that's also the term helix uses.