summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9e21ce5)
raw | patch | inline | side by side (parent: 9e21ce5)
author | Jonas Fonseca <fonseca@diku.dk> | |
Fri, 8 Sep 2006 17:04:55 +0000 (19:04 +0200) | ||
committer | Jonas Fonseca <fonseca@antimatter.localdomain> | |
Fri, 8 Sep 2006 17:07:24 +0000 (19:07 +0200) |
Promote it as a way to unbind built-in default key bindings.
tig.c | patch | blob | history | |
tigrc.5.txt | patch | blob | history |
index 7b8fc7dd84e6107f90ab3257eed5587c098e601d..089a567ce0b9151cea3b5bdffffdaa0c61e20f84 100644 (file)
--- a/tig.c
+++ b/tig.c
REQ_(SCROLL_PAGE_DOWN, "Scroll one page down"), \
\
REQ_GROUP("Misc") \
+ REQ_(NONE, "Do nothing"), \
REQ_(PROMPT, "Bring up the prompt"), \
- REQ_(SCREEN_UPDATE, "Update the screen"), \
REQ_(SCREEN_REDRAW, "Redraw the screen"), \
REQ_(SCREEN_RESIZE, "Resize the screen"), \
REQ_(SHOW_VERSION, "Show version information"), \
{ ':', REQ_PROMPT },
/* wgetch() with nodelay() enabled returns ERR when there's no input. */
- { ERR, REQ_SCREEN_UPDATE },
+ { ERR, REQ_NONE },
- /* Use the ncurses SIGWINCH handler. */
+ /* Using the ncurses SIGWINCH handler. */
{ KEY_RESIZE, REQ_SCREEN_RESIZE },
};
redraw_display();
break;
- case REQ_SCREEN_UPDATE:
+ case REQ_NONE:
doupdate();
return TRUE;
break;
}
- request = REQ_SCREEN_UPDATE;
+ request = REQ_NONE;
break;
}
case REQ_SCREEN_RESIZE:
diff --git a/tigrc.5.txt b/tigrc.5.txt
index 3b4b7a2740c4d6ad4480ae83bc31d78dd93336db..354d46f30c9c195188cd036753e8a15a302ef82f 100644 (file)
--- a/tigrc.5.txt
+++ b/tigrc.5.txt
bind diff a previous
bind diff d next
bind diff b move-first-line
+ # 'unbind' the default quit key binding
+ bind main Q none
--------------------------------------------------------------------------
Keys are mapped by first searching the keybindings for the current view, then
endif::backend-xhtml11[]
Misc:
------------------------------------------------------------------------------
+none Do nothing
prompt Bring up the prompt
-screen-update Update the screen
screen-redraw Redraw the screen
screen-resize Resize the screen
show-version Show version information