From dd056331a232062b215959b39900f0c986a6ca56 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sat, 29 Sep 2018 16:29:41 -0400 Subject: Add f and ' to psfed --- bin/man/psfed.1 | 6 ++++++ bin/psfed.c | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/bin/man/psfed.1 b/bin/man/psfed.1 index bd15d897..f0709594 100644 --- a/bin/man/psfed.1 +++ b/bin/man/psfed.1 @@ -61,6 +61,12 @@ Select previous/next glyph. .It Ic k Ic j Select glyph in previous/next row. . +.It Ic f +Select glyph of next input character. +. +.It Ic ' +Return to previously selected glyph. +. .It Ic y Copy selected glyph. . diff --git a/bin/psfed.c b/bin/psfed.c index 4fbfb402..3b67c1b1 100644 --- a/bin/psfed.c +++ b/bin/psfed.c @@ -252,6 +252,8 @@ static struct { uint32_t scale; uint32_t index; bool modified; + bool to; + uint32_t from; } normal; static struct { @@ -292,6 +294,13 @@ static void normalPrint(const char *prefix) { } static void inputNormal(char ch) { + if (normal.to) { + if (ch < header.glyph.len) normal.index = ch; + normalPrint("index"); + normal.to = false; + return; + } + switch (ch) { break; case 'q': { if (!normal.modified) exit(EX_OK); @@ -308,6 +317,8 @@ static void inputNormal(char ch) { break; case 'l': normalInc(1); normalPrint("index"); break; case 'k': normalDec(NormalCols); normalPrint("index"); break; case 'j': normalInc(NormalCols); normalPrint("index"); + break; case 'f': normal.from = normal.index; normal.to = true; + break; case 047: normal.index = normal.from; normalPrint("index"); break; case 'y': { if (!edit.copy) edit.copy = malloc(header.glyph.size); if (!edit.copy) err(EX_OSERR, "malloc"); -- cgit 1.4.1 id' value='36e3e016edf8b8068aa7c5e9f188159ee4d4e2fb'/>
path: root/compat (unfollow)
Commit message (Collapse)Author
2022-03-21Import LibreSSL 3.5.1June McEnroe
2022-02-27doc: Note OpenSSL 3.0.0 compatibility in README 3.5.0June McEnroe
2022-02-27tls_signer: Replace ECDSA_METHOD with EC_KEY_METHODJune McEnroe
2022-02-27tls: Replace ECDSA_METHOD with EC_KEY_METHODJune McEnroe
2022-02-27Import LibreSSL 3.5.0June McEnroe
2021-11-29tls: Revert accidentally(?) reverted upstream 3.4.2June McEnroe
2021-11-29Import LibreSSL 3.4.2June McEnroe
2021-10-14Import LibreSSL 3.4.1June McEnroe
2021-09-17Import LibreSSL 3.4.0June McEnroe
2021-08-24Import LibreSSL 3.3.4June McEnroe
2021-05-25Bump version to 3.3.3p1 3.3.3p1June McEnroe
2021-05-25build: Add scripts to EXTRA_DISTJune McEnroe
2021-05-25import: Add missing scripts/wrap-compiler-for-flag-checkJune McEnroe
2021-05-08Import LibreSSL 3.3.3June McEnroe
2021-04-18build: Remove added x509_verify.3 links 3.3.2June McEnroe
2021-04-18tls: Use EC_KEY_set_ex_dataJune McEnroe
2021-04-18Import LibreSSL 3.3.2June McEnroe
2021-03-05Bump version to 3.3.1p1 3.3.1p1June McEnroe
2021-03-05build: Add OpenSSL includes to libcompatJune McEnroe
Some compat sources (getentropy_linux.c for example) require OpenSSL. Reported by Robert Scheck.
2020-12-15Import LibreSSL 3.3.1June McEnroe
2020-11-24Import LibreSSL 3.3.0June McEnroe
2020-10-22Import LibreSSL 3.2.2June McEnroe
2020-09-29Import LibreSSL 3.2.1June McEnroe
2020-09-29import: Add m4/ax_add_fortify_source.m4June McEnroe
2020-08-05build: Add README.7 to EXTRA_DIST 3.2.0June McEnroe
2020-08-03doc: Indicate that only OpenSSL 1.1.1b and newer workJune McEnroe