diff options
| author | Mitchell Riedstra <mitch@riedstra.dev> | 2023-02-04 22:02:09 -0500 |
|---|---|---|
| committer | Mitchell Riedstra <mitch@riedstra.dev> | 2023-02-04 22:23:21 -0500 |
| commit | e6bb137aa20133589079d1378ecef8f7f1e9a84f (patch) | |
| tree | 3b662ec202d3032b13ac85142532519e79929da7 /readme.md | |
| parent | cdda89a3c76fef80f29951389df88ed23d052d52 (diff) | |
| download | pm-e6bb137aa20133589079d1378ecef8f7f1e9a84f.tar.gz pm-e6bb137aa20133589079d1378ecef8f7f1e9a84f.tar.xz | |
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.
Diffstat (limited to 'readme.md')
| -rw-r--r-- | readme.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |
