From e6bb137aa20133589079d1378ecef8f7f1e9a84f Mon Sep 17 00:00:00 2001 From: Mitchell Riedstra Date: Sat, 4 Feb 2023 22:02:09 -0500 Subject: Switch formatting from AWK to a C program. Due mostly to poor performance, calling out to the shell for time formatting quickly degrades in performance with a large list, this solves that problem. Yes, `gawk` has strftime, no, I don't want to use gawk. --- readme.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'readme.md') diff --git a/readme.md b/readme.md index 6597f97..1ffbda7 100644 --- a/readme.md +++ b/readme.md @@ -8,8 +8,8 @@ This is *NOT* for passwords. Do *NOT* use it for them. See my own [`dpw`](https://git.riedstra.dev/mitch/dpw/about/) or [pass](https://www.passwordstore.org/) for a solution there. -Date formatting is a bit of a pain, so there's a `strftime` command line utility -that's bundled, yes `gawk` provides `strftime` but that's not on every system. +Output is controlled via a small c program called `pm-fmtdb`, see the top +of the file for adjusting the format. Works best with `dmenu` fuzzy finder patch. Utilizes list mode by default. @@ -53,8 +53,8 @@ leave it set to clipboard, the default. Edit the source code for further tweaks. The one people may have the most -interest in is the format sent to `dmenu`, that's controlled via the `awk` script -in the `awkPrettyPrint` variable near the top. +interest in is the format sent to `dmenu`, that's controlled via the small c +program 'pm-fmtdb' near the top of the file. ## Bugs -- cgit v1.2.3