commit - d8b5af438b16bcea5568b1d4bfc127567e35e2f6
commit + 6141756554c6ee1a8a23728658279ef5e16262a0
blob - 31dd5084aea96d44619fbb6cccdbd3f12ca27915
blob + ccc38d4c5d675293f415ff2696edfd596fbb3220
--- tog/tog.1
+++ tog/tog.1
Quit the view which is in focus.
.It Cm Tab
Switch focus between views.
-.It Cm f
+.It Cm F
Toggle fullscreen mode for a split-screen view.
.Nm
will automatically use split-screen views if the size of the terminal
Scroll log message field to the rightmost position.
.It Cm 0
Scroll log message field to the leftmost position.
-.It Cm Page-down, Ctrl+f
+.It Cm Page-down, Ctrl+f, f
Move the selection cursor down one page.
-.It Cm Page-up, Ctrl+b
+.It Cm Page-up, Ctrl+b, b
Move the selection cursor up one page.
.It Cm Ctrl+d, d
Move the selection cursor down one half page.
Scroll view to the rightmost position.
.It Cm 0
Scroll view left to the start of the line.
-.It Cm Page-down, Space, Ctrl+f
+.It Cm Page-down, Space, Ctrl+f, f
Scroll down one page.
-.It Cm Page-up, Ctrl+b
+.It Cm Page-up, Ctrl+b, b
Scroll up one page.
.It Cm Ctrl+d, d
Scroll down one half page.
Scroll view to the rightmost position.
.It Cm 0
Scroll view left to the start of the line.
-.It Cm Page-down, Space, Ctrl+f
+.It Cm Page-down, Space, Ctrl+f, f
Move the selection cursor down one page.
-.It Cm Page-up, Ctrl+b
+.It Cm Page-up, Ctrl+b, b
Move the selection cursor up one page.
.It Cm Ctrl+d, d
Move the selection cursor down one half page.
Open a
.Cm diff
view for the currently selected line's commit.
-.It Cm b
+.It Cm c
Reload the
.Cm blame
view with the version of the file as found in the currently
.Cm blame
view with the version of the file as found in the parent commit of the
currently selected line's commit.
-.It Cm B
+.It Cm C
Reload the
.Cm blame
view with the previously blamed commit.
Move the selection cursor down.
.It Cm Up-arrow, k, Ctrl-p
Move the selection cursor up.
-.It Cm Page-down, Ctrl+f
+.It Cm Page-down, Ctrl+f, f
Move the selection cursor down one page.
-.It Cm Page-up, Ctrl+b
+.It Cm Page-up, Ctrl+b, b
Move the selection cursor up one page.
.It Cm Ctrl+d, d
Move the selection cursor down one half page.
Move the selection cursor down.
.It Cm Up-arrow, k, Ctrl-p
Move the selection cursor up.
-.It Cm Page-down, Ctrl+f
+.It Cm Page-down, Ctrl+f, f
Move the selection cursor down one page.
-.It Cm Page-up, Ctrl+b
+.It Cm Page-up, Ctrl+b, b
Move the selection cursor up one page.
.It Cm Ctrl+d, d
Move the selection cursor down one half page.
blob - b8935d8f4d93a4f03c1d8727adb23a6137741acf
blob + d375738b1b19d5bba6c0e4fe547d3ddbf4bb8ec9
--- tog/tog.c
+++ tog/tog.c
case 'Q':
*done = 1;
break;
- case 'f':
+ case 'F':
if (view_is_parent_view(view)) {
if (view->child == NULL)
break;
/* FALL THROUGH */
case KEY_PPAGE:
case CTRL('b'):
+ case 'b':
if (s->first_displayed_entry == NULL)
break;
if (TAILQ_FIRST(&s->commits.head) == s->first_displayed_entry)
nscroll /= 2;
/* FALL THROUGH */
case KEY_NPAGE:
- case CTRL('f'): {
+ case CTRL('f'):
+ case 'f': {
struct commit_queue_entry *first;
first = s->first_displayed_entry;
if (first == NULL)
}
if (width0 + w + width > skipcol)
break;
- w += width;
+ w += width;
i++;
}
/* draw (visible part of) matched token (if scrolled into it) */
/* FALL THROUGH */
case KEY_PPAGE:
case CTRL('b'):
+ case 'b':
if (s->first_displayed_line == 1)
break;
i = 0;
/* FALL THROUGH */
case KEY_NPAGE:
case CTRL('f'):
+ case 'f':
case ' ':
if (s->eof)
break;
/* FALL THROUGH */
case KEY_PPAGE:
case CTRL('b'):
+ case 'b':
if (s->first_displayed_line == 1) {
s->selected_line = MAX(1, s->selected_line - nscroll);
break;
s->blame.nlines)
s->first_displayed_line++;
break;
- case 'b':
+ case 'c':
case 'p': {
struct got_object_id *id = NULL;
id = get_selected_commit_id(s->blame.lines, s->blame.nlines,
break;
break;
}
- case 'B': {
+ case 'C': {
struct got_object_qid *first;
first = STAILQ_FIRST(&s->blamed_commits);
if (!got_object_id_cmp(&first->id, s->commit_id))
/* FALL THROUGH */
case KEY_NPAGE:
case CTRL('f'):
+ case 'f':
case ' ':
if (s->last_displayed_line >= s->blame.nlines &&
s->selected_line >= MIN(s->blame.nlines,
/* FALL THROUGH */
case KEY_PPAGE:
case CTRL('b'):
+ case 'b':
if (s->tree == s->root) {
if (got_object_tree_get_first_entry(s->tree) ==
s->first_displayed_entry)
/* FALL THROUGH */
case KEY_NPAGE:
case CTRL('f'):
+ case 'f':
if (got_tree_entry_get_next(s->tree, s->last_displayed_entry)
== NULL) {
/* can't scroll any further; move cursor down */
/* FALL THROUGH */
case KEY_PPAGE:
case CTRL('b'):
+ case 'b':
if (s->first_displayed_entry == TAILQ_FIRST(&s->refs))
s->selected -= MIN(nscroll, s->selected);
ref_scroll_up(s, MAX(0, nscroll));
/* FALL THROUGH */
case KEY_NPAGE:
case CTRL('f'):
+ case 'f':
if (TAILQ_NEXT(s->last_displayed_entry, entry) == NULL) {
/* can't scroll any further; move cursor down */
if (s->selected < s->ndisplayed - 1)