Add patches from net/sacc - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
(HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
(DIR) Log
(DIR) Files
(DIR) Refs
---
(DIR) changeset dc1c3fef628754ee58e1aa697fc60ba7e769a879
(DIR) parent b163064f4326dcff9dbc64a8ba62a0053db8227c
(HTM) Author: Leonardo Taccari <iamleot@gmail.com>
Date: Sun, 16 Sep 2018 15:19:24
Add patches from net/sacc
Diffstat:
wip/sacc-git/patch-config.h | 29 +++++++++++++++++++++++++++++
wip/sacc-git/patch-ui_ti.c | 23 +++++++++++++++++++++++
2 files changed, 52 insertions(+), 0 deletions(-)
---
diff -r b163064f4326 -r dc1c3fef6287 wip/sacc-git/patch-config.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wip/sacc-git/patch-config.h Sun Sep 16 15:19:24 2018 +0200
@@ -0,0 +1,29 @@
+--- /dev/null 2018-02-25 12:15:26.521513477 +0100
++++ config.h 2018-02-25 12:14:26.218483032 +0100
+@@ -0,0 +1,26 @@
++/* See LICENSE file for copyright and license details. */
++
++/* Screen UI navigation keys */
++#define _key_lndown 'j' /* move one line down */
++#define _key_entrydown '\t' /* move to next link */
++#define _key_lnup 'k' /* move one line up */
++#define _key_entryup 'K' /* move to previous link */
++#define _key_pgdown ' ' /* move one screen down */
++#define _key_pgup 'b' /* move one screen up */
++#define _key_home 'g' /* move to the top of page */
++#define _key_end 'G' /* move to the bottom of page */
++#define _key_pgnext 'l' /* view highlighted item */
++#define _key_pgprev 'h' /* view previous item */
++#define _key_uri 'u' /* print item uri */
++#define _key_fetch 'L' /* refetch current item */
++#define _key_help '?' /* display help */
++#define _key_quit 'q' /* exit sacc */
++#define _key_search '/' /* search */
++#define _key_searchnext 'n' /* search same string forward */
++#define _key_searchprev 'N' /* search same string backward */
++
++/* default plumber */
++static char *plumber = "plumb";
++
++/* temporary directory */
++static char *tmpdir = "/tmp/sacc";
diff -r b163064f4326 -r dc1c3fef6287 wip/sacc-git/patch-ui_ti.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/wip/sacc-git/patch-ui_ti.c Sun Sep 16 15:19:24 2018 +0200
@@ -0,0 +1,23 @@
+$NetBSD$
+
+- Add support for Shift+Tab (^[[Z) to go to the previous entry.
+
+--- ui_ti.c.orig 2018-02-24 15:24:43.000000000 +0000
++++ ui_ti.c
+@@ -470,6 +470,8 @@ uiselectitem(Item *entry)
+ goto pgprev;
+ case 'H':
+ goto home;
++ case 'Z':
++ goto entryup;
+ case 0x1b:
+ goto quit;
+ }
+@@ -503,6 +505,7 @@ uiselectitem(Item *entry)
+ movecurline(entry, -1);
+ continue;
+ case _key_entryup:
++ entryup:
+ jumptoline(entry, nearentry(entry, -1), 1);
+ continue;
+ case _key_pgup: