1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 06:46:38 +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
-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-/).