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

core: add optional argument "lowest", "highest" or level mask in command /input hotlist_clear

This commit is contained in:
Sébastien Helleu
2016-08-16 21:22:28 +02:00
parent ebb43c4a54
commit a01ecb276f
27 changed files with 357 additions and 217 deletions
+1
View File
@@ -20,6 +20,7 @@ https://weechat.org/files/releasenotes/ReleaseNotes-devel.html[release notes]
New features::
* core: add optional argument "lowest", "highest" or level mask in command /input hotlist_clear
* core: add option "cycle" in command /buffer
* relay: add option relay.network.allow_empty_password (issue #735)
* trigger: add support for one-time triggers (issue #399, issue #509)
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -456,7 +456,7 @@ list of actions:
jump_last_buffer_displayed: jump to last buffer displayed (before last jump to a buffer)
jump_previously_visited_buffer: jump to previously visited buffer
jump_next_visited_buffer: jump to next visited buffer
hotlist_clear: clear hotlist
hotlist_clear: clear hotlist (optional argument: "lowest" to clear only lowest level in hotlist, "highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
grab_key: grab a key (optional argument: delay for end of grab, default is 500 milliseconds)
grab_key_command: grab a key with its associated command (optional argument: delay for end of grab, default is 500 milliseconds)
grab_mouse: grab mouse event code
+1 -1
View File
@@ -456,7 +456,7 @@ liste des actions :
jump_last_buffer_displayed : sauter au dernier tampon affiché (avant le dernier saut vers un tampon)
jump_previously_visited_buffer : sauter au tampon visité précédemment
jump_next_visited_buffer : sauter au tampon visité après
hotlist_clear : effacer la hotlist
hotlist_clear : effacer la hotlist (paramètre facultatif : "lowest" pour effacer seulement le plus petit niveau dans la hotlist, "highest" pour effacer seulement le niveau le plus haut dans la hotlist, ou un masque de niveaux : entier qui est une combinaison de 1=join/part, 2=message, 4=privé, 8=highlight)
grab_key : capturer une touche (paramètre facultatif : délai pour la fin de la capture, par défaut 500 millisecondes)
grab_key_command : capturer une touche avec sa commande associée (paramètre facultatif : délai pour la fin de la capture, par défaut 500 millisecondes)
grab_mouse : capturer un évènement de la souris
+1 -1
View File
@@ -456,7 +456,7 @@ list of actions:
jump_last_buffer_displayed: jump to last buffer displayed (before last jump to a buffer)
jump_previously_visited_buffer: jump to previously visited buffer
jump_next_visited_buffer: jump to next visited buffer
hotlist_clear: clear hotlist
hotlist_clear: clear hotlist (optional argument: "lowest" to clear only lowest level in hotlist, "highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
grab_key: grab a key (optional argument: delay for end of grab, default is 500 milliseconds)
grab_key_command: grab a key with its associated command (optional argument: delay for end of grab, default is 500 milliseconds)
grab_mouse: grab mouse event code
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+5 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2016-05-18 07:42+0200\n"
"Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1734,7 +1734,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
+6 -2
View File
@@ -23,7 +23,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2016-08-14 14:14+0200\n"
"Last-Translator: Nils Görs <weechatter@arcor.de>\n"
"Language-Team: German <>\n"
@@ -1901,6 +1901,7 @@ msgstr "Funktionen für die Befehlszeile"
msgid "<action> [<arguments>]"
msgstr "<action> [<arguments>]"
#, fuzzy
msgid ""
"list of actions:\n"
" return: simulate key \"enter\"\n"
@@ -1941,7 +1942,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
+5 -2
View File
@@ -22,7 +22,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2016-05-18 07:42+0200\n"
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1766,7 +1766,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
+11 -4
View File
@@ -21,8 +21,8 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"PO-Revision-Date: 2016-08-14 10:12+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2016-08-16 21:20+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
"Language: fr\n"
@@ -1910,7 +1910,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
@@ -1975,7 +1978,11 @@ msgstr ""
"dernier saut vers un tampon)\n"
" jump_previously_visited_buffer : sauter au tampon visité précédemment\n"
" jump_next_visited_buffer : sauter au tampon visité après\n"
" hotlist_clear : effacer la hotlist\n"
" hotlist_clear : effacer la hotlist (paramètre facultatif : \"lowest\" pour "
"effacer seulement le plus petit niveau dans la hotlist, \"highest\" pour "
"effacer seulement le niveau le plus haut dans la hotlist, ou un masque de "
"niveaux : entier qui est une combinaison de 1=join/part, 2=message, 4=privé, "
"8=highlight)\n"
" grab_key : capturer une touche (paramètre facultatif : délai pour la fin "
"de la capture, par défaut 500 millisecondes)\n"
" grab_key_command : capturer une touche avec sa commande associée "
+5 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2016-05-18 07:43+0200\n"
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1594,7 +1594,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
+5 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2016-05-18 07:43+0200\n"
"Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1808,7 +1808,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
+6 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2016-08-07 16:37+0200\n"
"Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n"
"Language-Team: Japanese <https://github.com/l/weechat/tree/master/"
@@ -1815,6 +1815,7 @@ msgstr "コマンドライン関数"
msgid "<action> [<arguments>]"
msgstr "<action> [<arguments>]"
#, fuzzy
msgid ""
"list of actions:\n"
" return: simulate key \"enter\"\n"
@@ -1855,7 +1856,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
+6 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2016-05-18 07:43+0200\n"
"Last-Translator: Krzysztof Korościk <soltys1@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1860,6 +1860,7 @@ msgstr "funkcje linii komend"
msgid "<action> [<arguments>]"
msgstr "<akcja> [<argumenty>]"
#, fuzzy
msgid ""
"list of actions:\n"
" return: simulate key \"enter\"\n"
@@ -1900,7 +1901,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
+6 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2016-05-18 07:43+0200\n"
"Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n"
"Language-Team: Portuguese <>\n"
@@ -1855,6 +1855,7 @@ msgstr "funções da linha de comandos"
msgid "<action> [<arguments>]"
msgstr "<ação> [<argumentos>]"
#, fuzzy
msgid ""
"list of actions:\n"
" return: simulate key \"enter\"\n"
@@ -1895,7 +1896,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
+5 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2016-05-18 07:43+0200\n"
"Last-Translator: Eduardo Elias <camponez@gmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1819,7 +1819,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
+5 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2016-05-18 07:43+0200\n"
"Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1616,7 +1616,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
+5 -2
View File
@@ -20,7 +20,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2016-05-18 07:43+0200\n"
"Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1446,7 +1446,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
+5 -2
View File
@@ -21,7 +21,7 @@ msgid ""
msgstr ""
"Project-Id-Version: WeeChat\n"
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
"POT-Creation-Date: 2016-08-14 10:08+0200\n"
"POT-Creation-Date: 2016-08-16 21:17+0200\n"
"PO-Revision-Date: 2014-08-16 10:27+0200\n"
"Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n"
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
@@ -1447,7 +1447,10 @@ msgid ""
"jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to clear only "
"lowest level in hotlist, \"highest\" to clear only highest level in hotlist, "
"or level mask: integer which is a combination of 1=join/part, 2=message, "
"4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, default is "
"500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
+22 -16
View File
@@ -3047,7 +3047,7 @@ COMMAND_CALLBACK(input)
else if (string_strcasecmp (argv[1], "jump_next_visited_buffer") == 0)
gui_input_jump_next_visited_buffer (buffer);
else if (string_strcasecmp (argv[1], "hotlist_clear") == 0)
gui_input_hotlist_clear (buffer);
gui_input_hotlist_clear (buffer, (argc > 2) ? argv[2] : NULL);
else if (string_strcasecmp (argv[1], "grab_key") == 0)
gui_input_grab_key (buffer, 0, (argc > 2) ? argv[2] : NULL);
else if (string_strcasecmp (argv[1], "grab_key_command") == 0)
@@ -7412,7 +7412,10 @@ command_init ()
"last jump to a buffer)\n"
" jump_previously_visited_buffer: jump to previously visited buffer\n"
" jump_next_visited_buffer: jump to next visited buffer\n"
" hotlist_clear: clear hotlist\n"
" hotlist_clear: clear hotlist (optional argument: \"lowest\" to "
"clear only lowest level in hotlist, \"highest\" to clear only "
"highest level in hotlist, or level mask: integer which is a "
"combination of 1=join/part, 2=message, 4=private, 8=highlight)\n"
" grab_key: grab a key (optional argument: delay for end of grab, "
"default is 500 milliseconds)\n"
" grab_key_command: grab a key with its associated command (optional "
@@ -7431,20 +7434,23 @@ command_init ()
" paste_stop: stop paste (bracketed paste mode)\n"
"\n"
"This command is used by key bindings or plugins."),
"return|complete_next|complete_previous|search_text_here|search_text|"
"search_switch_case|search_switch_regex|search_switch_where|"
"search_previous|search_next|search_stop_here|search_stop|"
"delete_previous_char|delete_next_char|delete_previous_word|"
"delete_next_word|delete_beginning_of_line|delete_end_of_line|"
"delete_line|clipboard_paste|transpose_chars|undo|redo|"
"move_beginning_of_line|move_end_of_line|move_previous_char|"
"move_next_char|move_previous_word|move_next_word|history_previous|"
"history_next|history_global_previous|history_global_next|jump_smart|"
"jump_last_buffer_displayed|jump_previously_visited_buffer|"
"jump_next_visited_buffer|hotlist_clear|grab_key|grab_key_command|"
"grab_mouse|grab_mouse_area|set_unread|set_unread_current_buffer|"
"switch_active_buffer|switch_active_buffer_previous|"
"zoom_merged_buffer|insert|send|paste_start|paste_stop",
"return || complete_next || complete_previous || search_text_here || "
"search_text || search_switch_case || search_switch_regex || "
"search_switch_where || search_previous || search_next || "
"search_stop_here || search_stop || delete_previous_char || "
"delete_next_char || delete_previous_word || delete_next_word || "
"delete_beginning_of_line || delete_end_of_line || delete_line || "
"clipboard_paste || transpose_chars || undo || redo || "
"move_beginning_of_line || move_end_of_line || move_previous_char || "
"move_next_char || move_previous_word || move_next_word || "
"history_previous || history_next || history_global_previous || "
"history_global_next || jump_smart || jump_last_buffer_displayed || "
"jump_previously_visited_buffer || jump_next_visited_buffer || "
"hotlist_clear 1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|lowest|highest || "
"grab_key || grab_key_command || grab_mouse || grab_mouse_area || "
"set_unread || set_unread_current_buffer || switch_active_buffer || "
"switch_active_buffer_previous || zoom_merged_buffer || insert || "
"send || paste_start || paste_stop",
&command_input, NULL, NULL);
hook_command (
NULL, "key",
+1 -1
View File
@@ -2813,7 +2813,7 @@ config_weechat_init_options ()
N_("level for displaying names in hotlist (combination "
"of: 1=join/part, 2=message, 4=private, 8=highlight, "
"for example: 12=private+highlight)"),
NULL, 1, 15, "12", NULL, 0,
NULL, 1, GUI_HOTLIST_MASK_MAX, "12", NULL, 0,
NULL, NULL, NULL,
&config_change_buffer_content, NULL, NULL,
NULL, NULL, NULL);
+2 -2
View File
@@ -723,7 +723,7 @@ upgrade_weechat_read_hotlist (struct t_infolist *infolist)
if (!hotlist_reset)
{
gui_hotlist_clear ();
gui_hotlist_clear (GUI_HOTLIST_MASK_MAX);
hotlist_reset = 1;
}
plugin_name = infolist_string (infolist, "plugin_name");
@@ -846,7 +846,7 @@ upgrade_weechat_load ()
upgrade_file_close (upgrade_file);
if (!hotlist_reset)
gui_hotlist_clear ();
gui_hotlist_clear (GUI_HOTLIST_MASK_MAX);
gui_color_buffer_assign ();
gui_color_buffer_display ();
+31 -3
View File
@@ -470,13 +470,41 @@ gui_hotlist_resort ()
/*
* Clears hotlist.
*
* Argument "level_mask" is a combination of:
* 1 = join/part
* 2 = message
* 4 = private
* 8 = highlight
*
* So for example :
* 1 = clear only join/part
* 12 = clear only private and highlight
* 15 = clear whole hotlist
*/
void
gui_hotlist_clear ()
gui_hotlist_clear (int level_mask)
{
gui_hotlist_free_all (&gui_hotlist, &last_gui_hotlist);
gui_hotlist_changed_signal ();
struct t_gui_hotlist *ptr_hotlist, *ptr_next_hotlist;
int hotlist_changed;
hotlist_changed = 0;
ptr_hotlist = gui_hotlist;
while (ptr_hotlist)
{
ptr_next_hotlist = ptr_hotlist->next_hotlist;
if (level_mask & (1 << ptr_hotlist->priority))
{
gui_hotlist_free (&gui_hotlist, &last_gui_hotlist, ptr_hotlist);
hotlist_changed = 1;
}
ptr_hotlist = ptr_next_hotlist;
}
if (hotlist_changed)
gui_hotlist_changed_signal ();
}
/*
+3 -1
View File
@@ -34,6 +34,8 @@ enum t_gui_hotlist_priority
#define GUI_HOTLIST_MIN 0
#define GUI_HOTLIST_MAX (GUI_HOTLIST_NUM_PRIORITIES - 1)
#define GUI_HOTLIST_MASK_MAX ((1 << GUI_HOTLIST_NUM_PRIORITIES) - 1)
struct t_gui_hotlist
{
enum t_gui_hotlist_priority priority; /* 0=crappy msg (join/part), */
@@ -58,7 +60,7 @@ extern struct t_gui_hotlist *gui_hotlist_add (struct t_gui_buffer *buffer,
enum t_gui_hotlist_priority priority,
struct timeval *creation_time);
extern void gui_hotlist_resort ();
extern void gui_hotlist_clear ();
extern void gui_hotlist_clear (int level_mask);
extern void gui_hotlist_remove_buffer (struct t_gui_buffer *buffer,
int force_remove_buffer);
extern struct t_hdata *gui_hotlist_hdata_hotlist_cb (const void *pointer,
+58 -3
View File
@@ -1540,10 +1540,65 @@ gui_input_jump_next_visited_buffer (struct t_gui_buffer *buffer)
*/
void
gui_input_hotlist_clear (struct t_gui_buffer *buffer)
gui_input_hotlist_clear (struct t_gui_buffer *buffer,
const char *str_level_mask)
{
gui_hotlist_clear ();
gui_hotlist_initial_buffer = buffer;
long level_mask;
char *error;
struct t_gui_hotlist *ptr_hotlist;
int priority;
if (str_level_mask)
{
if (strcmp (str_level_mask, "lowest") == 0)
{
/* clear only lowest priority currently in hotlist */
priority = GUI_HOTLIST_MAX + 1;
for (ptr_hotlist = gui_hotlist; ptr_hotlist;
ptr_hotlist = ptr_hotlist->next_hotlist)
{
if ((int)ptr_hotlist->priority < priority)
priority = ptr_hotlist->priority;
}
if (priority <= GUI_HOTLIST_MAX)
{
gui_hotlist_clear (1 << priority);
gui_hotlist_initial_buffer = buffer;
}
}
else if (strcmp (str_level_mask, "highest") == 0)
{
/* clear only highest priority currently in hotlist */
priority = GUI_HOTLIST_MIN - 1;
for (ptr_hotlist = gui_hotlist; ptr_hotlist;
ptr_hotlist = ptr_hotlist->next_hotlist)
{
if ((int)ptr_hotlist->priority > priority)
priority = ptr_hotlist->priority;
}
if (priority >= GUI_HOTLIST_MIN)
{
gui_hotlist_clear (1 << priority);
gui_hotlist_initial_buffer = buffer;
}
}
else
{
/* clear hotlist using a mask of levels */
error = NULL;
level_mask = strtol (str_level_mask, &error, 10);
if (error && !error[0] && (level_mask > 0))
{
gui_hotlist_clear ((int)level_mask);
gui_hotlist_initial_buffer = buffer;
}
}
}
else
{
gui_hotlist_clear (GUI_HOTLIST_MASK_MAX);
gui_hotlist_initial_buffer = buffer;
}
}
/*
+2 -1
View File
@@ -75,7 +75,8 @@ extern void gui_input_jump_smart (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);
extern void gui_input_hotlist_clear (struct t_gui_buffer *buffer);
extern void gui_input_hotlist_clear (struct t_gui_buffer *buffer,
const char *level_mask);
extern void gui_input_grab_key (struct t_gui_buffer *buffer, int command,
const char *delay);
extern void gui_input_grab_mouse (struct t_gui_buffer *buffer, int area);