diff options
-rw-r--r-- | doc/de/weechat_user.de.adoc | 2 | ||||
-rw-r--r-- | doc/en/weechat_user.en.adoc | 1 | ||||
-rw-r--r-- | doc/fr/weechat_user.fr.adoc | 2 | ||||
-rw-r--r-- | doc/it/weechat_user.it.adoc | 2 | ||||
-rw-r--r-- | doc/ja/weechat_user.ja.adoc | 2 | ||||
-rw-r--r-- | doc/pl/weechat_user.pl.adoc | 2 | ||||
-rw-r--r-- | doc/sr/weechat_user.sr.adoc | 2 | ||||
-rw-r--r-- | src/gui/curses/gui-curses-key.c | 1 | ||||
-rw-r--r-- | src/gui/gui-chat.c | 6 |
9 files changed, 18 insertions, 2 deletions
diff --git a/doc/de/weechat_user.de.adoc b/doc/de/weechat_user.de.adoc index 085f0c081..3a1920dbe 100644 --- a/doc/de/weechat_user.de.adoc +++ b/doc/de/weechat_user.de.adoc @@ -1698,6 +1698,8 @@ Diese Tasten werden im Kontext "cursor" verwendet (Cursor kann frei auf dem Bild | kbd:[Alt+←] | - | bewegt Cursor einen Bereich nach links. | `+/cursor move area_left+` | kbd:[Alt+→] | - | bewegt Cursor einen Bereich nach rechts. | `+/cursor move area_right+` | kbd:[m] | Chat | quotet Nachricht. | `+hsignal:chat_quote_message;/cursor stop+` +// TRANSLATION MISSING +| kbd:[l] | Chat | Quote focused line. | `+hsignal:chat_quote_focused_line;/cursor stop+` | kbd:[q] | Chat | quotet prefix + Nachricht. | `+hsignal:chat_quote_prefix_message;/cursor stop+` | kbd:[Q] | Chat | quotet Uhrzeit + prefix + Nachricht. | `+hsignal:chat_quote_time_prefix_message;/cursor stop+` | kbd:[b] | Benutzerliste | verbannt nick (Ban). | `+/window ${_window_number};/ban ${nick}+` diff --git a/doc/en/weechat_user.en.adoc b/doc/en/weechat_user.en.adoc index fdc571427..1d2d02f77 100644 --- a/doc/en/weechat_user.en.adoc +++ b/doc/en/weechat_user.en.adoc @@ -1682,6 +1682,7 @@ These keys are used in context "cursor" (free movement of cursor on screen). | kbd:[Alt+←] | - | Move cursor one area left. | `+/cursor move area_left+` | kbd:[Alt+→] | - | Move cursor one area right. | `+/cursor move area_right+` | kbd:[m] | chat | Quote message. | `+hsignal:chat_quote_message;/cursor stop+` +| kbd:[l] | chat | Quote focused line. | `+hsignal:chat_quote_focused_line;/cursor stop+` | kbd:[q] | chat | Quote prefix + message. | `+hsignal:chat_quote_prefix_message;/cursor stop+` | kbd:[Q] | chat | Quote time + prefix + message. | `+hsignal:chat_quote_time_prefix_message;/cursor stop+` | kbd:[b] | nicklist | Ban nick. | `+/window ${_window_number};/ban ${nick}+` diff --git a/doc/fr/weechat_user.fr.adoc b/doc/fr/weechat_user.fr.adoc index dddaaeee8..47ccf7bb3 100644 --- a/doc/fr/weechat_user.fr.adoc +++ b/doc/fr/weechat_user.fr.adoc @@ -1719,6 +1719,8 @@ Ces touches sont utilisées dans le contexte "cursor" (mouvement libre du curseu | kbd:[Alt+←] | - | Déplacer le curseur vers la zone sur la gauche. | `+/cursor move area_left+` | kbd:[Alt+→] | - | Déplacer le curseur vers la zone sur la droite. | `+/cursor move area_right+` | kbd:[m] | chat | Citer le message. | `+hsignal:chat_quote_message;/cursor stop+` +// TRANSLATION MISSING +| kbd:[l] | chat | Quote focused line. | `+hsignal:chat_quote_focused_line;/cursor stop+` | kbd:[q] | chat | Citer le préfixe + le message. | `+hsignal:chat_quote_prefix_message;/cursor stop+` | kbd:[Q] | chat | Citer l'heure + le préfixe + le message. | `+hsignal:chat_quote_time_prefix_message;/cursor stop+` | kbd:[b] | liste des pseudos | Bannir le pseudo. | `+/window ${_window_number};/ban ${nick}+` diff --git a/doc/it/weechat_user.it.adoc b/doc/it/weechat_user.it.adoc index bfbe0ecc6..4738a0f7c 100644 --- a/doc/it/weechat_user.it.adoc +++ b/doc/it/weechat_user.it.adoc @@ -1855,6 +1855,8 @@ sullo schermo. | kbd:[Alt+←] | - | Sposta il cursore nell'area a sinistra. | `+/cursor move area_left+` | kbd:[Alt+→] | - | Sposta il cursore nell'area a destra. | `+/cursor move area_right+` | kbd:[m] | chat | Cita messaggio. | `+hsignal:chat_quote_message;/cursor stop+` +// TRANSLATION MISSING +| kbd:[l] | chat | Quote focused line. | `+hsignal:chat_quote_focused_line;/cursor stop+` | kbd:[q] | chat | Cita prefisso + messaggio. | `+hsignal:chat_quote_prefix_message;/cursor stop+` | kbd:[Q] | chat | Cita ora + prefisso + messaggio. | `+hsignal:chat_quote_time_prefix_message;/cursor stop+` | kbd:[b] | lista nick | Ban di un nick. | `+/window ${_window_number};/ban ${nick}+` diff --git a/doc/ja/weechat_user.ja.adoc b/doc/ja/weechat_user.ja.adoc index b09a6fb11..735a2b065 100644 --- a/doc/ja/weechat_user.ja.adoc +++ b/doc/ja/weechat_user.ja.adoc @@ -1798,6 +1798,8 @@ kbd:[Ctrl+r] が押された状態) でのみ有効です。 | kbd:[Alt+←] | - | カーソルを左のエリアに移動 | `+/cursor move area_left+` | kbd:[Alt+→] | - | カーソルを右のエリアに移動 | `+/cursor move area_right+` | kbd:[m] | チャット | メッセージを引用 | `+hsignal:chat_quote_message;/cursor stop+` +// TRANSLATION MISSING +| kbd:[l] | チャット | Quote focused line. | `+hsignal:chat_quote_focused_line;/cursor stop+` | kbd:[q] | チャット | プレフィックスとメッセージを引用 | `+hsignal:chat_quote_prefix_message;/cursor stop+` | kbd:[Q] | チャット | 時間、プレフィックス、メッセージを引用 | `+hsignal:chat_quote_time_prefix_message;/cursor stop+` | kbd:[b] | ニックネームリスト| ニックネームをバンする | `+/window ${_window_number};/ban ${nick}+` diff --git a/doc/pl/weechat_user.pl.adoc b/doc/pl/weechat_user.pl.adoc index f40646a98..e9d7f3135 100644 --- a/doc/pl/weechat_user.pl.adoc +++ b/doc/pl/weechat_user.pl.adoc @@ -1711,6 +1711,8 @@ ekranie). | kbd:[Alt+←] | - | Przesuń kursor obszar w lewo. | `+/cursor move area_left+` | kbd:[Alt+→] | - | Przesuń kursor obszar w prawo. | `+/cursor move area_right+` | kbd:[m] | chat | Cytuj wiadomość. | `+hsignal:chat_quote_message;/cursor stop+` +// TRANSLATION MISSING +| kbd:[l] | chat | Quote focused line. | `+hsignal:chat_quote_focused_line;/cursor stop+` | kbd:[q] | chat | Cytuj prefiks i wiadomość. | `+hsignal:chat_quote_prefix_message;/cursor stop+` | kbd:[Q] | chat | Cytuj czas, prefiks i wiadomość. | `+hsignal:chat_quote_time_prefix_message;/cursor stop+` | kbd:[b] | nicklist | Zbanuj osobę. | `+/window ${_window_number};/ban ${nick}+` diff --git a/doc/sr/weechat_user.sr.adoc b/doc/sr/weechat_user.sr.adoc index 457f5b426..362ff1dc5 100644 --- a/doc/sr/weechat_user.sr.adoc +++ b/doc/sr/weechat_user.sr.adoc @@ -1606,6 +1606,8 @@ WeeChat нуди доста подразумеваних тастерских п | kbd:[Alt+←] | - | Помера курсор једну површину у лево. | `+/cursor move area_left+` | kbd:[Alt+→] | - | Помера курсор једну површину у десно. | `+/cursor move area_right+` | kbd:[m] | чет | Цитирање поруке. | `+hsignal:chat_quote_message;/cursor stop+` +// TRANSLATION MISSING +| kbd:[l] | чет | Quote focused line. | `+hsignal:chat_quote_focused_line;/cursor stop+` | kbd:[q] | чет | Цитирање префикса + поруке. | `+hsignal:chat_quote_prefix_message;/cursor stop+` | kbd:[Q] | чет | Quote time + prefix + message. | `+hsignal:chat_quote_time_prefix_message;/cursor stop+` | kbd:[b] | листа надимака | Забрањује надимак. | `+/window ${_window_number};/ban ${nick}+` diff --git a/src/gui/curses/gui-curses-key.c b/src/gui/curses/gui-curses-key.c index b4b7ad595..e249277a4 100644 --- a/src/gui/curses/gui-curses-key.c +++ b/src/gui/curses/gui-curses-key.c @@ -229,6 +229,7 @@ gui_key_default_bindings (int context, int create_option) BIND("meta-right","/cursor move area_right"); /* chat */ BIND("@chat:m", "hsignal:chat_quote_message;/cursor stop"); + BIND("@chat:l", "hsignal:chat_quote_focused_line;/cursor stop"); BIND("@chat:q", "hsignal:chat_quote_prefix_message;/cursor stop"); BIND("@chat:Q", "hsignal:chat_quote_time_prefix_message;/cursor stop"); /* nicklist */ diff --git a/src/gui/gui-chat.c b/src/gui/gui-chat.c index eae62aa6a..2a88353d7 100644 --- a/src/gui/gui-chat.c +++ b/src/gui/gui-chat.c @@ -84,7 +84,7 @@ gui_chat_init () /* some hsignals */ hook_hsignal (NULL, "chat_quote_time_prefix_message;chat_quote_prefix_message;" - "chat_quote_message", + "chat_quote_message;chat_quote_focused_line", &gui_chat_hsignal_quote_line_cb, NULL, NULL); } @@ -1104,7 +1104,9 @@ gui_chat_hsignal_quote_line_cb (const void *pointer, void *data, ptr_prefix++; } } - message = hashtable_get (hashtable, "_chat_line_message"); + + message = (strstr (signal, "focused_line")) ? + hashtable_get (hashtable, "_chat_focused_line") : hashtable_get (hashtable, "_chat_line_message"); if (!message) return WEECHAT_RC_OK; |