summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2014-03-19 10:15:57 +0100
committerSebastien Helleu <flashcode@flashtux.org>2014-03-19 10:15:57 +0100
commitbc96d2f1ec4bcba58aab03042a9266842a42cfcb (patch)
treec0a35a7ca920e2b95157ef7ed69b4be5a51a5d07 /src/gui
parentdac4d3a06a2535058a7a8d1b55eb62b1e144dcbf (diff)
downloadweechat-bc96d2f1ec4bcba58aab03042a9266842a42cfcb.zip
core: add key alt-j,alt-f to jump to first buffer, change command for jump to last buffer
New key alt-j,alt-f is bound by default to "/buffer -". The existing key alt-j,alt-l is now bound by default to "/buffer +".
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/curses/gui-curses-key.c3
-rw-r--r--src/gui/gui-input.c18
-rw-r--r--src/gui/gui-input.h1
3 files changed, 2 insertions, 20 deletions
diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c
index c28ae8f8c..167c821a6 100644
--- a/src/gui/curses/gui-curses-key.c
+++ b/src/gui/curses/gui-curses-key.c
@@ -132,7 +132,8 @@ gui_key_default_bindings (int context)
BIND(/* ^down */ "meta-OB", "/input history_global_next");
BIND(/* ^down */ "meta2-1;5B", "/input history_global_next");
BIND(/* m-a */ "meta-a", "/input jump_smart");
- BIND(/* m-j,m-l */ "meta-jmeta-l", "/input jump_last_buffer");
+ BIND(/* m-j,m-f */ "meta-jmeta-f", "/buffer -");
+ BIND(/* m-j,m-l */ "meta-jmeta-l", "/buffer +");
BIND(/* m-j,m-r */ "meta-jmeta-r", "/server raw");
BIND(/* m-j,m-s */ "meta-jmeta-s", "/server jump");
BIND(/* m-h */ "meta-h", "/input hotlist_clear");
diff --git a/src/gui/gui-input.c b/src/gui/gui-input.c
index 47412201d..d34886be5 100644
--- a/src/gui/gui-input.c
+++ b/src/gui/gui-input.c
@@ -1422,24 +1422,6 @@ gui_input_jump_smart (struct t_gui_buffer *buffer)
}
/*
- * Jumps to last buffer (default key: meta-j, meta-l).
- */
-
-void
-gui_input_jump_last_buffer (struct t_gui_buffer *buffer)
-{
- struct t_gui_window *window;
-
- window = gui_window_search_with_buffer (buffer);
- if (window
- && (window->buffer->text_search == GUI_TEXT_SEARCH_DISABLED)
- && last_gui_buffer)
- {
- gui_buffer_switch_by_number (window, last_gui_buffer->number);
- }
-}
-
-/*
* Jumps to last buffer displayed (before last jump to a buffer) (default key:
* meta-/).
*/
diff --git a/src/gui/gui-input.h b/src/gui/gui-input.h
index 38ba0ae7e..4ecd429f6 100644
--- a/src/gui/gui-input.h
+++ b/src/gui/gui-input.h
@@ -70,7 +70,6 @@ extern void gui_input_history_local_next (struct t_gui_buffer *buffer);
extern void gui_input_history_global_previous (struct t_gui_buffer *buffer);
extern void gui_input_history_global_next (struct t_gui_buffer *buffer);
extern void gui_input_jump_smart (struct t_gui_buffer *buffer);
-extern void gui_input_jump_last_buffer (struct t_gui_buffer *buffer);
extern void gui_input_jump_last_buffer_displayed (struct t_gui_buffer *buffer);
extern void gui_input_jump_previously_visited_buffer (struct t_gui_buffer *buffer);
extern void gui_input_jump_next_visited_buffer (struct t_gui_buffer *buffer);