Commit 38ce06e0433dbfa9ac9476741db567062839dcef

Stefan Sperling 2018-09-24T10:48:21

use ~ instead of backspace for cycling views backwards in tog

diff --git a/tog/tog.1 b/tog/tog.1
index 35d9972..09b58a6 100644
--- a/tog/tog.1
+++ b/tog/tog.1
@@ -65,7 +65,7 @@ Quit the view which is in focus.
 .It Cm Tab
 Switch focus to the next view.
 Cycles through all open views.
-.It Cm Backspace
+.It Cm ~
 Switch focus to the previous view.
 Cycles through all open views.
 .El
diff --git a/tog/tog.c b/tog/tog.c
index b727865..fbbf952 100644
--- a/tog/tog.c
+++ b/tog/tog.c
@@ -395,7 +395,7 @@ view_input(struct tog_view **new, struct tog_view **dead,
 			view->focussed = 0;
 			(*focus)->focussed = 1;
 			break;
-		case KEY_BACKSPACE:
+		case '~':
 			prev = TAILQ_PREV(view, tog_view_list_head, entry);
 			if (prev)
 				*focus = prev;