summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-04-18 12:56:21 +0200
committerSebastien Helleu <flashcode@flashtux.org>2008-04-18 12:56:21 +0200
commitb31c3efc8afafea429b11644e3509bda76188558 (patch)
tree47a5f29ecf4ad7dbc6d708066771cfa8d10b6261 /src/core
parente349ae491a9ce9bebd38b14e41c95aabe694a7ed (diff)
downloadweechat-b31c3efc8afafea429b11644e3509bda76188558.zip
Use of /window command for some key bindings with actions on current window (like scroll, ..)
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-command.c105
1 files changed, 105 insertions, 0 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index a90fe99eb..bbbb977eb 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -2204,6 +2204,111 @@ command_window (void *data, struct t_gui_buffer *buffer,
return WEECHAT_RC_OK;
}
+ /* page up in current window */
+ if (string_strcasecmp (argv[1], "page_up") == 0)
+ {
+ gui_window_page_up (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* page down in current window */
+ if (string_strcasecmp (argv[1], "page_down") == 0)
+ {
+ gui_window_page_down (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* scroll up current window */
+ if (string_strcasecmp (argv[1], "scroll_up") == 0)
+ {
+ gui_window_scroll_up (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* scroll down current window */
+ if (string_strcasecmp (argv[1], "scroll_down") == 0)
+ {
+ gui_window_scroll_down (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* scroll to top of current window */
+ if (string_strcasecmp (argv[1], "scroll_top") == 0)
+ {
+ gui_window_scroll_top (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* scroll to bottom of current window */
+ if (string_strcasecmp (argv[1], "scroll_bottom") == 0)
+ {
+ gui_window_scroll_bottom (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* scroll to previous highlight of current window */
+ if (string_strcasecmp (argv[1], "scroll_previous_highlight") == 0)
+ {
+ gui_window_scroll_previous_highlight (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* scroll to next highlight of current window */
+ if (string_strcasecmp (argv[1], "scroll_next_highlight") == 0)
+ {
+ gui_window_scroll_next_highlight (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* scroll topic left for current window */
+ if (string_strcasecmp (argv[1], "scroll_topic_left") == 0)
+ {
+ gui_window_scroll_topic_left (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* scroll topic right for current window */
+ if (string_strcasecmp (argv[1], "scroll_topic_right") == 0)
+ {
+ gui_window_scroll_topic_right (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* page up for nicklist in current window */
+ if (string_strcasecmp (argv[1], "nicklist_page_up") == 0)
+ {
+ gui_window_nicklist_page_up (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* page down for nicklist in current window */
+ if (string_strcasecmp (argv[1], "nicklist_page_down") == 0)
+ {
+ gui_window_nicklist_page_down (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* beginning of nicklist for current window */
+ if (string_strcasecmp (argv[1], "nicklist_beginning") == 0)
+ {
+ gui_window_nicklist_beginning (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* end of nicklist for current window */
+ if (string_strcasecmp (argv[1], "nicklist_end") == 0)
+ {
+ gui_window_nicklist_end (gui_current_window);
+ return WEECHAT_RC_OK;
+ }
+
+ /* refresh screen */
+ if (string_strcasecmp (argv[1], "refresh") == 0)
+ {
+ gui_window_refresh_screen (1);
+ return WEECHAT_RC_OK;
+ }
+
/* split window horizontally */
if (string_strcasecmp (argv[1], "splith") == 0)
{