1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

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 +".
This commit is contained in:
Sebastien Helleu
2014-03-19 10:15:57 +01:00
parent dac4d3a06a
commit bc96d2f1ec
29 changed files with 637 additions and 522 deletions
+2 -1
View File
@@ -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");
-18
View File
@@ -1421,24 +1421,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-/).
-1
View File
@@ -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);