1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-06 09:43:13 +02:00

- added alt-j + alt-l key (switch to last buffer)

- added message for +q mode changing on a nick
This commit is contained in:
Sebastien Helleu
2005-07-16 12:37:30 +00:00
parent 99ad719ab9
commit 4c6c367557
26 changed files with 820 additions and 600 deletions
+2
View File
@@ -322,6 +322,8 @@ completion_build_list (t_completion *completion, void *channel)
pos[0] = ' ';
}
}
else
completion_stop (completion);
return;
}
if ((strcasecmp (completion->base_command, "unalias") == 0)
+1
View File
@@ -92,6 +92,7 @@ gui_input_default_key_bindings ()
gui_key_bind ( /* ^right */ "meta-Oc", "next_word");
gui_key_bind ( /* m-h */ "meta-h", "hotlist_clear");
gui_key_bind ( /* m-j,m-d */ "meta-jmeta-d", "jump_dcc");
gui_key_bind ( /* m-j,m-l */ "meta-jmeta-l", "jump_last_buffer");
gui_key_bind ( /* m-j,m-s */ "meta-jmeta-s", "jump_server");
gui_key_bind ( /* m-j,m-x */ "meta-jmeta-x", "jump_next_server");
gui_key_bind ( /* m-k */ "meta-k", "grab_key");
+11
View File
@@ -1433,6 +1433,17 @@ gui_input_jump_dcc ()
}
}
/*
* gui_input_jump_last_buffer: jump to last buffer
*/
void
gui_input_jump_last_buffer ()
{
if (last_gui_buffer)
gui_switch_to_buffer_by_number (gui_current_window, last_gui_buffer->number);
}
/*
* gui_input_jump_server: jump to server buffer
*/
+2
View File
@@ -99,6 +99,8 @@ t_gui_key_function gui_key_functions[] =
N_("jump to buffer with activity") },
{ "jump_dcc", gui_input_jump_dcc,
N_("jump to DCC buffer") },
{ "jump_last_buffer", gui_input_jump_last_buffer,
N_("jump to last buffer") },
{ "jump_server", gui_input_jump_server,
N_("jump to server buffer") },
{ "jump_next_server", gui_input_jump_next_server,
+1
View File
@@ -337,6 +337,7 @@ extern void gui_input_up ();
extern void gui_input_down ();
extern void gui_input_jump_smart ();
extern void gui_input_jump_dcc ();
extern void gui_input_jump_last_buffer ();
extern void gui_input_jump_server ();
extern void gui_input_jump_next_server ();
extern void gui_input_hotlist_clear ();
+25
View File
@@ -637,6 +637,31 @@ void irc_get_channel_modes (t_irc_channel *ptr_channel, char *channel_name,
SET_CHANNEL_MODE(ptr_channel, (set_flag == '+'),
CHANNEL_MODE_SECRET);
break;
case 'q':
pos = NULL;
if (parm)
{
pos = strchr (parm, ' ');
if (pos)
pos[0] = '\0';
}
if (nick_host)
irc_display_mode (ptr_channel->buffer,
channel_name, set_flag, "q", nick_host,
(set_flag == '+') ?
_("sets quiet on") :
_("removes quiet on"),
(parm) ? parm : NULL);
/* look for next parameter */
if (parm && pos)
{
pos++;
while (pos[0] == ' ')
pos++;
parm = pos;
}
break;
case 's':
if (nick_host)
irc_display_mode (ptr_channel->buffer,