mirror of
https://github.com/weechat/weechat.git
synced 2026-07-04 08:43:13 +02:00
Add option weechat.history.max_visited_buffers
This commit is contained in:
@@ -150,7 +150,7 @@ clear: Löscht Verlauf
|
||||
Anzahl: zeigt die gewünschte Anzahl an Verlaufseinträgen
|
||||
</programlisting>
|
||||
|
||||
<command>/input return | complete_next | complete_previous | search_next | 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 | 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 | jump_previous_buffer | hotlist_clear | grab_key | scroll_unread | set_unread | set_unread_current_buffer | insert [args]</command>
|
||||
<command>/input return | complete_next | complete_previous | search_next | 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 | 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 | jump_previously_visited_buffer | jump_next_visited_buffer | hotlist_clear | grab_key | scroll_unread | set_unread | set_unread_current_buffer | insert [args]</command>
|
||||
<programlisting>
|
||||
functions for command line
|
||||
|
||||
|
||||
@@ -716,6 +716,16 @@
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<command>weechat.history.max_visited_buffers</command>: maximum number of visited buffers to keep in memory
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>type: integer</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>values: 0 .. 1000 (default value: 50)</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<command>weechat.look.buffer_notify_default</command>: default notify level for buffers (used to tell WeeChat if buffer must be displayed in hotlist or not, according to importance of message)
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
|
||||
@@ -150,7 +150,7 @@ clear: clear history
|
||||
value: number of history entries to show
|
||||
</programlisting>
|
||||
|
||||
<command>/input return | complete_next | complete_previous | search_next | 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 | 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 | jump_previous_buffer | hotlist_clear | grab_key | scroll_unread | set_unread | set_unread_current_buffer | insert [args]</command>
|
||||
<command>/input return | complete_next | complete_previous | search_next | 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 | 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 | jump_previously_visited_buffer | jump_next_visited_buffer | hotlist_clear | grab_key | scroll_unread | set_unread | set_unread_current_buffer | insert [args]</command>
|
||||
<programlisting>
|
||||
functions for command line
|
||||
|
||||
|
||||
@@ -716,6 +716,16 @@
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<command>weechat.history.max_visited_buffers</command>: maximum number of visited buffers to keep in memory
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>type: integer</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>values: 0 .. 1000 (default value: 50)</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<command>weechat.look.buffer_notify_default</command>: default notify level for buffers (used to tell WeeChat if buffer must be displayed in hotlist or not, according to importance of message)
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
|
||||
@@ -150,7 +150,7 @@ clear: effacer l'historique
|
||||
valeur: nombre d'entrées dans l'historique à afficher
|
||||
</programlisting>
|
||||
|
||||
<command>/input return | complete_next | complete_previous | search_next | 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 | 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 | jump_previous_buffer | hotlist_clear | grab_key | scroll_unread | set_unread | set_unread_current_buffer | insert [args]</command>
|
||||
<command>/input return | complete_next | complete_previous | search_next | 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 | 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 | jump_previously_visited_buffer | jump_next_visited_buffer | hotlist_clear | grab_key | scroll_unread | set_unread | set_unread_current_buffer | insert [args]</command>
|
||||
<programlisting>
|
||||
fonctions pour la ligne de commande
|
||||
|
||||
|
||||
@@ -716,6 +716,16 @@
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<command>weechat.history.max_visited_buffers</command>: nombre maximum de tampons visités à garder en mémoire
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
<para>type: entier</para>
|
||||
</listitem>
|
||||
<listitem>
|
||||
<para>valeurs: 0 .. 1000 (valeur par défaut: 50)</para>
|
||||
</listitem>
|
||||
</itemizedlist>
|
||||
|
||||
<command>weechat.look.buffer_notify_default</command>: niveau de notification par défaut pour les tampons (utilisé pour dire à WeeChat si le tampon doit être affiché dans la hotlist ou non, selon l'importance du message)
|
||||
<itemizedlist>
|
||||
<listitem>
|
||||
|
||||
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-16 00:36+0200\n"
|
||||
"POT-Creation-Date: 2009-05-18 18:04+0200\n"
|
||||
"PO-Revision-Date: 2009-05-11 13:02+0200\n"
|
||||
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1701,6 +1701,10 @@ msgstr "maximální počet uživatelských příkazů v historii (0 = nekonečn
|
||||
msgid "maximum number of user commands in history (0 = unlimited)"
|
||||
msgstr "maximální počet uživatelských příkazů v historii (0 = nekonečně)"
|
||||
|
||||
#, fuzzy
|
||||
msgid "maximum number of visited buffers to keep in memory"
|
||||
msgstr "maximální počet uživatelských příkazů v historii (0 = nekonečně)"
|
||||
|
||||
msgid ""
|
||||
"maximum number of commands to display by default in history listing (0 = "
|
||||
"unlimited)"
|
||||
|
||||
@@ -9,7 +9,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-16 00:36+0200\n"
|
||||
"POT-Creation-Date: 2009-05-18 18:04+0200\n"
|
||||
"PO-Revision-Date: 2009-05-11 13:02+0200\n"
|
||||
"Last-Translator: Thomas Schuetz <i18n@internet-villa.de>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1719,6 +1719,10 @@ msgstr "maximale Anzahl an Befehlen im Verlauf (0: kein Limit)"
|
||||
msgid "maximum number of user commands in history (0 = unlimited)"
|
||||
msgstr "maximale Anzahl an Befehlen im Verlauf (0: kein Limit)"
|
||||
|
||||
#, fuzzy
|
||||
msgid "maximum number of visited buffers to keep in memory"
|
||||
msgstr "maximale Anzahl an Befehlen im Verlauf (0: kein Limit)"
|
||||
|
||||
msgid ""
|
||||
"maximum number of commands to display by default in history listing (0 = "
|
||||
"unlimited)"
|
||||
|
||||
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-16 00:36+0200\n"
|
||||
"POT-Creation-Date: 2009-05-18 18:04+0200\n"
|
||||
"PO-Revision-Date: 2009-05-11 13:02+0200\n"
|
||||
"Last-Translator: Roberto González Cardenete <robert.glez@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1702,6 +1702,11 @@ msgid "maximum number of user commands in history (0 = unlimited)"
|
||||
msgstr ""
|
||||
"número múximo de comandos de usuario en el histórico (0 = ilimitado)"
|
||||
|
||||
#, fuzzy
|
||||
msgid "maximum number of visited buffers to keep in memory"
|
||||
msgstr ""
|
||||
"número múximo de comandos de usuario en el histórico (0 = ilimitado)"
|
||||
|
||||
msgid ""
|
||||
"maximum number of commands to display by default in history listing (0 = "
|
||||
"unlimited)"
|
||||
|
||||
@@ -6,8 +6,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-16 00:36+0200\n"
|
||||
"PO-Revision-Date: 2009-05-16 00:36+0200\n"
|
||||
"POT-Creation-Date: 2009-05-18 18:04+0200\n"
|
||||
"PO-Revision-Date: 2009-05-18 18:04+0200\n"
|
||||
"Last-Translator: FlashCode <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"MIME-Version: 1.0\n"
|
||||
@@ -1808,6 +1808,9 @@ msgid "maximum number of user commands in history (0 = unlimited)"
|
||||
msgstr ""
|
||||
"nombre maximum de commandes utilisateur dans l'historique (0 = sans limite)"
|
||||
|
||||
msgid "maximum number of visited buffers to keep in memory"
|
||||
msgstr "nombre maximum de tampons visités à garder en mémoire"
|
||||
|
||||
msgid ""
|
||||
"maximum number of commands to display by default in history listing (0 = "
|
||||
"unlimited)"
|
||||
|
||||
@@ -12,7 +12,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-16 00:36+0200\n"
|
||||
"POT-Creation-Date: 2009-05-18 18:04+0200\n"
|
||||
"PO-Revision-Date: 2009-05-11 13:02+0200\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1730,6 +1730,11 @@ msgid "maximum number of user commands in history (0 = unlimited)"
|
||||
msgstr ""
|
||||
"felhasználói parancsok maximális száma az előzményekben (0 = korlátlan)"
|
||||
|
||||
#, fuzzy
|
||||
msgid "maximum number of visited buffers to keep in memory"
|
||||
msgstr ""
|
||||
"felhasználói parancsok maximális száma az előzményekben (0 = korlátlan)"
|
||||
|
||||
msgid ""
|
||||
"maximum number of commands to display by default in history listing (0 = "
|
||||
"unlimited)"
|
||||
|
||||
@@ -9,7 +9,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-16 00:36+0200\n"
|
||||
"POT-Creation-Date: 2009-05-18 18:04+0200\n"
|
||||
"PO-Revision-Date: 2009-05-11 13:02+0200\n"
|
||||
"Last-Translator: <soltys@szluug.org>\n"
|
||||
"Language-Team: Polish\n"
|
||||
@@ -1486,6 +1486,9 @@ msgstr ""
|
||||
msgid "maximum number of user commands in history (0 = unlimited)"
|
||||
msgstr ""
|
||||
|
||||
msgid "maximum number of visited buffers to keep in memory"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"maximum number of commands to display by default in history listing (0 = "
|
||||
"unlimited)"
|
||||
|
||||
@@ -6,7 +6,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.0-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-16 00:36+0200\n"
|
||||
"POT-Creation-Date: 2009-05-18 18:04+0200\n"
|
||||
"PO-Revision-Date: 2009-05-11 13:02+0200\n"
|
||||
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -1731,6 +1731,10 @@ msgstr "максимальное количество команд в истор
|
||||
msgid "maximum number of user commands in history (0 = unlimited)"
|
||||
msgstr "максимальное количество команд в истории (0 = не ограничено)"
|
||||
|
||||
#, fuzzy
|
||||
msgid "maximum number of visited buffers to keep in memory"
|
||||
msgstr "максимальное количество команд в истории (0 = не ограничено)"
|
||||
|
||||
msgid ""
|
||||
"maximum number of commands to display by default in history listing (0 = "
|
||||
"unlimited)"
|
||||
|
||||
+4
-1
@@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2009-05-16 00:36+0200\n"
|
||||
"POT-Creation-Date: 2009-05-18 18:04+0200\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@@ -1454,6 +1454,9 @@ msgstr ""
|
||||
msgid "maximum number of user commands in history (0 = unlimited)"
|
||||
msgstr ""
|
||||
|
||||
msgid "maximum number of visited buffers to keep in memory"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"maximum number of commands to display by default in history listing (0 = "
|
||||
"unlimited)"
|
||||
|
||||
@@ -163,6 +163,7 @@ struct t_config_option *config_completion_partial_completion_count;
|
||||
|
||||
struct t_config_option *config_history_max_lines;
|
||||
struct t_config_option *config_history_max_commands;
|
||||
struct t_config_option *config_history_max_visited_buffers;
|
||||
struct t_config_option *config_history_display_default;
|
||||
|
||||
/* config, network section */
|
||||
@@ -1853,6 +1854,11 @@ config_weechat_init_options ()
|
||||
N_("maximum number of user commands in history (0 = "
|
||||
"unlimited)"),
|
||||
NULL, 0, INT_MAX, "100", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
config_history_max_visited_buffers = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"max_visited_buffers", "integer",
|
||||
N_("maximum number of visited buffers to keep in memory"),
|
||||
NULL, 0, 1000, "50", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
config_history_display_default = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"display_default", "integer",
|
||||
|
||||
@@ -165,6 +165,7 @@ extern struct t_config_option *config_completion_partial_completion_count;
|
||||
|
||||
extern struct t_config_option *config_history_max_lines;
|
||||
extern struct t_config_option *config_history_max_commands;
|
||||
extern struct t_config_option *config_history_max_visited_buffers;
|
||||
extern struct t_config_option *config_history_display_default;
|
||||
|
||||
extern struct t_config_option *config_network_gnutls_dh_prime_bits;
|
||||
|
||||
@@ -1761,7 +1761,7 @@ gui_buffer_visited_add (struct t_gui_buffer *buffer)
|
||||
gui_buffer_visited_remove (new_buffer_visited);
|
||||
|
||||
/* remove old buffer(s) visited if list is too long */
|
||||
while (gui_buffers_visited_count > GUI_BUFFERS_VISITED_MAX)
|
||||
while (gui_buffers_visited_count > CONFIG_INTEGER(config_history_max_visited_buffers))
|
||||
{
|
||||
gui_buffer_visited_remove (gui_buffers_visited);
|
||||
}
|
||||
|
||||
@@ -47,8 +47,6 @@ enum t_gui_buffer_notify
|
||||
|
||||
#define GUI_BUFFER_INPUT_BLOCK_SIZE 256
|
||||
|
||||
#define GUI_BUFFERS_VISITED_MAX 50
|
||||
|
||||
/* buffer structures */
|
||||
|
||||
struct t_gui_line
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
#include "../core/wee-config.h"
|
||||
#include "../core/wee-hook.h"
|
||||
#include "../core/wee-input.h"
|
||||
#include "../core/wee-log.h"
|
||||
#include "../core/wee-string.h"
|
||||
#include "../core/wee-utf8.h"
|
||||
#include "../plugins/plugin.h"
|
||||
@@ -1160,7 +1159,6 @@ gui_input_jump_previously_visited_buffer ()
|
||||
if (index >= 0)
|
||||
{
|
||||
gui_buffers_visited_index = index;
|
||||
log_printf ("prev: index = %d", index);
|
||||
|
||||
ptr_buffer_visited = gui_buffer_visited_search_by_number (gui_buffers_visited_index);
|
||||
if (ptr_buffer_visited)
|
||||
|
||||
Reference in New Issue
Block a user