summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3dd65d9)
raw | patch | inline | side by side (parent: 3dd65d9)
author | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 25 Sep 2007 10:15:22 +0000 (12:15 +0200) | ||
committer | Jonas Fonseca <fonseca@diku.dk> | |
Tue, 25 Sep 2007 10:15:22 +0000 (12:15 +0200) |
... and also refresh it after edits to capture any changes in the
working tree.
working tree.
tig.c | patch | blob | history |
index 620f14b39d1d0f8e5b2f31bbbed0772af311449d..7c4afae8cdd4632369076e4e52a78775ce8f9beb 100644 (file)
--- a/tig.c
+++ b/tig.c
REQ_(NEXT, "Move to next"), \
REQ_(PREVIOUS, "Move to previous"), \
REQ_(VIEW_NEXT, "Move focus to next view"), \
+ REQ_(REFRESH, "Reload and refresh"), \
REQ_(VIEW_CLOSE, "Close the current view"), \
REQ_(QUIT, "Close all views and quit"), \
\
{ KEY_RETURN, REQ_ENTER },
{ KEY_UP, REQ_PREVIOUS },
{ KEY_DOWN, REQ_NEXT },
+ { 'R', REQ_REFRESH },
/* Cursor navigation */
{ 'k', REQ_MOVE_UP },
report("");
break;
}
+ case REQ_REFRESH:
+ report("Refreshing is not yet supported for the %s view", view->name);
+ break;
+
case REQ_TOGGLE_LINENO:
opt_line_number = !opt_line_number;
redraw_display();
return request;
open_editor(status->status != '?', status->name);
+ open_view(view, REQ_VIEW_STATUS, OPEN_RELOAD);
break;
case REQ_ENTER:
status_enter(view, line);
break;
+ case REQ_REFRESH:
+ open_view(view, REQ_VIEW_STATUS, OPEN_RELOAD);
+ break;
+
default:
return request;
}