Closed andrewshadura closed 1 year ago
Hi @andrewshadura thank you for the patch. Once I get to test it also on macOS chances are high this will get applied.
I'm not familiar with Python nor Rust, but if you can implement the same with less LOC, why not? Go for it.
-z
instead of old-school empty string comparison: This hasn’t been needed since POSIX standardised the behaviour oftest
.command -v
instead of non-standardwhich
: unlikewhich
,command
is a shell built-in~/.fnt
before each write: this avoids an error message if e.g. runningpreview
beforeupdate
.Also: how about rewriting
fnt
in a more sensible programming language, e.g. Python or Rust? 🙂