Introduction
Introduction Statistics Contact Development Disclaimer Help
add keybinds to go one item up or down and open it - sfeed_curses - sfeed curse…
git clone git://git.codemadness.org/sfeed_curses
Log
Files
Refs
README
LICENSE
---
commit 26db62828804cef0fe6cc1db2afae6414311321e
parent 263fecaf915f6ae1ea2b2fea1f599502c9500b20
Author: Hiltjo Posthuma <[email protected]>
Date: Thu, 25 Mar 2021 22:42:00 +0100
add keybinds to go one item up or down and open it
Feedback idea from Hadrien Lacour, thanks!
Change the text in the man page for the new layouts, which can be horizontal
(up and down, instead of left and right):
"Focus pane to the left (feeds)." -> "Focus feeds pane."
"Focus pane to the right (items)." -> "Focus items pane."
Diffstat:
M sfeed_curses.1 | 10 +++++++---
M sfeed_curses.c | 6 ++++++
2 files changed, 13 insertions(+), 3 deletions(-)
---
diff --git a/sfeed_curses.1 b/sfeed_curses.1
@@ -1,4 +1,4 @@
-.Dd March 24, 2021
+.Dd March 25, 2021
.Dt SFEED_CURSES 1
.Os
.Sh NAME
@@ -49,10 +49,14 @@ and
Go one row up.
.It j, ARROW DOWN
Go one row down.
+.It K
+Go one row up and open the item.
+.It J
+Go one row down and open the item.
.It h, ARROW LEFT
-Focus pane to the left (feeds).
+Focus feeds pane.
.It l, ARROW RIGHT
-Focus pane to the right (items).
+Focus items pane.
.It TAB
Cycle focused pane (between feeds and items).
.It g
diff --git a/sfeed_curses.c b/sfeed_curses.c
@@ -2198,11 +2198,17 @@ main(int argc, char *argv[])
break;
keyup:
case 'k':
+ case 'K':
pane_scrolln(&panes[selpane], -1);
+ if (ch == 'K')
+ goto openitem;
break;
keydown:
case 'j':
+ case 'J':
pane_scrolln(&panes[selpane], +1);
+ if (ch == 'J')
+ goto openitem;
break;
keyleft:
case 'h':
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.