diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2011-07-26 18:50:29 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2011-07-26 18:50:29 +0200 |
commit | e0781f0390291e264e6dd9c17beae1342e87f9a2 (patch) | |
tree | aac2f19ab7e527180952db15867d8daaa23c4a91 /doc | |
parent | 2fec84314433c2b7152c6c47b1172a621257fe6f (diff) | |
download | weechat-e0781f0390291e264e6dd9c17beae1342e87f9a2.zip |
core: add mouse support (task #5435), free cursor movement, hook_focus, fix bugs with key "^" (bug #32072, bug #21381), fix bugs with bar windows, completion and /buffer
New features and bugs fixed:
- mouse support: new command /mouse, new option weechat.look.mouse, new key context "mouse"
- free movement of cursor: new command /cursor, new key context "cursor"
- new hook_focus (used by cursor and mouse)
- info "cursor_mode"
- bugs fixed with key "^"
- allow plugin name in /buffer name
- fix bugs with bar windows: do not create bar windows for hidden bars
- fix completion bug when two words for completion are equal but with different case
- automatic scroll direction in /bar scroll (x/y is now optional)
Diffstat (limited to 'doc')
32 files changed, 1228 insertions, 387 deletions
diff --git a/doc/de/autogen/plugin_api/completions.txt b/doc/de/autogen/plugin_api/completions.txt index b9443fad6..2f4abd9ea 100644 --- a/doc/de/autogen/plugin_api/completions.txt +++ b/doc/de/autogen/plugin_api/completions.txt @@ -78,6 +78,8 @@ | weechat | config_options | Konfigurationsoptionen +| weechat | cursor_areas | areas ("chat" or bar name) for free cursor movement + | weechat | filename | Dateinamen | weechat | filters_names | Liste der Filter @@ -90,7 +92,7 @@ | weechat | keys_codes_for_reset | Tastenbelegungen die zurückgesetzt werden können (hinzugefügte/verändert/gelöschte Tastenbelegungen) -| weechat | keys_contexts | key contexts +| weechat | keys_contexts | Tastaturkontext | weechat | nicks | Nicks in Nickliste des aktuellen Buffers diff --git a/doc/de/autogen/plugin_api/hdata.txt b/doc/de/autogen/plugin_api/hdata.txt index ce30586e7..d8a91ccd8 100644 --- a/doc/de/autogen/plugin_api/hdata.txt +++ b/doc/de/autogen/plugin_api/hdata.txt @@ -175,7 +175,10 @@ 'items_count' (integer) + 'items_subcount' (pointer) + 'items_array' (pointer) + - 'bar_window' (pointer) + + 'items_prefix' (pointer) + + 'items_name' (pointer) + + 'items_suffix' (pointer) + + 'bar_window' (pointer, hdata: 'bar_window') + 'bar_refresh_needed' (integer) + 'prev_bar' (pointer, hdata: 'bar') + 'next_bar' (pointer, hdata: 'bar') | @@ -192,6 +195,30 @@ 'gui_bar_items' + 'last_gui_bar_item' +| weechat | bar_window | bar window | + 'bar' (pointer, hdata: 'bar') + + 'x' (integer) + + 'y' (integer) + + 'width' (integer) + + 'height' (integer) + + 'scroll_x' (integer) + + 'scroll_y' (integer) + + 'cursor_x' (integer) + + 'cursor_y' (integer) + + 'current_size' (integer) + + 'items_count' (integer) + + 'items_subcount' (pointer) + + 'items_content' (pointer) + + 'items_num_lines' (pointer) + + 'items_refresh_needed' (pointer) + + 'screen_col_size' (integer) + + 'coords_count' (integer) + + 'coords' (pointer) + + 'gui_objects' (pointer) + + 'prev_bar_window' (pointer, hdata: 'bar_window') + + 'next_bar_window' (pointer, hdata: 'bar_window') | + - + | weechat | buffer | Buffer | 'plugin' (pointer, hdata: 'plugin') + 'plugin_name_for_upgrade' (string) + @@ -383,9 +410,21 @@ 'prev_key' (pointer, hdata: 'key') + 'next_key' (pointer, hdata: 'key') | 'gui_default_keys' + + 'gui_default_keys_cursor' + + 'gui_default_keys_mouse' + + 'gui_default_keys_search' + 'gui_keys' + + 'gui_keys_cursor' + + 'gui_keys_mouse' + + 'gui_keys_search' + 'last_gui_default_key' + - 'last_gui_key' + 'last_gui_default_key_cursor' + + 'last_gui_default_key_mouse' + + 'last_gui_default_key_search' + + 'last_gui_key' + + 'last_gui_key_cursor' + + 'last_gui_key_mouse' + + 'last_gui_key_search' | weechat | line | Struktur mit einer Zeile | 'data' (pointer, hdata: 'line_data') + @@ -445,7 +484,7 @@ 'next_group' (pointer, hdata: 'nick_group') | - -| weechat | plugin | plugin | +| weechat | plugin | Erweiterung | 'filename' (string) + 'handle' (pointer) + 'name' (string) + @@ -473,8 +512,8 @@ 'win_chat_height' (integer) + 'win_chat_cursor_x' (integer) + 'win_chat_cursor_y' (integer) + - 'bar_windows' (pointer) + - 'last_bar_window' (pointer) + + 'bar_windows' (pointer, hdata: 'bar_window') + + 'last_bar_window' (pointer, hdata: 'bar_window') + 'refresh_needed' (integer) + 'gui_objects' (pointer) + 'buffer' (pointer, hdata: 'buffer') + diff --git a/doc/de/autogen/plugin_api/infolists.txt b/doc/de/autogen/plugin_api/infolists.txt index 86f757951..361991ade 100644 --- a/doc/de/autogen/plugin_api/infolists.txt +++ b/doc/de/autogen/plugin_api/infolists.txt @@ -48,7 +48,7 @@ | weechat | hotlist | Liste der Buffer in Hotlist | - | - -| weechat | key | Auflistung der Tastenzuweisungen | - | context ("default" or "search") (optional) +| weechat | key | Auflistung der Tastenzuweisungen | - | Kontext ("default" oder "search") (optional) | weechat | nicklist | Nicks in Nickliste für einen Buffer | Buffer Pointer | nick_xxx oder group_xxx um nur den Nick/Group xxx abzufragen (optional) diff --git a/doc/de/autogen/plugin_api/infos.txt b/doc/de/autogen/plugin_api/infos.txt index 4ca8a2015..dce6e38d0 100644 --- a/doc/de/autogen/plugin_api/infos.txt +++ b/doc/de/autogen/plugin_api/infos.txt @@ -28,6 +28,8 @@ | weechat | charset_terminal | Terminal Zeichensatz | - +| weechat | cursor_mode | 1 if cursor mode is enabled | - + | weechat | date | Datum der WeeChat Kompilierung | - | weechat | dir_separator | Verzeichnis-Trennzeichen | - diff --git a/doc/de/autogen/user/irc_options.txt b/doc/de/autogen/user/irc_options.txt index aaf6cf98d..4be8a5c90 100644 --- a/doc/de/autogen/user/irc_options.txt +++ b/doc/de/autogen/user/irc_options.txt @@ -194,12 +194,12 @@ ** Werte: current, server (Standardwert: `current`) * *irc.look.new_channel_position* -** Beschreibung: `Ein öffentlicher Channel wird auf eine Position gezwungen (none = standardmäßige Position (sollte die letzte Position sein), next = aktueller Buffer + 1, near_server = nach letztem Channel/privaten Buffer des Servers)` +** Beschreibung: `Ein neu geöffneter Channel wird auf eine Position gezwungen (none = standardmäßige Position (sollte der letzte Buffer in der Liste sein), next = aktueller Buffer + 1, near_server = nach dem letztem Channel/privaten Buffer des jeweiligen Servers)` ** Typ: integer ** Werte: none, next, near_server (Standardwert: `none`) * *irc.look.new_pv_position* -** Beschreibung: `Ein privater Buffer wird auf eine Position gezwungen (none = standardmäßige Position (sollte die letzte Position sein), next = aktueller Buffer + 1, near_server = nach letztem Channel/privaten Buffer des Servers)` +** Beschreibung: `Ein neuer privater Buffer wird auf eine Position gezwungen (none = standardmäßige Position (sollte der letzte Buffer in der Liste sein), next = aktueller Buffer + 1, near_server = nach dem letztem Channel/privaten Buffer des jeweiligen Servers)` ** Typ: integer ** Werte: none, next, near_server (Standardwert: `none`) diff --git a/doc/de/autogen/user/weechat_commands.txt b/doc/de/autogen/user/weechat_commands.txt index ffd596d0f..557370fb0 100644 --- a/doc/de/autogen/user/weechat_commands.txt +++ b/doc/de/autogen/user/weechat_commands.txt @@ -16,44 +16,44 @@ message: Abwesenheitsnachricht (ohne eine Nachricht wird der Abwesenheitszustand hide|show|toggle <name> scroll <name> <buffer> <scroll_value> - list: listet alle Infobars auf - listfull: listet alle Infobars detailliert auf (Standardaufruf) - listitems: listet alle Items auf, die in den Infobars genutzt werden - add: füge eine neue Infobar hinzu - name: Name der Infobar (muss einmalig sein) - type: root: außerhalb des Fensters, - window: innerhalb des Fensters, mit optionalen Merkmalen (siehe unten) - cond1,...: Merkmal(e) für eine Infobar (nur nutzbar mit der Type-Option "window"): - active: in einem aktiven Fenster - inactive: in einem inaktiven Fenster - nicklist: in Fenstern mit einer Nickliste - werden keine Merkmale angegeben, ist die Infobar immer sichtbar - position: bottom (unten), top (oben), left (links) oder right (rechts) - size: Größe der Infobar (in Zeichen) - separator: 1 um eine Trennlinien zu zeichnen, bei 0 oder ohne eine Angabe wird keine Trennlinien gezeichnet - item1,...: Items die in der Infobar genutzt werden sollen (Items können durch Kommata oder Leerzeichen getrennt werden ("+" (verbindet Items)) - default: erstellt standardisierte Infobars - del: entfernt eine Infobar (alle Infobars können mit der Option "-all" entfernt werden). - set: setzt einen Wert für Infobar - option: Optionen die geändert werden (für eine List der möglichen Optionen, bitte folgenden Befehl nutzen: /set weechat.bar.<barname>.*) - value: neuer Wert für Option - hide: Infobar wird ausgeblendet - show: zeigt eine ausgeblendete Infobar an - toggle: zeigt/versteckt eine Infobar - scroll: scrollt Infobar hoch/runter - buffer: Name des Buffer der gescrollt werden soll ('*' für aktuellen Buffer, man sollte '*' für root-Infobars nutzen) - scroll_value: Werte für Scroll-Funktion: 'x' oder 'y', gefolgt von '+', '-', 'b' (Beginn) oder 'e' (Ende), Wert (für +/-), und Optional %% (zum scrollen für %% der Breite/Höhe, ansonsten wird der Wert als Anzahl der Zeichen interpretiert um die gescrollt werden soll) + list: list all bars + listfull: list all bars (verbose) + listitems: list all bar items + add: add a new bar + name: name of bar (must be unique) + type: root: outside windows, + window: inside windows, with optional conditions (see below) + cond1,...: condition(s) for displaying bar (only for type "window"): + active: on active window + inactive: on inactive windows + nicklist: on windows with nicklist + without condition, bar is always displayed + position: bottom, top, left or right + size: size of bar (in chars) + separator: 1 for using separator (line), 0 or nothing means no separator + item1,...: items for this bar (items can be separated by comma (space between items) or "+" (glued items)) + default: create a default bar (all default bars if no bar name is given) + del: delete a bar (or all bars with -all) + set: set a value for a bar property + option: option to change (for options list, look at /set weechat.bar.<barname>.*) + value: new value for option + hide: hide a bar + show: show an hidden bar + toggle: hide/show a bar + scroll: scroll bar + buffer: name of buffer to scroll ('*' means current buffer, you should use '*' for root bars) + scroll_value: value for scroll: 'x' or 'y' (optional), followed by '+', '-', 'b' (beginning) or 'e' (end), value (for +/-), and optional % (to scroll by % of width/height, otherwise value is number of chars) -Beispiele: - erstellt eine Infobar mit den Items: time, buffer number + name, und Vervollständigung: +Examples: + create a bar with time, buffer number + name, and completion: /bar add mybar root bottom 1 0 [time],buffer_number+:+buffer_name,completion - versteckt die Infobar (meinebar): - /bar hide meinebar - scrollt die Nickliste im aktuellen Buffer um 10 Zeilen nach unten: + hide a bar: + /bar hide mybar + scroll nicklist 10 lines down on current buffer: /bar scroll nicklist * y+10 - scrollt die Nickliste im Buffer #weechat eine ganze Seite nach oben: + scroll nicklist one page up on #weechat buffer: /bar scroll nicklist #weechat y-100% - scrollt zum Ende der Nicklist im aktuellen Buffer: + scroll to end of nicklist on current buffer: /bar scroll nicklist * ye ........................................ @@ -140,12 +140,33 @@ Erweiterung: Name der Erweiterung ('weechat' für interne WeeChat Befehle) Befehl: auszuführender Befehl (es wird automatisch ein '/' vorangestellt, falls dieser nicht angegeben wurde) ........................................ +[command]*`cursor`* free movement of cursor on screen to execute actions on specific areas of screen:: +........................................ +/cursor go chat|<bar>|<x>,<y> + move up|down|left|right|area_up|area_down|area_left|area_right + stop + + go: move cursor to chat area, a bar (using bar name) or coordinates "x,y" +move: move cursor with direction +stop: stop cursor mode + +Without argument, this command toggles cursor mode. + +When mouse is enabled (see /help mouse), by default a middle click will start cursor mode at this point. + +Examples: + go to nicklist: + /cursor go nicklist + go to coordinates x=10, y=5: + /cursor go 10,5 +........................................ + [command]*`debug`* Debug-Kontrolle für Hauptprogramm und/oder Erweiterung:: ........................................ /debug list set <plugin> <level> dump [<plugin>] - buffer|color|infolists|memory|tags|term|windows + buffer|color|cursor|infolists|memory|mouse|tags|term|windows hdata [free] list: list plugins with debug levels @@ -155,9 +176,11 @@ Erweiterung: Name der Erweiterung ('weechat' für interne WeeChat Befehle) dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes) buffer: dump buffer content with hexadecimal values in log file color: display infos about current color pairs + cursor: toggle debug for cursor mode hdata: display infos about hdata (with free: remove all hdata in memory) infolists: display infos about infolists memory: display infos about memory usage + mouse: toggle debug for mouse tags: display tags for lines term: display infos about terminal windows: display windows tree @@ -279,8 +302,8 @@ list of actions: jump_previously_visited_buffer: jump to previously visited buffer jump_next_visited_buffer: jump to next visited buffer hotlist_clear: clear hotlist - grab_key: grab a key - grab_key_command: grab a key with its associated command + 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) scroll_unread: scroll to unread marker set_unread: set unread marker for all buffers set_unread_current_buffer: set unread marker for current buffer @@ -318,6 +341,14 @@ listdefault: list default keys When binding a command to a key, it is recommended to use key alt+k (or Esc then k), and then press the key to bind: this will insert key code in command line. +For context "mouse" (possible in context "cursor" too), key has format: "@area:key" where area can be: + *: any area on screen + chat: chat area + bar(*): any bar + bar(xxx): bar "xxx" + item(*): any bar item + item(xxx): bar item "xxx" + Examples: key alt-x to toggle nicklist bar: /key bind meta-x /bar toggle nicklist @@ -327,6 +358,8 @@ Examples: /key reset meta-r key "tab" to stop search in buffer: /key bindctxt search ctrl-I /input search_stop + middle button of mouse on a nick to retrieve info on nick: + /key bindctxt mouse @item(buffer_nicklist):button3 /msg nickserv info ${nick} ........................................ [command]*`layout`* Layout für Buffer und Fenster speichern, anwenden oder zurücksetzen:: @@ -344,6 +377,25 @@ windows: speichert/verwendet nur Fenster (Buffer welche im jeweiligen Fenster da Wird der Befehl ohne Argumente aufgerufen wird das gespeicherte Layout dargestellt. ........................................ +[command]*`mouse`* mouse control:: +........................................ +/mouse enable|disable|toggle [<delay>] + + enable: enable mouse +disable: disable mouse + toggle: toggle mouse + delay: delay (in seconds) after which initial mouse state is restored (useful to temporarily disable mouse) + +To enable/disable mouse at startup, use: + /set weechat.look.mouse on/off + +Examples: + enable mouse: + /mouse enable + toggle mouse for 5 seconds: + /mouse toggle 5 +........................................ + [command]*`mute`* Führt einen Befehl ohne Textausgabe aus:: ........................................ /mute [-current | -buffer <name> | -all] command diff --git a/doc/de/autogen/user/weechat_options.txt b/doc/de/autogen/user/weechat_options.txt index ad22a0f00..772ba463e 100644 --- a/doc/de/autogen/user/weechat_options.txt +++ b/doc/de/autogen/user/weechat_options.txt @@ -364,7 +364,7 @@ ** Werte: beliebige Zeichenkette (Standardwert: `"%a, %d %b %Y"`) * *weechat.look.eat_newline_glitch* -** Beschreibung: `wird diese Option aktiviert, dann wird /"eat_newline_glitch/" auf 0 gesetzt; dies wird genutzt um keinen Zeilenumbruch am Ende einer Zeile ` +** Beschreibung: `aktiviert man diese Option, dann wird "eat_newline_glitch" auf 0 gesetzt; dies bedeutet, dass am Ende einer Zeile kein Zeilenumbruch angehangen wird und somit der Text beim kopieren aus WeeChat und beim einfügen in einer anderen Applikation nicht umgebrochen wird (diese Option ist standardmäßig deaktiviert, da es zu schwerwiegenden Grafikfehlern kommen kann)` ** Typ: boolesch ** Werte: on, off (Standardwert: `off`) @@ -473,6 +473,11 @@ ** Typ: boolesch ** Werte: on, off (Standardwert: `on`) +* *weechat.look.mouse* +** Beschreibung: `enable mouse support at startup (to enable it now, see /help mouse)` +** Typ: boolesch +** Werte: on, off (Standardwert: `off`) + * *weechat.look.nickmode* ** Beschreibung: `Nickmode ((half)op/voice [@%+]) vor dem Nicknamen anzeigen` ** Typ: boolesch @@ -599,7 +604,7 @@ ** Werte: beliebige Zeichenkette (Standardwert: `"-"`) * *weechat.look.separator_vertical* -** Beschreibung: `char used to draw vertical separators around bars (empty value will draw a real line with ncurses), wide chars are NOT allowed here` +** Beschreibung: `Das angegebene Zeichen wird genutzt um damit die vertikale Linien zu zeichnen. Wird kein Zeichen angegeben zeichnet ncurses eine durchgezogene Linie. Wide Chars sind für diese Option NICHT erlaubt.` ** Typ: Zeichenkette ** Werte: beliebige Zeichenkette (Standardwert: `""`) diff --git a/doc/de/weechat_user.de.txt b/doc/de/weechat_user.de.txt index 098684c1e..ed74420aa 100644 --- a/doc/de/weechat_user.de.txt +++ b/doc/de/weechat_user.de.txt @@ -411,20 +411,20 @@ Standard Tastenbelegung Tastenbefehle für die Befehlszeile ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,.^10,.^5l",options="header"] |======================================== | Taste | Beschreibung | Befehl -| @k(←) .2+| setzt den Cursor eine Position nach links .2+| /input move_previous_char +| @k(←) .2+| setzt den Cursor eine Position nach links .2+| /input move_previous_char | @k(C-)@k(b) -| @k(→) .2+| setzt den Cursor eine Position nach rechts .2+| /input move_next_char +| @k(→) .2+| setzt den Cursor eine Position nach rechts .2+| /input move_next_char | @k(C-)@k(f) -| @k(C-)@k(←) .2+| springt in der Befehlszeile zum Anfang des vorherigen Wortes .2+| /input move_previous_word +| @k(C-)@k(←) .2+| springt in der Befehlszeile zum Anfang des vorherigen Wortes .2+| /input move_previous_word | @k(A-)@k(b) -| @k(C-)@k(→) .2+| springt in der Befehlszeile zum Anfang des nächsten Wortes .2+| /input move_next_word +| @k(C-)@k(→) .2+| springt in der Befehlszeile zum Anfang des nächsten Wortes .2+| /input move_next_word | @k(A-)@k(f) -| @k(Home) .2+| springt zum Anfang der Befehlszeile .2+| /input move_beginning_of_line +| @k(Home) .2+| springt zum Anfang der Befehlszeile .2+| /input move_beginning_of_line | @k(C-)@k(a) -| @k(End) .2+| springt ans Ende der Befehlszeile .2+| /input move_end_of_line +| @k(End) .2+| springt ans Ende der Befehlszeile .2+| /input move_end_of_line | @k(C-)@k(e) | @k(C-)@k(c) , @k(b) | fügt Steuerzeichen für fett geschrieben Text ein | /input insert \x02 | @k(C-)@k(c) , @k(c) | fügt Steuerzeichen für Textfarbe ein | /input insert \x03 @@ -432,9 +432,9 @@ Tastenbefehle für die Befehlszeile | @k(C-)@k(c) , @k(o) | fügt Steuerzeichen für Standardfarbe ein | /input insert \x0F | @k(C-)@k(c) , @k(r) | fügt Steuerzeichen für Hintergrundfarbe ein | /input insert \x12 | @k(C-)@k(c) , @k(u) | fügt Steuerzeichen für unterstrichenen Text ein | /input insert \x15 -| @k(Del) .2+| entfernt in der Befehlszeile das nächste Zeichen .2+| /input delete_next_char +| @k(Del) .2+| entfernt in der Befehlszeile das nächste Zeichen .2+| /input delete_next_char | @k(C-)@k(d) -| @k(Backsp.) .2+| entfernt in der Befehlszeile das vorherige Zeichen .2+| /input delete_previous_char +| @k(Backsp.) .2+| entfernt in der Befehlszeile das vorherige Zeichen .2+| /input delete_previous_char | @k(C-)@k(h) | @k(C-)@k(k) | entfernt alle Zeichen vom Cursor bis zum Ende der Zeile (Zeichenkette wird in Zwischenablage kopiert) | /input delete_end_of_line | @k(C-)@k(r) | Textsuche im Verlaufsspeicher des Buffers (siehe <<key_bindings_search_context,Tasten für Such-Kontext>>) | /input search_text @@ -446,7 +446,7 @@ Tastenbefehle für die Befehlszeile | @k(A-)@k(_) | Wiederherstellen der letzten Aktion, in der Befehlszeile | /input redo | @k(Tab) | Vervollständigung von Befehlen oder Nicks (nochmaliges @k(Tab): findet nächste Vervollständigung) | /input complete_next | @k(S-)@k(Tab) | ohne Vervollständigung: führt eine teilweise Vervollständigung durch. Bei unerledigter Vervollständigung : wird die vorherige Vervollständigung genutzt | /input complete_previous -| @k(Enter) .3+| führt einen Befehl aus oder sendet den Text (im Such-Modus: stoppt Suche) .3+| /input return +| @k(Enter) .3+| führt einen Befehl aus oder sendet den Text (im Such-Modus: stoppt Suche) .3+| /input return | @k(C-)@k(j) | @k(C-)@k(m) | @k(↑) | ruft vorherigen Befehl oder Nachricht aus dem Verlaufsspeicher auf (im Such-Modus: rückwärts suchen) | /input history_previous @@ -462,7 +462,7 @@ Tastenbefehle für die Befehlszeile Tastenbefehle für Buffer / Fenster ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,.^10,.^5l",options="header"] |======================================== | Taste | Beschreibung | Befehl | @k(C-)@k(l) | Fenster wird neu gezeichnet | /window refresh @@ -474,23 +474,24 @@ Tastenbefehle für Buffer / Fenster | @k(A-)@k(PgDn) | einige Zeilen im Verlaufsspeicher des Buffer nach unten blättern | /window scroll_down | @k(A-)@k(Home) | springt zur ersten Zeile des Verlaufsspeichers des aktuellen Buffers| /window scroll_top | @k(A-)@k(End) | springt zur letzten Zeile des Verlaufsspeichers des aktuellen Buffers | /window scroll_bottom -| @k(A-)@k(←) .4+| zum vorherigen Buffer springen .4+| /buffer -1 +| @k(A-)@k(←) .4+| zum vorherigen Buffer springen .4+| /buffer -1 | @k(A-)@k(↑) | @k(C-)@k(p) | @k(F5) -| @k(A-)@k(→) .4+| zum nächsten Buffer springen .4+| /buffer +1 +| @k(A-)@k(→) .4+| zum nächsten Buffer springen .4+| /buffer +1 | @k(A-)@k(↓) | @k(C-)@k(n) | @k(F6) | @k(F7) | zum vorherigen Fenster wechseln | /window -1 | @k(F8) | zum nächsten Fenster wechseln | /window +1 -| @k(F9) | Titel des Buffers nach links verschieben | /bar scroll title * x-50% -| @k(F10) | Titel des Buffers nach rechts verschieben | /bar scroll title * x+50% -| @k(F11) | Nickliste um eine Seite nach oben blättern | /bar scroll nicklist * y-100% -| @k(F12) | Nickliste um eine Seite nach unten blättern | /bar scroll nicklist * y+100% -| @k(A-)@k(F11) | springt zum Anfang der Nickliste | /bar scroll nicklist * yb -| @k(A-)@k(F12) | springt zum Ende der Nickliste | /bar scroll nicklist * ye +| @k(F9) | Titel des Buffers nach links verschieben | /bar scroll title * -30% +| @k(F10) | Titel des Buffers nach rechts verschieben | /bar scroll title * +30% +| @k(F11) | Nickliste um eine Seite nach oben blättern | /bar scroll nicklist * -100% +| @k(F12) | Nickliste um eine Seite nach unten blättern | /bar scroll nicklist * +100% +| @k(A-)@k(F11) | springt zum Anfang der Nickliste | /bar scroll nicklist * b +| @k(A-)@k(F12) | springt zum Ende der Nickliste | /bar scroll nicklist * e | @k(A-)@k(a) | wechselt zum nächsten Buffer mit Aktivität (nach Priorität: highlight, Nachricht, ...) | /input jump_smart +| @k(A-)@k(h) | löscht Hotliste (Aktivitätsanzeige für die Buffer) | /input hotlist_clear | @k(A-)@k(j) , @k(A-)@k(l) | wechselt zum letzten Buffer | /input jump_last_buffer | @k(A-)@k(j) , @k(A-)@k(r) | wechselt zum IRC RAW Buffer | /server raw | @k(A-)@k(j) , @k(A-)@k(s) | wechselt zum IRC Server Buffer | /server jump @@ -508,6 +509,7 @@ Tastenbefehle für Buffer / Fenster | @k(A-)@k(z) | Zoom für aktuelles Fenster (nochmals @k(A-)@k(z): stellt die vorherigen Einstellungen wieder her) | /window zoom | @k(A-)@k(<) | springt zum letzten besuchten Buffer | /input jump_previously_visited_buffer | @k(A-)@k(>) | springt zum nächsten besuchten Buffer | /input jump_next_visited_buffer +| @k(A-)@k(=) | schaltet Filterfunktion an/aus | /filter toggle |======================================== [[key_bindings_search_context]] @@ -517,26 +519,73 @@ Tasten für "Suchen"-Kontext Diese Tasten werden im Kontext "search" verwendet (wenn @k(C-)@k(r) genutzt wird um in einem Buffer nach einem Text zu suchen). -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,.^10,.^5l",options="header"] |======================================== -| Taste | Beschreibung | Befehl -| @k(C-)@k(r) | auf Groß-/Kleinschreibung umschalten | /input search_switch_case -| @k(↑) | sucht vorheriger Zeile | /input search_previous -| @k(↓) | sucht nächste Zeile | /input search_next -| @k(Enter) .3+| Suche abbrechen .3+| /input search_stop +| Taste | Beschreibung | Befehl +| @k(C-)@k(r) | auf Groß-/Kleinschreibung umschalten | /input search_switch_case +| @k(↑) | sucht vorheriger Zeile | /input search_previous +| @k(↓) | sucht nächste Zeile | /input search_next +| @k(Enter) .3+| Suche abbrechen .3+| /input search_stop | @k(C-)@k(j) | @k(C-)@k(m) |======================================== -[[key_bindings_other]] -andere Tastenbefehle -^^^^^^^^^^^^^^^^^^^^ +// TRANSLATION MISSING +[[key_bindings_cursor_context]] +Keys for "cursor" context +^^^^^^^^^^^^^^^^^^^^^^^^^ + +These keys are used in context "cursor" (free movement of cursor on screen). + +[width="100%",cols="^.^3,^.^3,.^10,.^5l",options="header"] +|======================================== +| Key | Area | Description | Command +| @k(↑) | - | Move cursor one line up | /cursor move up +| @k(↓) | - | Move cursor one line down | /cursor move down +| @k(←) | - | Move cursor one column left | /cursor move left +| @k(→) | - | Move cursor one column right | /cursor move right +| @k(A-)@k(↑) | - | Move cursor one area up | /cursor move area_up +| @k(A-)@k(↓) | - | Move cursor one area down | /cursor move area_down +| @k(A-)@k(←) | - | Move cursor one area left | /cursor move area_left +| @k(A-)@k(→) | - | Move cursor one area right | /cursor move area_right +| @k(b) | nicklist | Ban nick | /ban ${nick} +| @k(k) | nicklist | Kick nick | /kick ${nick} +| @k(K) | nicklist | Kick and ban nick | /kickban ${nick} +| @k(q) | nicklist | Open query with nick | /query ${nick};/cursor stop +| @k(w) | nicklist | Do a whois on nick | /whois ${nick} +| @k(Enter) .3+| - .3+| Stop cursor mode .3+| /cursor stop +| @k(C-)@k(j) +| @k(C-)@k(m) +|======================================== + +// TRANSLATION MISSING +[[key_bindings_mouse_context]] +Keys for "mouse" context +^^^^^^^^^^^^^^^^^^^^^^^^ + +These keys are used in context "mouse", namely when a mouse event occurs. -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,^.^3,^.^3,.^10,.^5l",options="header"] |======================================== -| Taste | Beschreibung | Befehl -| @k(A-)@k(h) | löscht Hotliste (Aktivitätsanzeige für die Buffer) | /input hotlist_clear -| @k(A-)@k(=) | schaltet Filterfunktion an/aus | /filter toggle +| Button | Gesture | Area | Description | Command +| ◾◽◽ | left | chat | zum vorherigen Buffer springen | /buffer +1 +| ◾◽◽ | right | chat | zum nächsten Buffer springen | /buffer +1 +| ◾◽◽ | left (long) | chat | Switch to first buffer | /buffer 1 +| ◾◽◽ | right (long) | chat | wechselt zum letzten Buffer | /input jump_last_buffer +| wheel ⇑ | - | chat | einige Zeilen im Verlaufsspeicher des Buffer nach oben blättern | /window scroll_up +| wheel ⇓ | - | chat | einige Zeilen im Verlaufsspeicher des Buffer nach unten blättern | /window scroll_down +| ◾◽◽ | up | nicklist | Nickliste um eine Seite nach oben blättern | /bar scroll nicklist * -100% +| ◾◽◽ | down | nicklist | Nickliste um eine Seite nach unten blättern | /bar scroll nicklist * +100% +| ◾◽◽ | up (long) | nicklist | springt zum Anfang der Nickliste | /bar scroll nicklist * b +| ◾◽◽ | down (long) | nicklist | springt zum Ende der Nickliste | /bar scroll nicklist * e +| ◾◽◽ | - | nicklist | Open query with nick | /query ${nick} +| ◽◽◾ | - | nicklist | Do a whois on nick | /whois ${nick} +| ◾◽◽ | left | nicklist | Kick nick | /kick ${nick} +| ◾◽◽ | left (long) | nicklist | Kick and ban nick | /kickban ${nick} +| ◽◽◾ | left | nicklist | Ban nick | /ban ${nick} +| wheel ⇑ | - | any bar | Scroll bar by -10% | /bar scroll ${_bar_name} * -10% +| wheel ⇓ | - | any bar | Scroll bar by +10% | /bar scroll ${_bar_name} * +10% +| ◽◾◽ | - | anywhere | Start cursor mode at this point | /cursor go ${_x},${_y} |======================================== [[command_line]] diff --git a/doc/en/autogen/plugin_api/completions.txt b/doc/en/autogen/plugin_api/completions.txt index b0bc80eeb..1e909099c 100644 --- a/doc/en/autogen/plugin_api/completions.txt +++ b/doc/en/autogen/plugin_api/completions.txt @@ -78,6 +78,8 @@ | weechat | config_options | configuration options +| weechat | cursor_areas | areas ("chat" or bar name) for free cursor movement + | weechat | filename | filename | weechat | filters_names | names of filters diff --git a/doc/en/autogen/plugin_api/hdata.txt b/doc/en/autogen/plugin_api/hdata.txt index e6ff1fa15..b4c46732c 100644 --- a/doc/en/autogen/plugin_api/hdata.txt +++ b/doc/en/autogen/plugin_api/hdata.txt @@ -175,7 +175,10 @@ 'items_count' (integer) + 'items_subcount' (pointer) + 'items_array' (pointer) + - 'bar_window' (pointer) + + 'items_prefix' (pointer) + + 'items_name' (pointer) + + 'items_suffix' (pointer) + + 'bar_window' (pointer, hdata: 'bar_window') + 'bar_refresh_needed' (integer) + 'prev_bar' (pointer, hdata: 'bar') + 'next_bar' (pointer, hdata: 'bar') | @@ -192,6 +195,30 @@ 'gui_bar_items' + 'last_gui_bar_item' +| weechat | bar_window | bar window | + 'bar' (pointer, hdata: 'bar') + + 'x' (integer) + + 'y' (integer) + + 'width' (integer) + + 'height' (integer) + + 'scroll_x' (integer) + + 'scroll_y' (integer) + + 'cursor_x' (integer) + + 'cursor_y' (integer) + + 'current_size' (integer) + + 'items_count' (integer) + + 'items_subcount' (pointer) + + 'items_content' (pointer) + + 'items_num_lines' (pointer) + + 'items_refresh_needed' (pointer) + + 'screen_col_size' (integer) + + 'coords_count' (integer) + + 'coords' (pointer) + + 'gui_objects' (pointer) + + 'prev_bar_window' (pointer, hdata: 'bar_window') + + 'next_bar_window' (pointer, hdata: 'bar_window') | + - + | weechat | buffer | buffer | 'plugin' (pointer, hdata: 'plugin') + 'plugin_name_for_upgrade' (string) + @@ -383,9 +410,21 @@ 'prev_key' (pointer, hdata: 'key') + 'next_key' (pointer, hdata: 'key') | 'gui_default_keys' + + 'gui_default_keys_cursor' + + 'gui_default_keys_mouse' + + 'gui_default_keys_search' + 'gui_keys' + + 'gui_keys_cursor' + + 'gui_keys_mouse' + + 'gui_keys_search' + 'last_gui_default_key' + - 'last_gui_key' + 'last_gui_default_key_cursor' + + 'last_gui_default_key_mouse' + + 'last_gui_default_key_search' + + 'last_gui_key' + + 'last_gui_key_cursor' + + 'last_gui_key_mouse' + + 'last_gui_key_search' | weechat | line | structure with one line | 'data' (pointer, hdata: 'line_data') + @@ -473,8 +512,8 @@ 'win_chat_height' (integer) + 'win_chat_cursor_x' (integer) + 'win_chat_cursor_y' (integer) + - 'bar_windows' (pointer) + - 'last_bar_window' (pointer) + + 'bar_windows' (pointer, hdata: 'bar_window') + + 'last_bar_window' (pointer, hdata: 'bar_window') + 'refresh_needed' (integer) + 'gui_objects' (pointer) + 'buffer' (pointer, hdata: 'buffer') + diff --git a/doc/en/autogen/plugin_api/infos.txt b/doc/en/autogen/plugin_api/infos.txt index 708a570f1..f4fb2a5a7 100644 --- a/doc/en/autogen/plugin_api/infos.txt +++ b/doc/en/autogen/plugin_api/infos.txt @@ -28,6 +28,8 @@ | weechat | charset_terminal | terminal charset | - +| weechat | cursor_mode | 1 if cursor mode is enabled | - + | weechat | date | WeeChat compilation date | - | weechat | dir_separator | directory separator | - diff --git a/doc/en/autogen/user/weechat_commands.txt b/doc/en/autogen/user/weechat_commands.txt index 48f64285a..d35e0a27f 100644 --- a/doc/en/autogen/user/weechat_commands.txt +++ b/doc/en/autogen/user/weechat_commands.txt @@ -42,7 +42,7 @@ message: message for away (if no message is given, away status is removed) toggle: hide/show a bar scroll: scroll bar buffer: name of buffer to scroll ('*' means current buffer, you should use '*' for root bars) - scroll_value: value for scroll: 'x' or 'y', followed by '+', '-', 'b' (beginning) or 'e' (end), value (for +/-), and optional %% (to scroll by %% of width/height, otherwise value is number of chars) + scroll_value: value for scroll: 'x' or 'y' (optional), followed by '+', '-', 'b' (beginning) or 'e' (end), value (for +/-), and optional % (to scroll by % of width/height, otherwise value is number of chars) Examples: create a bar with time, buffer number + name, and completion: @@ -140,12 +140,33 @@ Examples: command: command to execute (a '/' is automatically added if not found at beginning of command) ........................................ +[command]*`cursor`* free movement of cursor on screen to execute actions on specific areas of screen:: +........................................ +/cursor go chat|<bar>|<x>,<y> + move up|down|left|right|area_up|area_down|area_left|area_right + stop + + go: move cursor to chat area, a bar (using bar name) or coordinates "x,y" +move: move cursor with direction +stop: stop cursor mode + +Without argument, this command toggles cursor mode. + +When mouse is enabled (see /help mouse), by default a middle click will start cursor mode at this point. + +Examples: + go to nicklist: + /cursor go nicklist + go to coordinates x=10, y=5: + /cursor go 10,5 +........................................ + [command]*`debug`* control debug for core/plugins:: ........................................ /debug list set <plugin> <level> dump [<plugin>] - buffer|color|infolists|memory|tags|term|windows + buffer|color|cursor|infolists|memory|mouse|tags|term|windows hdata [free] list: list plugins with debug levels @@ -155,9 +176,11 @@ command: command to execute (a '/' is automatically added if not found at beginn dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes) buffer: dump buffer content with hexadecimal values in log file color: display infos about current color pairs + cursor: toggle debug for cursor mode hdata: display infos about hdata (with free: remove all hdata in memory) infolists: display infos about infolists memory: display infos about memory usage + mouse: toggle debug for mouse tags: display tags for lines term: display infos about terminal windows: display windows tree @@ -279,8 +302,8 @@ list of actions: jump_previously_visited_buffer: jump to previously visited buffer jump_next_visited_buffer: jump to next visited buffer hotlist_clear: clear hotlist - grab_key: grab a key - grab_key_command: grab a key with its associated command + 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) scroll_unread: scroll to unread marker set_unread: set unread marker for all buffers set_unread_current_buffer: set unread marker for current buffer @@ -318,6 +341,14 @@ listdefault: list default keys When binding a command to a key, it is recommended to use key alt+k (or Esc then k), and then press the key to bind: this will insert key code in command line. +For context "mouse" (possible in context "cursor" too), key has format: "@area:key" where area can be: + *: any area on screen + chat: chat area + bar(*): any bar + bar(xxx): bar "xxx" + item(*): any bar item + item(xxx): bar item "xxx" + Examples: key alt-x to toggle nicklist bar: /key bind meta-x /bar toggle nicklist @@ -327,6 +358,8 @@ Examples: /key reset meta-r key "tab" to stop search in buffer: /key bindctxt search ctrl-I /input search_stop + middle button of mouse on a nick to retrieve info on nick: + /key bindctxt mouse @item(buffer_nicklist):button3 /msg nickserv info ${nick} ........................................ [command]*`layout`* save/apply/reset layout for buffers and windows:: @@ -344,6 +377,25 @@ windows: save/apply only windows (buffer displayed by each window) Without argument, this command displays saved layout. ........................................ +[command]*`mouse`* mouse control:: +........................................ +/mouse enable|disable|toggle [<delay>] + + enable: enable mouse +disable: disable mouse + toggle: toggle mouse + delay: delay (in seconds) after which initial mouse state is restored (useful to temporarily disable mouse) + +To enable/disable mouse at startup, use: + /set weechat.look.mouse on/off + +Examples: + enable mouse: + /mouse enable + toggle mouse for 5 seconds: + /mouse toggle 5 +........................................ + [command]*`mute`* execute a command silently:: ........................................ /mute [-current | -buffer <name> | -all] command diff --git a/doc/en/autogen/user/weechat_options.txt b/doc/en/autogen/user/weechat_options.txt index 559b221da..787bb77b4 100644 --- a/doc/en/autogen/user/weechat_options.txt +++ b/doc/en/autogen/user/weechat_options.txt @@ -473,6 +473,11 @@ ** type: boolean ** values: on, off (default value: `on`) +* *weechat.look.mouse* +** description: `enable mouse support at startup (to enable it now, see /help mouse)` +** type: boolean +** values: on, off (default value: `off`) + * *weechat.look.nickmode* ** description: `display nick mode ((half)op/voice) before each nick` ** type: boolean diff --git a/doc/en/weechat_plugin_api.en.txt b/doc/en/weechat_plugin_api.en.txt index c6e77ce8c..b38b1f70f 100644 --- a/doc/en/weechat_plugin_api.en.txt +++ b/doc/en/weechat_plugin_api.en.txt @@ -6042,7 +6042,7 @@ weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL); ---------------------------------------- Following hook types allow priority: command, command_run, signal, hsignal, -config, completion, modifier, info, info_hashtable, infolist, hdata. +config, completion, modifier, info, info_hashtable, infolist, hdata, focus. weechat_hook_command ^^^^^^^^^^^^^^^^^^^^ @@ -8229,6 +8229,86 @@ struct t_hook *my_hdata = weechat_hook_hdata ("my_hdata", [NOTE] This function is not available in scripting API. +weechat_hook_focus +^^^^^^^^^^^^^^^^^^ + +Hook a focus: mouse event or key pressed in cursor mode (free movement of +cursor). + +Prototype: + +[source,C] +---------------------------------------- +struct t_hook *weechat_hook_focus (const char *area, + struct t_hashtable *(*callback)(void *data, + struct t_hashtable *info), + void *callback_data); +---------------------------------------- + +Arguments: + +* 'area': "chat" for chat area, or name of bar item + (priority allowed, see note about <<hook_priority,priority>>) +* 'callback': function called when focus is made, arguments and return + value: +** 'void *data': pointer +** 'struct t_hashtable *info': hashtable with info on focus and strings returned + by other calls to focus callbacks (with higher priority); keys and values + are of type "string"; info on focus (filled by WeeChat) are: +*** '_x': column of focus on screen (first column on the left is "0") +*** '_y': line of focus on screen (first line on top is "0") +*** '_window': pointer of window with focus ("0x0" for a bar of type "root" + or for unknown area) +*** '_bar_name': name of bar with focus (NULL for chat area or for unknown + area) +*** '_bar_item_name': name of bar item with focus (NULL if focus is not in a + bar or if focus is after the end of last bar item) +*** '_item_line': line with focus in bar item (first line of bar item is "0") +*** '_item_col': column with focus in bar item (first column of bar item is "0") +** return value: either "info" pointer (hashtable completed), or pointer to a + new hashtable (created by callback, with keys and values of type "string"), + this new hashtable content will be added to 'info' for other calls to focus + callbacks +* 'callback_data': pointer given to callback when it is called by WeeChat + +Return value: + +* pointer to new hook, NULL if error occured + +C example: + +[source,C] +---------------------------------------- +struct t_hashtable * +my_focus_nicklist_cb (void *data, struct t_hashtable *info) +{ + /* add strings in hashtable */ + /* ... */ + + return info; +} + +/* add focus on nicklist */ +struct t_hook *my_focus = weechat_hook_focus ("buffer_nicklist", + &my_focus_nicklist_cb, NULL); +---------------------------------------- + +Script (Python): + +[source,python] +---------------------------------------- +# prototype +hook = weechat.hook_focus(area, callback, callback_data) + +# example +def my_focus_nicklist_cb(data, info): + # build dict + # ... + return my_dict + +hook = weechat.hook_focus("buffer_nicklist", "my_focus_nicklist_cb", "") +---------------------------------------- + weechat_unhook ^^^^^^^^^^^^^^ diff --git a/doc/en/weechat_user.en.txt b/doc/en/weechat_user.en.txt index 0ca58384f..938a796ed 100644 --- a/doc/en/weechat_user.en.txt +++ b/doc/en/weechat_user.en.txt @@ -412,20 +412,20 @@ Default key bindings Keys for command line ^^^^^^^^^^^^^^^^^^^^^ -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,.^10,.^5l",options="header"] |======================================== | Key | Description | Command -| @k(←) .2+| Go to previous char in command line .2+| /input move_previous_char +| @k(←) .2+| Go to previous char in command line .2+| /input move_previous_char | @k(C-)@k(b) -| @k(→) .2+| Go to next char in command line .2+| /input move_next_char +| @k(→) .2+| Go to next char in command line .2+| /input move_next_char | @k(C-)@k(f) -| @k(C-)@k(←) .2+| Go to previous word in command line .2+| /input move_previous_word +| @k(C-)@k(←) .2+| Go to previous word in command line .2+| /input move_previous_word | @k(A-)@k(b) -| @k(C-)@k(→) .2+| Go to next word in command line .2+| /input move_next_word +| @k(C-)@k(→) .2+| Go to next word in command line .2+| /input move_next_word | @k(A-)@k(f) -| @k(Home) .2+| Go to the beginning of command line .2+| /input move_beginning_of_line +| @k(Home) .2+| Go to the beginning of command line .2+| /input move_beginning_of_line | @k(C-)@k(a) -| @k(End) .2+| Go to the end of command line .2+| /input move_end_of_line +| @k(End) .2+| Go to the end of command line .2+| /input move_end_of_line | @k(C-)@k(e) | @k(C-)@k(c) , @k(b) | Insert code for bold text | /input insert \x02 | @k(C-)@k(c) , @k(c) | Insert code for colored text | /input insert \x03 @@ -433,9 +433,9 @@ Keys for command line | @k(C-)@k(c) , @k(o) | Insert code for color reset | /input insert \x0F | @k(C-)@k(c) , @k(r) | Insert code for reverse color | /input insert \x12 | @k(C-)@k(c) , @k(u) | Insert code for underlined text | /input insert \x15 -| @k(Del) .2+| Delete next char in command line .2+| /input delete_next_char +| @k(Del) .2+| Delete next char in command line .2+| /input delete_next_char | @k(C-)@k(d) -| @k(Backsp.) .2+| Delete previous char in command line .2+| /input delete_previous_char +| @k(Backsp.) .2+| Delete previous char in command line .2+| /input delete_previous_char | @k(C-)@k(h) | @k(C-)@k(k) | Delete from cursor until end of command line (deleted string is copied to clipboard) | /input delete_end_of_line | @k(C-)@k(r) | Search for text in buffer history (see <<key_bindings_search_context,keys for search context>>) | /input search_text @@ -447,7 +447,7 @@ Keys for command line | @k(A-)@k(_) | Redo last action on command line | /input redo | @k(Tab) | Complete command or nick (@k(Tab) again: find next completion) | /input complete_next | @k(S-)@k(Tab) | Without completion: do a partial completion, with pending completion: complete with previous completion | /input complete_previous -| @k(Enter) .3+| Execute command or send message (in search mode: stop search) .3+| /input return +| @k(Enter) .3+| Execute command or send message (in search mode: stop search) .3+| /input return | @k(C-)@k(j) | @k(C-)@k(m) | @k(↑) | Call previous command/message (in search mode: search up) | /input history_previous @@ -463,7 +463,7 @@ Keys for command line Keys for buffers / windows ^^^^^^^^^^^^^^^^^^^^^^^^^^ -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,.^10,.^5l",options="header"] |======================================== | Key | Description | Command | @k(C-)@k(l) | Redraw whole window | /window refresh @@ -475,23 +475,24 @@ Keys for buffers / windows | @k(A-)@k(PgDn) | Scroll down a few lines in buffer history | /window scroll_down | @k(A-)@k(Home) | Scroll to top of buffer | /window scroll_top | @k(A-)@k(End) | Scroll to bottom of buffer | /window scroll_bottom -| @k(A-)@k(←) .4+| Switch to previous buffer .4+| /buffer -1 +| @k(A-)@k(←) .4+| Switch to previous buffer .4+| /buffer -1 | @k(A-)@k(↑) | @k(C-)@k(p) | @k(F5) -| @k(A-)@k(→) .4+| Switch to next buffer .4+| /buffer +1 +| @k(A-)@k(→) .4+| Switch to next buffer .4+| /buffer +1 | @k(A-)@k(↓) | @k(C-)@k(n) | @k(F6) | @k(F7) | Switch to previous window | /window -1 | @k(F8) | Switch to next window | /window +1 -| @k(F9) | Scroll buffer's title on the left | /bar scroll title * x-50% -| @k(F10) | Scroll buffer's title on the right | /bar scroll title * x+50% -| @k(F11) | Scroll up one page in nicklist | /bar scroll nicklist * y-100% -| @k(F12) | Scroll down one page in nicklist | /bar scroll nicklist * y+100% -| @k(A-)@k(F11) | Go to the beginning of nicklist | /bar scroll nicklist * yb -| @k(A-)@k(F12) | Go to the end of nicklist | /bar scroll nicklist * ye +| @k(F9) | Scroll buffer's title on the left | /bar scroll title * -30% +| @k(F10) | Scroll buffer's title on the right | /bar scroll title * +30% +| @k(F11) | Scroll up one page in nicklist | /bar scroll nicklist * -100% +| @k(F12) | Scroll down one page in nicklist | /bar scroll nicklist * +100% +| @k(A-)@k(F11) | Go to the beginning of nicklist | /bar scroll nicklist * b +| @k(A-)@k(F12) | Go to the end of nicklist | /bar scroll nicklist * e | @k(A-)@k(a) | Switch to next buffer with activity (with priority: highlight, message, other) | /input jump_smart +| @k(A-)@k(h) | Clear hotlist (activity notification on other buffers) | /input hotlist_clear | @k(A-)@k(j) , @k(A-)@k(l) | Switch to last buffer | /input jump_last_buffer | @k(A-)@k(j) , @k(A-)@k(r) | Switch to IRC raw buffer | /server raw | @k(A-)@k(j) , @k(A-)@k(s) | Switch to IRC server buffer | /server jump @@ -509,6 +510,7 @@ Keys for buffers / windows | @k(A-)@k(z) | Zoom on current window (@k(A-)@k(z) again: restore initial windows state, before zoom) | /window zoom | @k(A-)@k(<) | Switch to previous buffer in list of visited buffers | /input jump_previously_visited_buffer | @k(A-)@k(>) | Switch to next buffer in list of visited buffers | /input jump_next_visited_buffer +| @k(A-)@k(=) | Toggle filters on/off | /filter toggle |======================================== [[key_bindings_search_context]] @@ -518,26 +520,71 @@ Keys for "search" context These keys are used in context "search" (when @k(C-)@k(r) is pressed to search text in buffer). -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,.^10,.^5l",options="header"] |======================================== -| Key | Description | Command -| @k(C-)@k(r) | Switch exact case for search | /input search_switch_case -| @k(↑) | Search previous line | /input search_previous -| @k(↓) | Search next line | /input search_next -| @k(Enter) .3+| Stop search .3+| /input search_stop +| Key | Description | Command +| @k(C-)@k(r) | Switch exact case for search | /input search_switch_case +| @k(↑) | Search previous line | /input search_previous +| @k(↓) | Search next line | /input search_next +| @k(Enter) .3+| Stop search .3+| /input search_stop | @k(C-)@k(j) | @k(C-)@k(m) |======================================== -[[key_bindings_other]] -Other keys -^^^^^^^^^^ +[[key_bindings_cursor_context]] +Keys for "cursor" context +^^^^^^^^^^^^^^^^^^^^^^^^^ + +These keys are used in context "cursor" (free movement of cursor on screen). + +[width="100%",cols="^.^3,^.^3,.^10,.^5l",options="header"] +|======================================== +| Key | Area | Description | Command +| @k(↑) | - | Move cursor one line up | /cursor move up +| @k(↓) | - | Move cursor one line down | /cursor move down +| @k(←) | - | Move cursor one column left | /cursor move left +| @k(→) | - | Move cursor one column right | /cursor move right +| @k(A-)@k(↑) | - | Move cursor one area up | /cursor move area_up +| @k(A-)@k(↓) | - | Move cursor one area down | /cursor move area_down +| @k(A-)@k(←) | - | Move cursor one area left | /cursor move area_left +| @k(A-)@k(→) | - | Move cursor one area right | /cursor move area_right +| @k(b) | nicklist | Ban nick | /ban ${nick} +| @k(k) | nicklist | Kick nick | /kick ${nick} +| @k(K) | nicklist | Kick and ban nick | /kickban ${nick} +| @k(q) | nicklist | Open query with nick | /query ${nick};/cursor stop +| @k(w) | nicklist | Do a whois on nick | /whois ${nick} +| @k(Enter) .3+| - .3+| Stop cursor mode .3+| /cursor stop +| @k(C-)@k(j) +| @k(C-)@k(m) +|======================================== + +[[key_bindings_mouse_context]] +Keys for "mouse" context +^^^^^^^^^^^^^^^^^^^^^^^^ + +These keys are used in context "mouse", namely when a mouse event occurs. -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,^.^3,^.^3,.^10,.^5l",options="header"] |======================================== -| Key | Description | Command -| @k(A-)@k(h) | Clear hotlist (activity notification on other buffers) | /input hotlist_clear -| @k(A-)@k(=) | Toggle filters on/off | /filter toggle +| Button | Gesture | Area | Description | Command +| ◾◽◽ | left | chat | Switch to previous buffer | /buffer +1 +| ◾◽◽ | right | chat | Switch to next buffer | /buffer +1 +| ◾◽◽ | left (long) | chat | Switch to first buffer | /buffer 1 +| ◾◽◽ | right (long) | chat | Switch to last buffer | /input jump_last_buffer +| wheel ⇑ | - | chat | Scroll up a few lines in buffer history | /window scroll_up +| wheel ⇓ | - | chat | Scroll down a few lines in buffer history | /window scroll_down +| ◾◽◽ | up | nicklist | Scroll up one page in nicklist | /bar scroll nicklist * -100% +| ◾◽◽ | down | nicklist | Scroll down one page in nicklist | /bar scroll nicklist * +100% +| ◾◽◽ | up (long) | nicklist | Go to the beginning of nicklist | /bar scroll nicklist * b +| ◾◽◽ | down (long) | nicklist | Go to the end of nicklist | /bar scroll nicklist * e +| ◾◽◽ | - | nicklist | Open query with nick | /query ${nick} +| ◽◽◾ | - | nicklist | Do a whois on nick | /whois ${nick} +| ◾◽◽ | left | nicklist | Kick nick | /kick ${nick} +| ◾◽◽ | left (long) | nicklist | Kick and ban nick | /kickban ${nick} +| ◽◽◾ | left | nicklist | Ban nick | /ban ${nick} +| wheel ⇑ | - | any bar | Scroll bar by -10% | /bar scroll ${_bar_name} * -10% +| wheel ⇓ | - | any bar | Scroll bar by +10% | /bar scroll ${_bar_name} * +10% +| ◽◾◽ | - | anywhere | Start cursor mode at this point | /cursor go ${_x},${_y} |======================================== [[command_line]] diff --git a/doc/fr/autogen/plugin_api/completions.txt b/doc/fr/autogen/plugin_api/completions.txt index b54610886..5aa171ffe 100644 --- a/doc/fr/autogen/plugin_api/completions.txt +++ b/doc/fr/autogen/plugin_api/completions.txt @@ -78,6 +78,8 @@ | weechat | config_options | options de configuration +| weechat | cursor_areas | zones ("chat" ou un nom de barre) pour le mouvement libre du curseur + | weechat | filename | nom de fichier | weechat | filters_names | noms des filtres diff --git a/doc/fr/autogen/plugin_api/hdata.txt b/doc/fr/autogen/plugin_api/hdata.txt index 8bff8c1b6..eb33cc3e0 100644 --- a/doc/fr/autogen/plugin_api/hdata.txt +++ b/doc/fr/autogen/plugin_api/hdata.txt @@ -175,7 +175,10 @@ 'items_count' (integer) + 'items_subcount' (pointer) + 'items_array' (pointer) + - 'bar_window' (pointer) + + 'items_prefix' (pointer) + + 'items_name' (pointer) + + 'items_suffix' (pointer) + + 'bar_window' (pointer, hdata: 'bar_window') + 'bar_refresh_needed' (integer) + 'prev_bar' (pointer, hdata: 'bar') + 'next_bar' (pointer, hdata: 'bar') | @@ -192,6 +195,30 @@ 'gui_bar_items' + 'last_gui_bar_item' +| weechat | bar_window | fenêtre de barre | + 'bar' (pointer, hdata: 'bar') + + 'x' (integer) + + 'y' (integer) + + 'width' (integer) + + 'height' (integer) + + 'scroll_x' (integer) + + 'scroll_y' (integer) + + 'cursor_x' (integer) + + 'cursor_y' (integer) + + 'current_size' (integer) + + 'items_count' (integer) + + 'items_subcount' (pointer) + + 'items_content' (pointer) + + 'items_num_lines' (pointer) + + 'items_refresh_needed' (pointer) + + 'screen_col_size' (integer) + + 'coords_count' (integer) + + 'coords' (pointer) + + 'gui_objects' (pointer) + + 'prev_bar_window' (pointer, hdata: 'bar_window') + + 'next_bar_window' (pointer, hdata: 'bar_window') | + - + | weechat | buffer | tampon | 'plugin' (pointer, hdata: 'plugin') + 'plugin_name_for_upgrade' (string) + @@ -383,9 +410,21 @@ 'prev_key' (pointer, hdata: 'key') + 'next_key' (pointer, hdata: 'key') | 'gui_default_keys' + + 'gui_default_keys_cursor' + + 'gui_default_keys_mouse' + + 'gui_default_keys_search' + 'gui_keys' + + 'gui_keys_cursor' + + 'gui_keys_mouse' + + 'gui_keys_search' + 'last_gui_default_key' + - 'last_gui_key' + 'last_gui_default_key_cursor' + + 'last_gui_default_key_mouse' + + 'last_gui_default_key_search' + + 'last_gui_key' + + 'last_gui_key_cursor' + + 'last_gui_key_mouse' + + 'last_gui_key_search' | weechat | line | structure avec une ligne | 'data' (pointer, hdata: 'line_data') + @@ -473,8 +512,8 @@ 'win_chat_height' (integer) + 'win_chat_cursor_x' (integer) + 'win_chat_cursor_y' (integer) + - 'bar_windows' (pointer) + - 'last_bar_window' (pointer) + + 'bar_windows' (pointer, hdata: 'bar_window') + + 'last_bar_window' (pointer, hdata: 'bar_window') + 'refresh_needed' (integer) + 'gui_objects' (pointer) + 'buffer' (pointer, hdata: 'buffer') + diff --git a/doc/fr/autogen/plugin_api/infos.txt b/doc/fr/autogen/plugin_api/infos.txt index 4f277aef9..194807d95 100644 --- a/doc/fr/autogen/plugin_api/infos.txt +++ b/doc/fr/autogen/plugin_api/infos.txt @@ -28,6 +28,8 @@ | weechat | charset_terminal | charset du terminal | - +| weechat | cursor_mode | 1 si le mode curseur est activé | - + | weechat | date | date de compilation de WeeChat | - | weechat | dir_separator | séparateur de répertoire | - diff --git a/doc/fr/autogen/user/weechat_commands.txt b/doc/fr/autogen/user/weechat_commands.txt index f355bfa39..8b9a2b853 100644 --- a/doc/fr/autogen/user/weechat_commands.txt +++ b/doc/fr/autogen/user/weechat_commands.txt @@ -42,7 +42,7 @@ message: message pour l'absence (si pas de message donné, le statut d'absence e toggle: cacher/montrer une barre scroll: faire défiler la barre tampon: catégorie et nom du tampon ('*' signifie le tampon courant, vous devez utiliser '*' pour les barres de type root) -valeur_scroll: valeur pour le défilement: 'x' ou 'y', suivi par '+', '-', 'b' (début) ou 'e' (fin), valeur (pour +/-), et un %% optionnel (pour faire défiler par %% de la largeur/hauteur, sinon la valeur est un nombre de caractères) +valeur_scroll: valeur pour le défilement: 'x' ou 'y' (optionnel), suivi par '+', '-', 'b' (début) ou 'e' (fin), valeur (pour +/-), et un % optionnel (pour faire défiler par % de la largeur/hauteur, sinon la valeur est un nombre de caractères) Exemples: créer une barre avec l'heure, numéro + nom de tampon, et la complétion: @@ -140,12 +140,33 @@ extension: nom de l'extension ('weechat' pour une commande interne WeeChat) commande: commande à exécuter (un '/' est automatiquement ajouté s'il n'est pas trouvé au début de la commande) ........................................ +[command]*`cursor`* mouvement libre du curseur sur l'écran pour exécuter des actions sur des zones spécifiques de l'écran:: +........................................ +/cursor go chat|<barre>|<x>,<y> + move up|down|left|right|area_up|area_down|area_left|area_right + stop + + go: déplacer le curseur vers la zone de discussion ("chat"), une barre (en utilisant son nom) ou les coordonnées "x,y" +move: déplacer le curseur dans une direction +stop: arrêter le mode curseur + +Sans paramètre, cette commande active/désactive le mode curseur. + +Lorsque la souris est activée (voir /help mouse), par défaut un clic du milieu démarre le mode curseur à ce point. + +Exemples: + aller dans la liste des pseudos: + /cursor go nicklist + aller aux coordonnées x=10, y=5: + /cursor go 10,5 +........................................ + [command]*`debug`* contrôle du debug pour le coeur/les extensions:: ........................................ /debug list set <extension> <niveau> dump [<extension>] - buffer|color|infolists|memory|tags|term|windows + buffer|color|cursor|infolists|memory|mouse|tags|term|windows hdata [free] list: lister les extensions avec leur niveau de debug @@ -155,9 +176,11 @@ extension: nom de l'extension ("core" pour le coeur de WeeChat) dump: afficher les variables mémoire WeeChat dans le fichier log (les mêmes messages sont affichés lorsque WeeChat plante) buffer: afficher le contenu du tampon en valeurs hexadécimales dans le fichier log color: afficher des infos sur les paires de couleur courantes + cursor: activer/désactiver le debug pour le mode curseur hdata: afficher des infos sur les hdata (avec free: supprimer tous les hdata en mémoire) infolists: afficher des infos sur les infolists memory: afficher des infos sur l'utilisation de la mémoire + mouse: activer/désactiver le debug pour la souris tags: afficher les étiquettes pour les lignes term: afficher des infos sur le terminal windows: afficher l'arbre des fenêtres @@ -279,8 +302,8 @@ list des actions: 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 - grab_key: capturer une touche - grab_key_command: capturer une touche avec sa commande associée + 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) scroll_unread: faire défiler jusqu'au marqueur de données non lues set_unread: définir le marqueur de données non lues pour tous les tampons set_unread_current_buffer: définir le marqueur de données non lues pour le tampon courant @@ -318,6 +341,14 @@ listdefault: afficher les touches par défaut Lors de l'association d'une commande à une touche, il est recommandé d'utiliser la touche alt+k (ou Echap puis k), et puis de presser la touche à associer: cela insère le code de la touche dans la ligne de commande. +Pour le contexte "mouse" (possible aussi pour le contexte "cursor"), la touche a le format: "@aire:key" où aire peut être : + *: n'importe quelle zone à l'écran + chat: la zone de discussion + bar(*): n'importe quelle barre + bar(xxx): la barre "xxx" + item(*): n'importe quel objet de barre + item(xxx): l'objet de barre "xxx" + Exemples: touche alt-x pour activer/désactiver la liste des pseudos: /key bind meta-x /bar toggle nicklist @@ -327,6 +358,8 @@ Exemples: /key reset meta-r touche "tab" pour arrêter la recherche dans le tampon: /key bindctxt search ctrl-I /input search_stop + bouton du milieu de la souris sur un pseudo pour récupérer les infos sur le pseudo: + /key bindctxt mouse @item(buffer_nicklist):button3 /msg nickserv info ${nick} ........................................ [command]*`layout`* sauver/appliquer/réinitialiser la disposition des tampons et fenêtres:: @@ -344,6 +377,25 @@ windows: sauver/appliquer seulement pour les fenêtres (le tampon affiché par c Sans paramètre, cette commande affiche la disposition sauvegardée. ........................................ +[command]*`mouse`* contrôle de la souris:: +........................................ +/mouse enable|disable|toggle [<délai>] + + enable: activer la souris +disable: désactiver la souris + toggle: activer/désactiver la souris + délai: délai (en secondes) après lequel l'état initial de la souris est restauré (pratique pour désactiver temporairement la souris) + +Pour activer/désactiver la souris au démarrage, faites : + /set weechat.look.mouse on/off + +Exemples: + activer la souris: + /mouse enable + activer/désactiver la souris pendant 5 secondes: + /mouse toggle 5 +........................................ + [command]*`mute`* exécuter une commande silencieusement:: ........................................ /mute [-current | -buffer <nom> | -all] commande diff --git a/doc/fr/autogen/user/weechat_options.txt b/doc/fr/autogen/user/weechat_options.txt index 23d799f4b..1c1ec44e4 100644 --- a/doc/fr/autogen/user/weechat_options.txt +++ b/doc/fr/autogen/user/weechat_options.txt @@ -473,6 +473,11 @@ ** type: booléen ** valeurs: on, off (valeur par défaut: `on`) +* *weechat.look.mouse* +** description: `activer le support de la souris au démarrage (pour l'activer maintenant, voir /help mouse)` +** type: booléen +** valeurs: on, off (valeur par défaut: `off`) + * *weechat.look.nickmode* ** description: `afficher le mode du pseudo ((half)op/voice) devant chaque utilisateur` ** type: booléen diff --git a/doc/fr/weechat_plugin_api.fr.txt b/doc/fr/weechat_plugin_api.fr.txt index ab804fe3d..23f40ba87 100644 --- a/doc/fr/weechat_plugin_api.fr.txt +++ b/doc/fr/weechat_plugin_api.fr.txt @@ -6109,7 +6109,8 @@ weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL); ---------------------------------------- Les types de "hooks" suivants autorisent une priorité : command, command_run, -signal, hsignal, config, completion, modifier, info, info_hashtable, infolist, hdata. +signal, hsignal, config, completion, modifier, info, info_hashtable, infolist, +hdata, focus. weechat_hook_command ^^^^^^^^^^^^^^^^^^^^ @@ -8294,7 +8295,7 @@ hook = weechat.hook_infolist(infolist_name, description, pointer_description, # exemple def my_infolist_cb(data, infolist_name, pointer, arguments): - # build infolist + # construction de l'infolist # ... return my_infolist @@ -8351,7 +8352,7 @@ my_hdata_cb (void *data, const char *hdata_name) return mon_hdata; } -/* ajouts le hdata "mon_hdata" */ +/* ajoute le hdata "mon_hdata" */ struct t_hook *my_hdata = weechat_hook_hdata ("mon_hdata", "Hdata pour ma structure", &my_hdata_cb, NULL); @@ -8360,6 +8361,92 @@ struct t_hook *my_hdata = weechat_hook_hdata ("mon_hdata", [NOTE] Cette fonction n'est pas disponible dans l'API script. +weechat_hook_focus +^^^^^^^^^^^^^^^^^^ + +Accroche un focus : évènement souris ou touche du clavier pressée dans le mode +"curseur" (mouvement libre du curseur). + +Prototype : + +[source,C] +---------------------------------------- +struct t_hook *weechat_hook_focus (const char *area, + struct t_hashtable *(*callback)(void *data, + struct t_hashtable *info), + void *callback_data); +---------------------------------------- + +Paramètres : + +* 'area' : "chat" pour la zone de discussion, ou un nom d'objet de barre + (priorité autorisée, voir la note sur la <<hook_priority,priorité>>) +* 'callback' : fonction appelée quand le focus est fait paramètres et valeur de + retour : +** 'void *data' : pointeur +** 'struct t_hashtable *info' : hashtable avec les informations sur le focus et + les chaînes retournées par les autres appels aux "callbacks" de focus (avec + plus haute priorité); les clés et valeurs sont de type "string"; les + informations sur le focus (remplies par WeeChat) sont : +*** '_x' : colonne du focus sur l'écran (la première colonne sur la gauche + est "0") +*** '_y' : ligne du focus sur l'écran (la première ligne en haut est "0") +*** '_window' : pointeur de la fenêtre avec le focus (NULL pour une barre de + type "root" ou pour une zone inconnue) +*** '_bar_name' : nom de la barre avec le focus (NULL pour la zone de discussion + ("chat") ou pour une zone inconnue) +*** '_bar_item_name' : nom de l'objet de barre avec le focus (NULL si le focus + n'est pas dans une barre ou si le focus est après le dernier objet de barre) +*** '_item_line' : ligne avec le focus dans l'objet de barre (la première ligne + de l'objet de barre est "0") +*** '_item_col' : colonne avec le focus dans l'objet de barre (la première + colonne de l'objet de barre est "0") +** valeur de retour : soit le pointeur vers la hashtable "info" (avec la + hashtable complétée), ou un pointeur vers une nouvelle hashtable (créée par + le "callback", avec clés et valeurs de type "string"), le contenu de cette + nouvelle hashtable sera ajouté à 'info' pour les autres appels aux + "callbacks" focus +* 'callback_data' : pointeur donné au "callback" lorsqu'il est appelé par + WeeChat + +Valeur de retour : + +* pointeur vers le nouveau "hook", NULL en cas d'erreur + +Exemple en C : + +[source,C] +---------------------------------------- +struct t_hashtable * +my_focus_nicklist_cb (void *data, struct t_hashtable *info) +{ + /* ajout de chaînes dans la hashtable */ + /* ... */ + + return info; +} + +/* ajoute le focus sur la liste des pseudos */ +struct t_hook *my_focus = weechat_hook_focus ("buffer_nicklist", + &my_focus_nicklist_cb, NULL); +---------------------------------------- + +Script (Python) : + +[source,python] +---------------------------------------- +# prototype +hook = weechat.hook_focus(area, callback, callback_data) + +# exemple +def my_focus_nicklist_cb(data, info): + # construction du dict + # ... + return my_dict + +hook = weechat.hook_focus("buffer_nicklist", "my_focus_nicklist_cb", "") +---------------------------------------- + weechat_unhook ^^^^^^^^^^^^^^ diff --git a/doc/fr/weechat_user.fr.txt b/doc/fr/weechat_user.fr.txt index 3e665186c..a52419d7c 100644 --- a/doc/fr/weechat_user.fr.txt +++ b/doc/fr/weechat_user.fr.txt @@ -420,20 +420,20 @@ Raccourcis clavier par défaut Touches pour la ligne de commande ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,.^10,.^5l",options="header"] |======================================== | Touche | Description | Commande -| @k(←) .2+| Aller au caractère précédent sur la ligne de commande .2+| /input move_previous_char +| @k(←) .2+| Aller au caractère précédent sur la ligne de commande .2+| /input move_previous_char | @k(C-)@k(b) -| @k(→) .2+| Aller au caractère suivant sur la ligne de commande .2+| /input move_next_char +| @k(→) .2+| Aller au caractère suivant sur la ligne de commande .2+| /input move_next_char | @k(C-)@k(f) -| @k(C-)@k(←) .2+| Aller au mot précédent sur la ligne de commande .2+| /input move_previous_word +| @k(C-)@k(←) .2+| Aller au mot précédent sur la ligne de commande .2+| /input move_previous_word | @k(A-)@k(b) -| @k(C-)@k(→) .2+| Aller au mot suivant sur la ligne de commande .2+| /input move_next_word +| @k(C-)@k(→) .2+| Aller au mot suivant sur la ligne de commande .2+| /input move_next_word | @k(A-)@k(f) -| @k(Home) .2+| Aller au début de la ligne de commande .2+| /input move_beginning_of_line +| @k(Home) .2+| Aller au début de la ligne de commande .2+| /input move_beginning_of_line | @k(C-)@k(a) -| @k(End) .2+| Aller à la fin de la ligne de commande .2+| /input move_end_of_line +| @k(End) .2+| Aller à la fin de la ligne de commande .2+| /input move_end_of_line | @k(C-)@k(e) | @k(C-)@k(c) , @k(b) | Insérer le code pour mettre le texte en gras | /input insert \x02 | @k(C-)@k(c) , @k(c) | Insérer le code pour écrire en couleur | /input insert \x03 @@ -441,9 +441,9 @@ Touches pour la ligne de commande | @k(C-)@k(c) , @k(o) | Insérer le code pour réinitaliser la couleur | /input insert \x0F | @k(C-)@k(c) , @k(r) | Insérer le code pour écrire en couleur inversée | /input insert \x12 | @k(C-)@k(c) , @k(u) | Insérer le code pour écrire en souligné | /input insert \x15 -| @k(Del) .2+| Effacer le caractère suivant sur la ligne de commande .2+| /input delete_next_char +| @k(Del) .2+| Effacer le caractère suivant sur la ligne de commande .2+| /input delete_next_char | @k(C-)@k(d) -| @k(Backsp.) .2+| Effacer le caractère précédent sur la ligne de commande .2+| /input delete_previous_char +| @k(Backsp.) .2+| Effacer le caractère précédent sur la ligne de commande .2+| /input delete_previous_char | @k(C-)@k(h) | @k(C-)@k(k) | Effacer du curseur jusqu'à la fin de la ligne de commande (la chaîne supprimée est copiée dans le presse-papiers) | /input delete_end_of_line | @k(C-)@k(r) | Chercher du texte dans l'historique du tampon (voir <<key_bindings_search_context,les touches pour le contexte de recherche>>) | /input search_text @@ -455,7 +455,7 @@ Touches pour la ligne de commande | @k(A-)@k(_) | Refaire la dernière action sur la ligne de commande | /input redo | @k(Tab) | Compléter la commande ou le pseudo (@k(Tab) de nouveau : trouver la complétion suivante) | /input complete_next | @k(S-)@k(Tab) | Sans complétion, effectue une complétion partielle. Avec une complétion en cours, complète avec la complétion précédente | /input complete_previous -| @k(Enter) .3+| Exécuter la commande ou envoyer le message (en mode recherche : arrêter la recherche) .3+| /input return +| @k(Enter) .3+| Exécuter la commande ou envoyer le message (en mode recherche : arrêter la recherche) .3+| /input return | @k(C-)@k(j) | @k(C-)@k(m) | @k(↑) | Rappeler la commande précédente (en mode recherche : chercher plus haut) | /input history_previous @@ -471,7 +471,7 @@ Touches pour la ligne de commande Touches pour les tampons / fenêtres ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,.^10,.^5l",options="header"] |======================================== | Touche | Description | Commande | @k(C-)@k(l) | Réafficher toute la fenêtre | /window refresh @@ -483,23 +483,24 @@ Touches pour les tampons / fenêtres | @k(A-)@k(PgDn) | Descendre de quelques lignes dans l'historique du tampon | /window scroll_down | @k(A-)@k(Home) | Aller au début du tampon | /window scroll_top | @k(A-)@k(End) | Aller à la fin du tampon | /window scroll_bottom -| @k(A-)@k(←) .4+| Aller au tampon précédent .4+| /buffer -1 +| @k(A-)@k(←) .4+| Aller au tampon précédent .4+| /buffer -1 | @k(A-)@k(↑) | @k(C-)@k(p) | @k(F5) -| @k(A-)@k(→) .4+| Aller au tampon suivant .4+| /buffer +1 +| @k(A-)@k(→) .4+| Aller au tampon suivant .4+| /buffer +1 | @k(A-)@k(↓) | @k(C-)@k(n) | @k(F6) | @k(F7) | Aller à la fenêtre précédente | /window -1 | @k(F8) | Aller à la fenêtre suivante | /window +1 -| @k(F9) | Faire défiler le titre du tampon vers la gauche | /bar scroll title * x-50% -| @k(F10) | Faire défiler le titre du tampon vers la droite | /bar scroll title * x+50% -| @k(F11) | Monter d'une page dans la liste des pseudos | /bar scroll nicklist * y-100% -| @k(F12) | Descendre d'une page dans la liste des pseudos | /bar scroll nicklist * y+100% -| @k(A-)@k(F11) | Aller au début de la liste des pseudos | /bar scroll nicklist * yb -| @k(A-)@k(F12) | Aller à la fin de la liste des pseudos | /bar scroll nicklist * ye +| @k(F9) | Faire défiler le titre du tampon vers la gauche | /bar scroll title * -30% +| @k(F10) | Faire défiler le titre du tampon vers la droite | /bar scroll title * +30% +| @k(F11) | Monter d'une page dans la liste des pseudos | /bar scroll nicklist * -100% +| @k(F12) | Descendre d'une page dans la liste des pseudos | /bar scroll nicklist * +100% +| @k(A-)@k(F11) | Aller au début de la liste des pseudos | /bar scroll nicklist * b +| @k(A-)@k(F12) | Aller à la fin de la liste des pseudos | /bar scroll nicklist * e | @k(A-)@k(a) | Sauter au prochain tampon avec activité (avec priorité : highlight, message, autre) | /input jump_smart +| @k(A-)@k(h) | Vider la hotlist (notification d'activité sur les autres tampons) | /input hotlist_clear | @k(A-)@k(j) , @k(A-)@k(l) | Sauter au dernier tampon | /input jump_last_buffer | @k(A-)@k(j) , @k(A-)@k(r) | Sauter au tampon IRC de données brutes | /server raw | @k(A-)@k(j) , @k(A-)@k(s) | Sauter au tampon IRC du serveur | /server jump @@ -517,36 +518,83 @@ Touches pour les tampons / fenêtres | @k(A-)@k(z) | Zoom sur la fenêtre courante (@k(A-)@k(z) de nouveau : restaurer l'état initial des fenêtres, avant le zoom) | /window zoom | @k(A-)@k(<) | Sauter au tampon précédent dans la liste des tampons visités | /input jump_previously_visited_buffer | @k(A-)@k(>) | Sauter au tampon suivant dans la liste des tampons visités | /input jump_next_visited_buffer +| @k(A-)@k(=) | Activer/désactiver les filtres | /filter toggle |======================================== [[key_bindings_search_context]] -Keys for "search" context -^^^^^^^^^^^^^^^^^^^^^^^^^ +Touches pour le contexte "search" +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Ces touches sont utilisées dans le contexte "search" (lorsque @k(C-)@k(r) est pressé pour chercher du texte dans le tampon). -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,.^10,.^5l",options="header"] |======================================== -| Touche | Description | Commande -| @k(C-)@k(r) | Basculer la casse exacte pour la recherche | /input search_switch_case -| @k(↑) | Chercher la ligne précédente | /input search_previous -| @k(↓) | Chercher la ligne suivante | /input search_next -| @k(Enter) .3+| Arrêter la recherche .3+| /input search_stop +| Touche | Description | Commande +| @k(C-)@k(r) | Basculer la casse exacte pour la recherche | /input search_switch_case +| @k(↑) | Chercher la ligne précédente | /input search_previous +| @k(↓) | Chercher la ligne suivante | /input search_next +| @k(Enter) .3+| Arrêter la recherche .3+| /input search_stop | @k(C-)@k(j) | @k(C-)@k(m) |======================================== +[[key_bindings_cursor_context]] +Touches pour le contexte "cursor" +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Ces touches sont utilisées dans le contexte "cursor" (mouvement libre du curseur +à l'écran). -[[key_bindings_other]] -Autres touches -^^^^^^^^^^^^^^ +[width="100%",cols="^.^3,^.^3,.^10,.^5l",options="header"] +|======================================== +| Touche | Zone | Description | Commande +| @k(↑) | - | Déplacer le curseur d'une ligne vers le haut | /cursor move up +| @k(↓) | - | Déplacer le curseur d'une ligne vers le bas | /cursor move down +| @k(←) | - | Déplacer le curseur d'une colonne vers la gauche | /cursor move left +| @k(→) | - | Déplacer le curseur d'une colonne vers la droite | /cursor move right +| @k(A-)@k(↑) | - | Déplacer le curseur vers la zone au dessus | /cursor move area_up +| @k(A-)@k(↓) | - | Déplacer le curseur vers la zone en dessous | /cursor move area_down +| @k(A-)@k(←) | - | Déplacer le curseur vers la zone sur la gauche | /cursor move area_left +| @k(A-)@k(→) | - | Déplacer le curseur vers la zone sur la droite | /cursor move area_right +| @k(b) | liste des pseudos | Bannir le pseudo | /ban ${nick} +| @k(k) | liste des pseudos | Retirer par la force le pseudo | /kick ${nick} +| @k(K) | liste des pseudos | Retirer par la force et bannir le pseudo | /kickban ${nick} +| @k(q) | liste des pseudos | Ouvrir une discussion avec le pseudo | /query ${nick};/cursor stop +| @k(w) | liste des pseudos | Effectuer un whois sur le pseudo | /whois ${nick} +| @k(Enter) .3+| - .3+| Stop cursor mode .3+| /cursor stop +| @k(C-)@k(j) +| @k(C-)@k(m) +|======================================== + +[[key_bindings_mouse_context]] +Touches pour le contexte "mouse" +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + +Ces touches sont utilisées dans le contexte "mouse", c'est-à-dire lorsqu'un +évènement de la souris se produit. -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,^.^3,^.^3,.^10,.^5l",options="header"] |======================================== -| Touche | Description | Commande -| @k(A-)@k(h) | Vider la hotlist (notification d'activité sur les autres tampons) | /input hotlist_clear -| @k(A-)@k(=) | Active/désactive les filtres | /filter toggle +| Bouton | Geste | Zone | Description | Commande +| ◾◽◽ | left | chat | Aller au tampon précédent | /buffer +1 +| ◾◽◽ | right | chat | Aller au tampon suivant | /buffer +1 +| ◾◽◽ | left (long) | chat | Aller au premier tampon | /buffer 1 +| ◾◽◽ | right (long) | chat | Aller au dernier tampon | /input jump_last_buffer +| roulette ⇑ | - | chat | Monter de quelques lignes dans l'historique du tampon | /window scroll_up +| roulette ⇓ | - | chat | Descendre de quelques lignes dans l'historique du tampon | /window scroll_down +| ◾◽◽ | up | liste des pseudos | Monter d'une page dans la liste des pseudos | /bar scroll nicklist * -100% +| ◾◽◽ | down | liste des pseudos | Descendre d'une page dans la liste des pseudos | /bar scroll nicklist * +100% +| ◾◽◽ | up (long) | liste des pseudos | Aller au début de la liste des pseudos | /bar scroll nicklist * b +| ◾◽◽ | down (long) | liste des pseudos | Aller à la fin de la liste des pseudos | /bar scroll nicklist * e +| ◾◽◽ | - | liste des pseudos | Ouvrir une discussion avec le pseudo | /query ${nick} +| ◽◽◾ | - | liste des pseudos | Effectuer un whois sur le pseudo | /whois ${nick} +| ◾◽◽ | left | liste des pseudos | Retirer par la force le pseudo | /kick ${nick} +| ◾◽◽ | left (long) | liste des pseudos | Retirer par la force et bannir le pseudo | /kickban ${nick} +| ◽◽◾ | left | liste des pseudos | Bannir le pseudo | /ban ${nick} +| roulette ⇑ | - | toute barre | Faire défiler la barre de -10% | /bar scroll ${_bar_name} * -10% +| roulette ⇓ | - | toute barre | Faire défiler la barre de +10% | /bar scroll ${_bar_name} * +10% +| ◽◾◽ | - | n'importe où | Démarrer le mode curseur ("cursor") à ce point | /cursor go ${_x},${_y} |======================================== [[command_line]] diff --git a/doc/it/autogen/plugin_api/completions.txt b/doc/it/autogen/plugin_api/completions.txt index ae2cd6d68..eab556506 100644 --- a/doc/it/autogen/plugin_api/completions.txt +++ b/doc/it/autogen/plugin_api/completions.txt @@ -78,6 +78,8 @@ | weechat | config_options | opzioni di configurazione +| weechat | cursor_areas | areas ("chat" or bar name) for free cursor movement + | weechat | filename | nome file | weechat | filters_names | nomi dei filtri @@ -86,7 +88,7 @@ | weechat | infos | nomi degli hook sulle info -| weechat | keys_codes | codici tasti +| weechat | keys_codes | codici tasto | weechat | keys_codes_for_reset | codici tasti che possono essere ripristinati (tasti aggiunti, ridefiniti o rimossi) diff --git a/doc/it/autogen/plugin_api/hdata.txt b/doc/it/autogen/plugin_api/hdata.txt index 44f2f6472..1de895931 100644 --- a/doc/it/autogen/plugin_api/hdata.txt +++ b/doc/it/autogen/plugin_api/hdata.txt @@ -1,8 +1,8 @@ [width="100%",cols="^1,^2,5,5,5",options="header"] |======================================== -| Plugin | Nome | Descrizione | Variables | Lists +| Plugin | Nome | Descrizione | Variabili | Liste -| irc | irc_channel | irc channel | +| irc | irc_channel | canale irc | 'type' (integer) + 'name' (string) + 'topic' (string) + @@ -30,14 +30,14 @@ 'next_channel' (pointer, hdata: 'irc_channel') | - -| irc | irc_channel_speaking | irc channel_speaking | +| irc | irc_channel_speaking | channel_speaking irc | 'nick' (string) + 'time_last_message' (time) + 'prev_nick' (pointer, hdata: 'irc_channel_speaking') + 'next_nick' (pointer, hdata: 'irc_channel_speaking') | - -| irc | irc_ignore | irc ignore | +| irc | irc_ignore | ignore irc | 'number' (integer) + 'mask' (string) + 'regex_mask' (pointer) + @@ -48,7 +48,7 @@ 'irc_ignore_list' + 'last_irc_ignore' -| irc | irc_nick | irc nick | +| irc | irc_nick | nick irc | 'name' (string) + 'host' (string) + 'prefixes' (string) + @@ -59,7 +59,7 @@ 'next_nick' (pointer, hdata: 'irc_nick') | - -| irc | irc_notify | irc notify | +| irc | irc_notify | notify irc | 'server' (pointer, hdata: 'irc_server') + 'nick' (string) + 'check_away' (integer) + @@ -70,7 +70,7 @@ 'next_notify' (pointer, hdata: 'irc_notify') | - -| irc | irc_redirect | irc redirect | +| irc | irc_redirect | redirezione irc | 'server' (pointer, hdata: 'irc_server') + 'pattern' (string) + 'signal' (string) + @@ -92,7 +92,7 @@ 'next_redirect' (pointer, hdata: 'irc_redirect') | - -| irc | irc_redirect_pattern | pattern for irc redirect | +| irc | irc_redirect_pattern | schema per la redirezione irc | 'name' (string) + 'temp_pattern' (integer) + 'timeout' (integer) + @@ -104,7 +104,7 @@ 'irc_redirect_patterns' + 'last_irc_redirect_pattern' -| irc | irc_server | irc server | +| irc | irc_server | server irc | 'name' (string) + 'options' (pointer) + 'temp_server' (integer) + @@ -167,7 +167,7 @@ 'irc_servers' + 'last_irc_server' -| weechat | bar | bar | +| weechat | bar | barra | 'name' (string) + 'options' (pointer) + 'conditions_count' (integer) + @@ -175,14 +175,17 @@ 'items_count' (integer) + 'items_subcount' (pointer) + 'items_array' (pointer) + - 'bar_window' (pointer) + + 'items_prefix' (pointer) + + 'items_name' (pointer) + + 'items_suffix' (pointer) + + 'bar_window' (pointer, hdata: 'bar_window') + 'bar_refresh_needed' (integer) + 'prev_bar' (pointer, hdata: 'bar') + 'next_bar' (pointer, hdata: 'bar') | 'gui_bars' + 'last_gui_bar' -| weechat | bar_item | bar item | +| weechat | bar_item | elemento barra | 'plugin' (pointer, hdata: 'plugin') + 'name' (string) + 'build_callback' (pointer) + @@ -192,6 +195,30 @@ 'gui_bar_items' + 'last_gui_bar_item' +| weechat | bar_window | bar window | + 'bar' (pointer, hdata: 'bar') + + 'x' (integer) + + 'y' (integer) + + 'width' (integer) + + 'height' (integer) + + 'scroll_x' (integer) + + 'scroll_y' (integer) + + 'cursor_x' (integer) + + 'cursor_y' (integer) + + 'current_size' (integer) + + 'items_count' (integer) + + 'items_subcount' (pointer) + + 'items_content' (pointer) + + 'items_num_lines' (pointer) + + 'items_refresh_needed' (pointer) + + 'screen_col_size' (integer) + + 'coords_count' (integer) + + 'coords' (pointer) + + 'gui_objects' (pointer) + + 'prev_bar_window' (pointer, hdata: 'bar_window') + + 'next_bar_window' (pointer, hdata: 'bar_window') | + - + | weechat | buffer | buffer | 'plugin' (pointer, hdata: 'plugin') + 'plugin_name_for_upgrade' (string) + @@ -260,7 +287,7 @@ 'gui_buffers' + 'last_gui_buffer' -| weechat | completion | structure with completion | +| weechat | completion | struttura con completamento | 'buffer' (pointer, hdata: 'buffer') + 'context' (integer) + 'base_command' (string) + @@ -282,14 +309,14 @@ 'last_partial_completion' (pointer, hdata: 'completion_partial') | - -| weechat | completion_partial | structure with partial completion | +| weechat | completion_partial | struttura con completamento parziale | 'word' (string) + 'count' (integer) + 'prev_item' (pointer, hdata: 'completion_partial') + 'next_item' (pointer, hdata: 'completion_partial') | - -| weechat | config_file | config file | +| weechat | config_file | file di configurazione | 'plugin' (pointer, hdata: 'plugin') + 'name' (string) + 'filename' (string) + @@ -303,7 +330,7 @@ 'config_files' + 'last_config_file' -| weechat | config_option | config option | +| weechat | config_option | opzione di configurazione | 'config_file' (pointer, hdata: 'config_file') + 'section' (pointer, hdata: 'config_section') + 'name' (string) + @@ -326,7 +353,7 @@ 'next_option' (pointer, hdata: 'config_option') | - -| weechat | config_section | config section | +| weechat | config_section | sezione di configurazione | 'config_file' (pointer, hdata: 'config_file') + 'name' (string) + 'user_can_add_options' (integer) + @@ -347,7 +374,7 @@ 'next_section' (pointer, hdata: 'config_section') | - -| weechat | filter | filter | +| weechat | filter | filtro | 'enabled' (integer) + 'name' (string) + 'buffer_name' (string) + @@ -364,30 +391,42 @@ 'gui_filters' + 'last_gui_filter' -| weechat | history | history of commands in buffer | +| weechat | history | cronologia dei comandi nel buffer | 'text' (string) + 'next_history' (pointer, hdata: 'history') + 'prev_history' (pointer, hdata: 'history') | - -| weechat | input_undo | structure with undo for input line | +| weechat | input_undo | struttura con "undo"per la riga di input | 'data' (string) + 'pos' (integer) + 'prev_undo' (pointer, hdata: 'input_undo') + 'next_undo' (pointer, hdata: 'input_undo') | - -| weechat | key | a key (keyboard shortcut) | +| weechat | key | un tasto (scorciatoia da tastiera) | 'key' (string) + 'command' (string) + 'prev_key' (pointer, hdata: 'key') + 'next_key' (pointer, hdata: 'key') | 'gui_default_keys' + + 'gui_default_keys_cursor' + + 'gui_default_keys_mouse' + + 'gui_default_keys_search' + 'gui_keys' + + 'gui_keys_cursor' + + 'gui_keys_mouse' + + 'gui_keys_search' + 'last_gui_default_key' + - 'last_gui_key' + 'last_gui_default_key_cursor' + + 'last_gui_default_key_mouse' + + 'last_gui_default_key_search' + + 'last_gui_key' + + 'last_gui_key_cursor' + + 'last_gui_key_mouse' + + 'last_gui_key_search' -| weechat | line | structure with one line | +| weechat | line | struttura con una sola riga | 'data' (pointer, hdata: 'line_data') + 'prev_line' (pointer, hdata: 'line') + 'next_line' (pointer, hdata: 'line') | @@ -409,7 +448,7 @@ 'message' (string) | - -| weechat | lines | structure with lines | +| weechat | lines | struttura con più righe | 'first_line' (pointer, hdata: 'line') + 'last_line' (pointer, hdata: 'line') + 'last_read_line' (pointer, hdata: 'line') + @@ -420,7 +459,7 @@ 'prefix_max_length' (integer) | - -| weechat | nick | nick in nicklist | +| weechat | nick | nick nella lista nick | 'group' (pointer, hdata: 'nick_group') + 'name' (string) + 'color' (string) + @@ -431,7 +470,7 @@ 'next_nick' (pointer, hdata: 'nick') | - -| weechat | nick_group | group in nicklist | +| weechat | nick_group | gruppo nella lista nick | 'name' (string) + 'color' (string) + 'visible' (integer) + @@ -460,7 +499,7 @@ 'last_weechat_plugin' + 'weechat_plugins' -| weechat | window | window | +| weechat | window | finestra | 'win_x' (integer) + 'win_y' (integer) + 'win_width' (integer) + @@ -473,8 +512,8 @@ 'win_chat_height' (integer) + 'win_chat_cursor_x' (integer) + 'win_chat_cursor_y' (integer) + - 'bar_windows' (pointer) + - 'last_bar_window' (pointer) + + 'bar_windows' (pointer, hdata: 'bar_window') + + 'last_bar_window' (pointer, hdata: 'bar_window') + 'refresh_needed' (integer) + 'gui_objects' (pointer) + 'buffer' (pointer, hdata: 'buffer') + @@ -488,7 +527,7 @@ 'gui_windows' + 'last_gui_window' -| weechat | window_scroll | scroll info in window | +| weechat | window_scroll | scorrimento delle info nella finestra | 'buffer' (pointer, hdata: 'buffer') + 'first_line_displayed' (integer) + 'start_line' (pointer, hdata: 'line') + @@ -501,7 +540,7 @@ 'next_scroll' (pointer, hdata: 'window_scroll') | - -| weechat | window_tree | tree of windows | +| weechat | window_tree | albero delle finestre | 'parent_node' (pointer, hdata: 'window_tree') + 'split_pct' (integer) + 'split_horizontal' (integer) + diff --git a/doc/it/autogen/plugin_api/infolists.txt b/doc/it/autogen/plugin_api/infolists.txt index e06ad235a..756b288a8 100644 --- a/doc/it/autogen/plugin_api/infolists.txt +++ b/doc/it/autogen/plugin_api/infolists.txt @@ -48,7 +48,7 @@ | weechat | hotlist | elenco dei buffer nella hotlist | - | - -| weechat | key | elenco di tasti associati | - | context ("default" or "search") (optional) +| weechat | key | elenco di tasti associati | - | contesto ("default" oppure "search") (opzionale) | weechat | nicklist | nick nella lista nick per un buffer | puntatore al buffer | nick_xxx o group_xxx per ottenere solo xxx di nick/group (opzionale) diff --git a/doc/it/autogen/plugin_api/infos.txt b/doc/it/autogen/plugin_api/infos.txt index c7f92cc81..8846e82ff 100644 --- a/doc/it/autogen/plugin_api/infos.txt +++ b/doc/it/autogen/plugin_api/infos.txt @@ -28,6 +28,8 @@ | weechat | charset_terminal | set caratteri terminale | - +| weechat | cursor_mode | 1 if cursor mode is enabled | - + | weechat | date | data di compilazione di WeeChat | - | weechat | dir_separator | separatore cartella | - diff --git a/doc/it/autogen/user/irc_commands.txt b/doc/it/autogen/user/irc_commands.txt index 2ba39c47c..f39d68221 100644 --- a/doc/it/autogen/user/irc_commands.txt +++ b/doc/it/autogen/user/irc_commands.txt @@ -141,22 +141,22 @@ server: nome del server da cui disconnettersi add [re:]<nick> [<server> [<canale>]] del <numero>|-all - list: list all ignores - add: add an ignore - nick: nick or hostname (can be regular expression if "re:" is given or a mask using "*" to replace one or more chars) - del: delete an ignore - number: number of ignore to delete (look at list to find it) - -all: delete all ignores - server: internal server name where ignore is working - channel: channel name where ignore is working - -Examples: - ignore nick "toto" everywhere: - /ignore add toto - ignore host "toto@domain.com" on freenode server: - /ignore add toto@domain.com freenode - ignore host "toto*@*.domain.com" on freenode/#weechat: - /ignore add toto*@*.domain.com freenode #weechat + list: elenca tutti gli ignore + add: aggiungi un ignore + nick: nick oppure hostname (può essere un'espressione regolare se forinito il parametro "-re:") + del: elimina un ignore + numero: numero di ignore da eliminare (nella lista) + -all: elimina tutti gli ignore + server: nome interno del server dove l'ignore è attivo + canale: nome del canale dove l'ignore è attivo + +Esempi: + ignora nick "tizio" su tutti gli host/canali: + /ignore add tizio + ignora l'host "tizio@dominio.com" sul server freenode: + /ignore add tizio@dominio.com freenode + ignora l'host "tizio*@*.dominio.com" su freenode/#weechat: + /ignore add tizio*@*.dominio.com freenode #weechat ........................................ [command]*`info`* ottieni informazioni sul server:: diff --git a/doc/it/autogen/user/logger_options.txt b/doc/it/autogen/user/logger_options.txt index 87ac292d4..4f2dad485 100644 --- a/doc/it/autogen/user/logger_options.txt +++ b/doc/it/autogen/user/logger_options.txt @@ -4,7 +4,7 @@ ** valori: on, off (valore predefinito: `on`) * *logger.file.flush_delay* -** descrizione: `number of seconds between flush of log files (0 = write in log files immediately for each line printed)` +** descrizione: `numero di secondi tra il flush (scrittura) dei file di log (0 = scrive sui file di log immediatamente per ogni riga stampata)` ** tipo: intero ** valori: 0 .. 3600 (valore predefinito: `120`) diff --git a/doc/it/autogen/user/weechat_commands.txt b/doc/it/autogen/user/weechat_commands.txt index 6b2099e15..3e68a51a9 100644 --- a/doc/it/autogen/user/weechat_commands.txt +++ b/doc/it/autogen/user/weechat_commands.txt @@ -16,44 +16,44 @@ messaggio: messaggio di assenza (se non specificato, lo stato di assenza viene r hide|show|toggle <nome> scroll <nome> <buffer> <scroll_value> - list: elenca tutte le barre - listfull: elenca tutte le barre (dettagliato) - listitems: elenca tutti gli elementi della barra - add: aggiunge una nuova barra - nome: nome della barra (deve essere unico) - tipo: root: al di fuori delle finestre, - window: all'interno delle finestre, con opzioni condizionali (a seguire) - cond1,...: condizione(i) per visualizzare la barra (solo per il tipo "window"): - active: sulla finestra attiva - inactive: sulle finestre inattive - nicklist: sulle finestre con la lista nick - senza condizione, viene sempre mostrata - posizione: bottom (basso), top (alto), left (sinistra) o right (destra) - dimensione: dimensione della barra (in caratteri) - separatore: 1 per utilizzarlo (riga), 0 o nulla equivale a nessun separatore - item1,...: elementi per questa barra (possono essere separati da virgole (spazio tra gli elementi) o "+" (elementi incollati)) - default: crea una barra predefinita (saranno tutte predefinite se non viene dato un nome per la barra) - del: elimina una barra (o tutte le barre con -all) - set: imposta un valore per la proprietà di una barra - opzione: opzione da cambiare (per una lista di opzioni, consultare /set weechat.bar.<barname>.*) - valore: nuovo valore per l'opzione - hide: nasconde una barra - show: mostra una barra nascosta - toggle: nascone/mostra una barra - scroll: scorre una barra - buffer: nome del buffer da scorrere ('*' indica il buffer corrente, si dovrebbe utilizzare '*' per le barre root) - scroll_value: valore per lo scorrimento: 'x' o 'y', seguite da '+', '-', 'b' (inizio) or 'e' (fine), valore (per +/-), e %% opzionale (per scorrere di %% di larghezza/altezza, altrimenti il valore è il numero di caratteri) + list: list all bars + listfull: list all bars (verbose) + listitems: list all bar items + add: add a new bar + name: name of bar (must be unique) + type: root: outside windows, + window: inside windows, with optional conditions (see below) + cond1,...: condition(s) for displaying bar (only for type "window"): + active: on active window + inactive: on inactive windows + nicklist: on windows with nicklist + without condition, bar is always displayed + position: bottom, top, left or right + size: size of bar (in chars) + separator: 1 for using separator (line), 0 or nothing means no separator + item1,...: items for this bar (items can be separated by comma (space between items) or "+" (glued items)) + default: create a default bar (all default bars if no bar name is given) + del: delete a bar (or all bars with -all) + set: set a value for a bar property + option: option to change (for options list, look at /set weechat.bar.<barname>.*) + value: new value for option + hide: hide a bar + show: show an hidden bar + toggle: hide/show a bar + scroll: scroll bar + buffer: name of buffer to scroll ('*' means current buffer, you should use '*' for root bars) + scroll_value: value for scroll: 'x' or 'y' (optional), followed by '+', '-', 'b' (beginning) or 'e' (end), value (for +/-), and optional % (to scroll by % of width/height, otherwise value is number of chars) -Esempi: - crea una barra con l'ora, numero del buffer + nome, e completamento: - /bar add miabarra root bottom 1 0 [time],buffer_number+:+buffer_name,completion - nasconde una barra: - /bar hide miabarra - scorre la lista nick di 10 righe in basso sul buffer corrente: +Examples: + create a bar with time, buffer number + name, and completion: + /bar add mybar root bottom 1 0 [time],buffer_number+:+buffer_name,completion + hide a bar: + /bar hide mybar + scroll nicklist 10 lines down on current buffer: /bar scroll nicklist * y+10 - scorre la lista nick di una pagina in alto sul buffer #weechat: + scroll nicklist one page up on #weechat buffer: /bar scroll nicklist #weechat y-100% - scorre fino alla fine della lista nick sul buffer corrente: + scroll to end of nicklist on current buffer: /bar scroll nicklist * ye ........................................ @@ -140,12 +140,33 @@ Esempi: comando: comando da eseguire (una '/' viene aggiunta automaticamente se non trovata all'inizio del comando) ........................................ +[command]*`cursor`* free movement of cursor on screen to execute actions on specific areas of screen:: +........................................ +/cursor go chat|<bar>|<x>,<y> + move up|down|left|right|area_up|area_down|area_left|area_right + stop + + go: move cursor to chat area, a bar (using bar name) or coordinates "x,y" +move: move cursor with direction +stop: stop cursor mode + +Without argument, this command toggles cursor mode. + +When mouse is enabled (see /help mouse), by default a middle click will start cursor mode at this point. + +Examples: + go to nicklist: + /cursor go nicklist + go to coordinates x=10, y=5: + /cursor go 10,5 +........................................ + [command]*`debug`* attiva debug per core/plugin:: ........................................ /debug list set <plugin> <level> dump [<plugin>] - buffer|color|infolists|memory|tags|term|windows + buffer|color|cursor|infolists|memory|mouse|tags|term|windows hdata [free] list: list plugins with debug levels @@ -155,9 +176,11 @@ comando: comando da eseguire (una '/' viene aggiunta automaticamente se non trov dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes) buffer: dump buffer content with hexadecimal values in log file color: display infos about current color pairs + cursor: toggle debug for cursor mode hdata: display infos about hdata (with free: remove all hdata in memory) infolists: display infos about infolists memory: display infos about memory usage + mouse: toggle debug for mouse tags: display tags for lines term: display infos about terminal windows: display windows tree @@ -170,52 +193,52 @@ infolists: display infos about infolists add <nome> <buffer>[,<buffer>...] <tag> <regex>] del <nome>|-all - list: list all filters - enable: enable filters (filters are enabled by default) -disable: disable filters - toggle: toggle filters - name: filter name - add: add a filter - del: delete a filter - -all: delete all filters - buffer: comma separated list of buffers where filter is active: - - this is full name including plugin (example: "irc.freenode.#weechat") - - "*" means all buffers - - a name starting with '!' is excluded - - name can start or end with '*' to match many buffers - tags: comma separated list of tags, for example: "irc_join,irc_part,irc_quit" - regex: regular expression to search in line - - use '\t' to separate prefix from message, special chars like '|' must be escaped: '\|' - - if regex starts with '!', then matching result is reversed (use '\!' to start with '!') - - two regular expressions are created: one for prefix and one for message - -The default key alt+'=' toggles filtering on/off. - -Tags most commonly used: - no_filter, no_highlight, no_log, log0..log9 (log level), + list: elenca tutti i filtri + enable: abilita filtri (i filtri sono abilitati di default) + disable: disabilita filtri + toggle: abilita/disabilita filtri + nome: nome del filtro + add: aggiunge un filtro + del: elimina un filtro + -all: elimina tutti i filtri + buffer: elenco separato da virgole di buffer in cui il filtro è attivo: + - nome completo che include il plugin (esempio: "irc.freenode.#weechat) + - "*" indica tutti i buffer + - un nome preceduto da '!' viene escluso + - un nome può iniziare o terminare con '*' per includere più buffer + tag: elenco di tag separati da virgole, per esempio: "irc_join,irc_part,irc_quit" + regex: espressione regolare da cercare nella riga + - usare '\t' per separare il prefisso dal messaggio, caratteri speciali come "|" vanno preceduti dal carattere escape: '\|') + - se l'espressione regolare inizia con '!', il risultato corrispondente viene invertito (usare '\!' per iniziare con '!') + + -vengono create due espressioni regolari: una per il prefisso e l'altra per il messaggio + +Il tasto predefinito alt+'=' abilita/disabilita il filtro. + +Tag utilizzati di frequente: + no_filter, no_highlight, no_log, log0..log9 (livello di log), notify_none, notify_message, notify_private, notify_highlight, - nick_xxx (xxx is nick in message), - irc_xxx (xxx is command name or number, see /server raw), - irc_numeric, irc_error, irc_action, irc_ctcp, irc_ctcp_reply, irc_smart_filter, away_info. -To see tags for lines in buffers: /debug tags + nick_xxx (xxx è il nick nel messaggio), + irc_xxx (xxx è il nome comando o il numero, consultare /server raw), irc_numeric, irc_error, irc_action, irc_ctcp, irc_ctcp_reply, irc_smart_filter, away_info. +Per mostrare i tag per le righe nei buffer: /debug tags -Examples: - use IRC smart filter on all buffers: - /filter add irc_smart * irc_smart_filter * - use IRC smart filter on all buffers except those with "#weechat" in name: - /filter add irc_smart *,!*#weechat* irc_smart_filter * - filter all IRC join/part/quit messages: - /filter add joinquit * irc_join,irc_part,irc_quit * - filter nicks displayed when joining channels or with /names: +Esempi: + usa il filtro intelligente IRC per tutti i buffer: + /filter add irc_smart * irc_smart_filter * + usa il filtro intelligente IRC su tutti i buffer tranne quelli che contengono "#weechat" nel nome: + /filter add irc_smart *,!*weechat* irc_smart_filter + filtra tutti i messaggi entrata/uscita/abbandono di IRC: + /filter add joinquit * irc_join,irc_part,irc_quit * + filtra i nick visualizzati all'ingresso in un canale o con /names: /filter add nicks * irc_366 * - filter nick "toto" on IRC channel #weechat: - /filter add toto irc.freenode.#weechat * toto\t - keep only nick "titi" on IRC channel #test: - /filter add titi irc.freenode.#test * !titi\t - filter lines containing word "spam": + filtra il nick "tizio" sul canale IRC #weechat + /filter add tizio irc.freenode.#esempio * tizio\t + filtra solo il nick "caio" sul canale IRC #test: + /filter add caio irc.freenode.#test * !caio\t + filtra le righe contententi la parola "spam": /filter add filterspam * * spam - filter lines containing "weechat sucks" on IRC channel #weechat: - /filter add sucks irc.freenode.#weechat * weechat sucks + filtra le righe contententi "weechat fa schifo" sul canale IRC #weechat: + /filter add schifo irc.freenode.#weechat * weechat fa schifo ........................................ [command]*`help`* visualizza l'aiuto su comandi e opzioni:: @@ -279,8 +302,8 @@ list of actions: jump_previously_visited_buffer: jump to previously visited buffer jump_next_visited_buffer: jump to next visited buffer hotlist_clear: clear hotlist - grab_key: grab a key - grab_key_command: grab a key with its associated command + 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) scroll_unread: scroll to unread marker set_unread: set unread marker for all buffers set_unread_current_buffer: set unread marker for current buffer @@ -293,15 +316,15 @@ This command is used by key bindings or plugins. [command]*`key`* associa/disassocia tasti:: ........................................ -/key list|listdefault|listdiff [<context>] - bind <key> [<command> [<args>]] - bindctxt <context> <key> [<command> [<args>]] - unbind <key> - unbindctxt <context> <key> - reset <key> - resetctxt <context> <key> - resetall -yes [<context>] - missing [<context>] +/key list|listdefault|listdiff [<contesto>] + bind <tasto> [<comando> [<arg>]] + bindctxt <contesto> <tasto> [<comando> <arg>]] + unbind <tasto> + unbindctxt <contesto> <chiave> + reset <tasto> + resetctxt <contesto> <tasto> + resetall -yes [<contesto>] + missing [<contesto>] list: list all current keys (without argument, this list is displayed) listdefault: list default keys @@ -318,6 +341,14 @@ listdefault: list default keys When binding a command to a key, it is recommended to use key alt+k (or Esc then k), and then press the key to bind: this will insert key code in command line. +For context "mouse" (possible in context "cursor" too), key has format: "@area:key" where area can be: + *: any area on screen + chat: chat area + bar(*): any bar + bar(xxx): bar "xxx" + item(*): any bar item + item(xxx): bar item "xxx" + Examples: key alt-x to toggle nicklist bar: /key bind meta-x /bar toggle nicklist @@ -327,6 +358,8 @@ Examples: /key reset meta-r key "tab" to stop search in buffer: /key bindctxt search ctrl-I /input search_stop + middle button of mouse on a nick to retrieve info on nick: + /key bindctxt mouse @item(buffer_nicklist):button3 /msg nickserv info ${nick} ........................................ [command]*`layout`* salva/applica/ripristina il layout per i buffer e le finestre:: @@ -344,6 +377,25 @@ windows: salva/applica modifiche solo alle finestre (buffer visualizzato da ogni Senza argomenti, il comando visualizza il layout salvato. ........................................ +[command]*`mouse`* mouse control:: +........................................ +/mouse enable|disable|toggle [<delay>] + + enable: enable mouse +disable: disable mouse + toggle: toggle mouse + delay: delay (in seconds) after which initial mouse state is restored (useful to temporarily disable mouse) + +To enable/disable mouse at startup, use: + /set weechat.look.mouse on/off + +Examples: + enable mouse: + /mouse enable + toggle mouse for 5 seconds: + /mouse toggle 5 +........................................ + [command]*`mute`* esegue un comando in silenzio:: ........................................ /mute [-current | -buffer <nome> | -all] comando @@ -372,16 +424,16 @@ Esempi: autoload reload|unload [<nome>] - list: list loaded plugins -listfull: list loaded plugins (verbose) - load: load a plugin -autoload: autoload plugins in system or user directory - reload: reload a plugin (if no name given, unload all plugins, then autoload plugins) - unload: unload a plugin (if no name given, unload all plugins) -filename: plugin (file) to load - name: a plugin name + list: elenca i plugin attivati +listfull: elenca i plugin attivati (dettagliato) + load: attiva un plugin +autoload: attiva automaticamente un plugin nella cartella di sistema o utente + reload: riattiva un plugin (se non specificato, disattiva e poi riattiva tutti i plugin) + unload: disattiva un plugin (se non specificato, disattiva tutti i plugin +nomefile: plugin (file) da attivare + nome: nome di un plugin -Without argument, this command lists loaded plugins. +Senza argomento, questo comando elenca i plugin attivati. ........................................ [command]*`proxy`* gestione proxy:: @@ -539,54 +591,54 @@ Esempi: /window list -1|+1|b#|up|down|left|right splith|splitv [<pct>] - resize [+/-]<pct> + resize [+/-] <pct> balance merge [all] page_up|page_down refresh - scroll [+/-]<value>[s|m|h|d|M|y] - scroll_horiz [+/-]<value>[%] + scroll|[+/-]<valore>[s|m|h|d|M|y] + scroll_horiz [+/-]<valore>[%] scroll_up|scroll_down|scroll_top|scroll_bottom|scroll_previous_highlight|scroll_next_highlight swap [up|down|left|right] zoom - list: list opened windows (without argument, this list is displayed) - -1: jump to previous window - +1: jump to next window - b#: jump to next window displaying buffer number # - up: switch to window above current one - down: switch to window below current one - left: switch to window on the left - right: switch to window on the right - splith: split current window horizontally - splitv: split current window vertically - resize: resize window size, new size is <pct> percentage of parent window - balance: balance the sizes of all windows - merge: merge window with another (all = keep only one window) - page_up: scroll one page up - page_down: scroll one page down - refresh: refresh screen - scroll: scroll a number of lines (+/-N) or with time: s=seconds, m=minutes, h=hours, d=days, M=months, y=years - scroll_horiz: scroll horizontally a number of columns (+/-N) or percentage of window size (this scrolling is possible only on buffers with free content) - scroll_up: scroll a few lines up - scroll_down: scroll a few lines down - scroll_top: scroll to top of buffer -scroll_bottom: scroll to bottom of buffer -scroll_previous_highlight: scroll to previous highlight -scroll_next_highlight: scroll to next highlight - swap: swap buffers of two windows (with optional direction for target window) - zoom: zoom on window - -For splith and splitv, pct is a percentage which represents size of new window, computed with current window as size reference. For example 25 means create a new window with size = current_size / 4 + list: elenca le finestre aperte (senza argomento, questa lista viene visualizzata) + -1: salta alla finestra precedente + +1: salta alla finestra successiva + b#: salta alla finestra successiva che visualizza il buffer numero # + up: passa alla finestra superiore a quella corrente + down: passa alla finestra inferiore a quella attiva + left: passa alla finestra a sinistra + right: passa alla finestra a destra + splith: divide la finestra attiva orizzontalmente + splitv: divide la finestra attiva verticalmente + resize: ridimensiona finestra, la nuova dimensione è <pct> percentuale della finestra genitore + balance: bilancia le dimensioni tutte le finestre + merge: unisce la finestra con un'altra (all = mantiente una sola finestra) + page_up: scorre di una pagina in alto + page_down: scorre di una pagina in basso + refresh: aggiorna lo schermo + scroll: scorre di un numero di righe (+/-N) o in base al tempo: s=secondi, m=minuti, h=ore, d=giorni, M=mesi, y=anni + scroll_horiz: scorre orizzontalmente un numero di colonne (+/-N) una percentuale della dimensione della finestra (questo scorrimento è possibile solo sui buffer con contenuto libero) + scroll_up: scorre di alcune righe in alto + scroll_down: scorre di alcune righe in basso + scroll_top: scorre fino all'inizio del buffer +scroll_bottom: scorre fino alla fine del buffer buffer +scroll_previous_highlight: passa all'evento precedente + scroll_next_highlight: passa all'evento successivo + swap: scambia i buffer di due finestra (con direzione opzionale per la finestra di destinazione) + zoom: ingrandimento sulla finestra + +Per splith e splitv, pct è una percentuale che rappresenta la dimensione della nuova finestra, calcolata con la finestra attiva come riferimento per la dimensione. Per esempio 25 vuol dire creare una finestra di dimensione = dimensione_attuale / 4 -Examples: - jump to window displaying buffer #1: +Esempi: + salta alla finestra che visualizza il buffer #1: /window b1 - scroll 2 lines up: + scorre di due righe in alto: /window scroll -2 - scroll 2 days up: + scorre all'indietro di due giorni: /window scroll -2d - scroll to beginning of current day: - /window scroll -d + scorre all'inizio del giorno attuale: + /window scroll -d ........................................ diff --git a/doc/it/autogen/user/weechat_options.txt b/doc/it/autogen/user/weechat_options.txt index 1d6fe1521..3a8127340 100644 --- a/doc/it/autogen/user/weechat_options.txt +++ b/doc/it/autogen/user/weechat_options.txt @@ -119,7 +119,7 @@ ** valori: un nome colore di WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numero colore del terminale o un alias; attributi consentiti prima del colore (solo per il colore del testo, non lo sfondo): "*" per il grassetto, "!" per l'inverso, "_" per la sottolineatura (valore predefinito: `brown`) * *weechat.color.chat_tags* -** descrizione: `text color for tags after messages (displayed with command /debug tags)` +** descrizione: `colore del testo per i tago dopo i messaggi (mostrati con il comando /debug tags)` ** tipo: colore ** valori: un nome colore di WeeChat (default, black, (dark)gray, white, (light)red, (light)green, brown, yellow, (light)blue, (light)magenta, (light)cyan), un numero colore del terminale o un alias; attributi consentiti prima del colore (solo per il colore del testo, non lo sfondo): "*" per il grassetto, "!" per l'inverso, "_" per la sottolineatura (valore predefinito: `red`) @@ -364,7 +364,7 @@ ** valori: qualsiasi stringa (valore predefinito: `"%a, %d %b %Y"`) * *weechat.look.eat_newline_glitch* -** descrizione: `if set, the eat_newline_glitch will be set to 0; this is used to not add new line char at end of each line, and then not break text when you copy/paste text from WeeChat to another application (this option is disabled by default because it can cause serious display bugs)` +** descrizione: `se attivo, eat_newline_glitch verrà impostato a 0; viene usato per non aggiungere il carattere a capo alla fine di ogni riga, al fine di non danneggiare il testo quando viene copiato/incollato da WeeChat in un'altra applicazione (l'opzione è disabilitata per default, dato che può causare seri errori di visualizzazione)` ** tipo: bool ** valori: on, off (valore predefinito: `off`) @@ -473,6 +473,11 @@ ** tipo: bool ** valori: on, off (valore predefinito: `on`) +* *weechat.look.mouse* +** descrizione: `enable mouse support at startup (to enable it now, see /help mouse)` +** tipo: bool +** valori: on, off (valore predefinito: `off`) + * *weechat.look.nickmode* ** descrizione: `mostra modalità nick ((half)op/voice) prima di ogni nick` ** tipo: bool @@ -599,7 +604,7 @@ ** valori: qualsiasi stringa (valore predefinito: `"-"`) * *weechat.look.separator_vertical* -** descrizione: `char used to draw vertical separators around bars (empty value will draw a real line with ncurses), wide chars are NOT allowed here` +** descrizione: `carattere usato per disegnare i separatori verticali intorno alle barre (un valore vuoto disegnerà una riga reale con ncurses), i caratteri wide NON sono consentiti` ** tipo: stringa ** valori: qualsiasi stringa (valore predefinito: `""`) diff --git a/doc/it/weechat_plugin_api.it.txt b/doc/it/weechat_plugin_api.it.txt index a6fd80279..7263a961e 100644 --- a/doc/it/weechat_plugin_api.it.txt +++ b/doc/it/weechat_plugin_api.it.txt @@ -6051,7 +6051,7 @@ weechat_hook_modifier ("2000|input_text_display", &modifier_cb, NULL); I tipi di hook che seguono consentono la priorità: command, command_run, signal, hsignal, config, completion, modifier, info, info_hashtable, infolist, -hdata. +hdata, focus. weechat_hook_command ^^^^^^^^^^^^^^^^^^^^ @@ -8283,6 +8283,87 @@ struct t_hook *my_hdata = weechat_hook_hdata ("my_hdata", [NOTE] Questa funzione non è disponibile nelle API per lo scripting. +// TRANSLATION MISSING +weechat_hook_focus +^^^^^^^^^^^^^^^^^^ + +Hook a focus: mouse event or key pressed in cursor mode (free movement of +cursor). + +Prototipo: + +[source,C] +---------------------------------------- +struct t_hook *weechat_hook_focus (const char *area, + struct t_hashtable *(*callback)(void *data, + struct t_hashtable *info), + void *callback_data); +---------------------------------------- + +Argomenti: + +* 'area': "chat" for chat area, or name of bar item + (priority allowed, see note about <<hook_priority,priority>>) +* 'callback': function called when focus is made, arguments and return + value: +** 'void *data': pointer +** 'struct t_hashtable *info': hashtable with info on focus and strings returned + by other calls to focus callbacks (with higher priority); keys and values + are of type "string"; info on focus (filled by WeeChat) are: +*** '_x': column of focus on screen (first column on the left is "0") +*** '_y': line of focus on screen (first line on top is "0") +*** '_window': pointer of window with focus ("0x0" for a bar of type "root" + or for unknown area) +*** '_bar_name': name of bar with focus (NULL for chat area or for unknown + area) +*** '_bar_item_name': name of bar item with focus (NULL if focus is not in a + bar or if focus is after the end of last bar item) +*** '_item_line': line with focus in bar item (first line of bar item is "0") +*** '_item_col': column with focus in bar item (first column of bar item is "0") +** return value: either "info" pointer (hashtable completed), or pointer to a + new hashtable (created by callback, with keys and values of type "string"), + this new hashtable content will be added to 'info' for other calls to focus + callbacks +* 'callback_data': pointer given to callback when it is called by WeeChat + +Valore restituito: + +* pointer to new hook, NULL if error occured + +Esempio in C: + +[source,C] +---------------------------------------- +struct t_hashtable * +my_focus_nicklist_cb (void *data, struct t_hashtable *info) +{ + /* add strings in hashtable */ + /* ... */ + + return info; +} + +/* add focus on nicklist */ +struct t_hook *my_focus = weechat_hook_focus ("buffer_nicklist", + &my_focus_nicklist_cb, NULL); +---------------------------------------- + +Script (Python): + +[source,python] +---------------------------------------- +# prototype +hook = weechat.hook_focus(area, callback, callback_data) + +# example +def my_focus_nicklist_cb(data, info): + # build dict + # ... + return my_dict + +hook = weechat.hook_focus("buffer_nicklist", "my_focus_nicklist_cb", "") +---------------------------------------- + weechat_unhook ^^^^^^^^^^^^^^ diff --git a/doc/it/weechat_user.it.txt b/doc/it/weechat_user.it.txt index 489afde50..631d6cc4b 100644 --- a/doc/it/weechat_user.it.txt +++ b/doc/it/weechat_user.it.txt @@ -419,20 +419,20 @@ Associazione tasti predefinita Tasti per la riga di comando ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,.^10,.^5l",options="header"] |======================================== | Tasti | Descrizione | Comando -| @k(←) .2+| Passa al carattere precedente nella riga di comando .2+| /input move_previous_char +| @k(←) .2+| Passa al carattere precedente nella riga di comando .2+| /input move_previous_char | @k(C-)@k(b) -| @k(→) .2+| Passa al carattere successivo nella riga di comando .2+| /input move_next_char +| @k(→) .2+| Passa al carattere successivo nella riga di comando .2+| /input move_next_char | @k(C-)@k(f) -| @k(C-)@k(←) .2+| Passa alla parola precedente nella riga di comando .2+| /input move_previous_word +| @k(C-)@k(←) .2+| Passa alla parola precedente nella riga di comando .2+| /input move_previous_word | @k(A-)@k(b) -| @k(C-)@k(→) .2+| Passa alla parola successiva nella riga di comando .2+| /input move_next_word +| @k(C-)@k(→) .2+| Passa alla parola successiva nella riga di comando .2+| /input move_next_word | @k(A-)@k(f) -| @k(Home) .2+| Si sposta all'inizio della riga di comando .2+| /input move_beginning_of_line +| @k(Home) .2+| Si sposta all'inizio della riga di comando .2+| /input move_beginning_of_line | @k(C-)@k(a) -| @k(End) .2+| Si sposta alla fine della riga di comando .2+| /input move_end_of_line +| @k(End) .2+| Si sposta alla fine della riga di comando .2+| /input move_end_of_line | @k(C-)@k(e) | @k(C-)@k(c) , @k(b) | Inserisce il codice per il testo in grassetto | /input insert \x02 | @k(C-)@k(c) , @k(c) | Inserisce il codice per il testo colorato | /input insert \x03 @@ -440,9 +440,9 @@ Tasti per la riga di comando | @k(C-)@k(c) , @k(o) | Inserisce il codice per il reset dei colori | /input insert \x0F | @k(C-)@k(c) , @k(r) | Inserisce il codice per l'inversione dei colori | /input insert \x12 | @k(C-)@k(c) , @k(u) | Inserisce il codice per il testo sottolineato | /input insert \x15 -| @k(Del) .2+| Elimina il carattere successivo nella riga di comando .2+| /input delete_next_char +| @k(Del) .2+| Elimina il carattere successivo nella riga di comando .2+| /input delete_next_char | @k(C-)@k(d) -| @k(Backsp.) .2+| Elimina il carattere precedente nella riga di comando .2+| /input delete_previous_char +| @k(Backsp.) .2+| Elimina il carattere precedente nella riga di comando .2+| /input delete_previous_char | @k(C-)@k(h) | @k(C-)@k(k) | Elimina dal cursore fino alla fine della riga di comando (la stringa eliminata viene copiata negli appunti) | /input delete_end_of_line | @k(C-)@k(r) | Cerca del testo nella cronologia del buffer (consultare <<key_bindings_search_context,tasti per il contesto search>>) | /input search_text @@ -454,7 +454,7 @@ Tasti per la riga di comando | @k(A-)@k(_) | Ripete l'ultima azione sulla riga di comando | /input redo | @k(Tab) | Completa comando o nick (@k(Tab) di nuovo: trova prossimo completamento) | /input complete_next | @k(S-)@k(Tab) | Senza completamento: effettua un completamento parziale, con completamento in sospeso: completa con il completamento precedente | /input complete_previous -| @k(Invio) .3+| Esegue comando o invia messaggio (in modalità ricerca: ferma ricerca) .3+| /input return +| @k(Invio) .3+| Esegue comando o invia messaggio (in modalità ricerca: ferma ricerca) .3+| /input return | @k(C-)@k(j) | @k(C-)@k(m) | @k(↑) | Chiama comando/messaggio precedente (in modalità ricerca: cerca in alto) | /input history_previous @@ -470,7 +470,7 @@ Tasti per la riga di comando Tasti per buffer / finestre ^^^^^^^^^^^^^^^^^^^^^^^^^^^ -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,.^10,.^5l",options="header"] |======================================== | Tasti | Descrizione | Comando | @k(C-)@k(l) | Ridisegna l'intera finestra | /window refresh @@ -482,23 +482,24 @@ Tasti per buffer / finestre | @k(A-)@k(PgDn) | Scorre di qualche riga in basso nella cronologia del buffer | /window scroll_down | @k(A-)@k(Home) | Scorre in cima al buffer | /window scroll_top | @k(A-)@k(End) | Scorre alla fine del del buffer | /window scroll_bottom -| @k(A-)@k(←) .4+| Passa al buffer precedente .4+| /buffer -1 +| @k(A-)@k(←) .4+| Passa al buffer precedente .4+| /buffer -1 | @k(A-)@k(↑) | @k(C-)@k(p) | @k(F5) -| @k(A-)@k(→) .4+| Passa al buffer successivo .4+| /buffer +1 +| @k(A-)@k(→) .4+| Passa al buffer successivo .4+| /buffer +1 | @k(A-)@k(↓) | @k(C-)@k(n) | @k(F6) | @k(F7) | Passa alla finestra precedente | /window -1 | @k(F8) | Passa alla finestra successiva | /window +1 -| @k(F9) | Scorre il titolo del buffer sulla sinistra | /bar scroll title * x-50% -| @k(F10) | Scorre il titolo del buffer sulla destra | /bar scroll title * x+50% -| @k(F11) | Scorre di una pagina in alto nella lista nick | /bar scroll nicklist * y-100% -| @k(F12) | Scorre di una pagina in basso nella lista nick | /bar scroll nicklist * y+100% -| @k(A-)@k(F11) | Sposta all'inizio della lista nick | /bar scroll nicklist * yb -| @k(A-)@k(F12) | Sposta alla fine della lista nick | /bar scroll nicklist * ye +| @k(F9) | Scorre il titolo del buffer sulla sinistra | /bar scroll title * -30% +| @k(F10) | Scorre il titolo del buffer sulla destra | /bar scroll title * +30% +| @k(F11) | Scorre di una pagina in alto nella lista nick | /bar scroll nicklist * -100% +| @k(F12) | Scorre di una pagina in basso nella lista nick | /bar scroll nicklist * +100% +| @k(A-)@k(F11) | Sposta all'inizio della lista nick | /bar scroll nicklist * b +| @k(A-)@k(F12) | Sposta alla fine della lista nick | /bar scroll nicklist * e | @k(A-)@k(a) | Passa al buffer successivo con attività (con priorità: evento, messaggio, altro) | /input jump_smart +| @k(A-)@k(h) | Pulisce hotlist (notifica di attività su altri buffer) | /input hotlist_clear | @k(A-)@k(j) , @k(A-)@k(l) | Passa all'ultimo buffer | /input jump_last_buffer | @k(A-)@k(j) , @k(A-)@k(r) | Passa al buffer raw IRC | /server raw | @k(A-)@k(j) , @k(A-)@k(s) | Passa al buffer server IRC | /server jump @@ -516,6 +517,7 @@ Tasti per buffer / finestre | @k(A-)@k(z) | Ingrandimento sulla finestra attiva (@k(A-)@k(z) di nuovo: ripristina lo stato iniziale della finestra, prima dell'ingrandimento) | /window zoom | @k(A-)@k(<) | Passa al buffer precedente nella lista dei buffer visitati | /input jump_previously_visited_buffer | @k(A-)@k(>) | Passa al buffer successivo nella lista dei buffer visitati | /input jump_next_visited_buffer +| @k(A-)@k(=) | Attiva/disattiva filtri | /filter toggle |======================================== [[key_bindings_search_context]] @@ -525,26 +527,73 @@ Tasti per il contesto "search" Questi tasti sono usati nel contesto "search" (quando viene digitato @k(C-)@k(r) per cercare del testo nel buffer). -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,.^10,.^5l",options="header"] |======================================== -| Key | Descrizione | Comando -| @k(C-)@k(r) | Passa alla ricerca esatta | /input search_switch_case -| @k(↑) | Cerca riga precedente | /input search_previous -| @k(↓) | Cerca riga successiva | /input search_next -| @k(Invio) .3+| Ferma ricerca .3+| /input search_stop +| Key | Descrizione | Comando +| @k(C-)@k(r) | Passa alla ricerca esatta | /input search_switch_case +| @k(↑) | Cerca riga precedente | /input search_previous +| @k(↓) | Cerca riga successiva | /input search_next +| @k(Invio) .3+| Ferma ricerca .3+| /input search_stop | @k(C-)@k(j) | @k(C-)@k(m) |======================================== -[[key_bindings_other]] -Altri tasti -^^^^^^^^^^^ +// TRANSLATION MISSING +[[key_bindings_cursor_context]] +Keys for "cursor" context +^^^^^^^^^^^^^^^^^^^^^^^^^ + +These keys are used in context "cursor" (free movement of cursor on screen). + +[width="100%",cols="^.^3,^.^3,.^10,.^5l",options="header"] +|======================================== +| Key | Area | Description | Command +| @k(↑) | - | Move cursor one line up | /cursor move up +| @k(↓) | - | Move cursor one line down | /cursor move down +| @k(←) | - | Move cursor one column left | /cursor move left +| @k(→) | - | Move cursor one column right | /cursor move right +| @k(A-)@k(↑) | - | Move cursor one area up | /cursor move area_up +| @k(A-)@k(↓) | - | Move cursor one area down | /cursor move area_down +| @k(A-)@k(←) | - | Move cursor one area left | /cursor move area_left +| @k(A-)@k(→) | - | Move cursor one area right | /cursor move area_right +| @k(b) | nicklist | Ban nick | /ban ${nick} +| @k(k) | nicklist | Kick nick | /kick ${nick} +| @k(K) | nicklist | Kick and ban nick | /kickban ${nick} +| @k(q) | nicklist | Open query with nick | /query ${nick};/cursor stop +| @k(w) | nicklist | Do a whois on nick | /whois ${nick} +| @k(Enter) .3+| - .3+| Stop cursor mode .3+| /cursor stop +| @k(C-)@k(j) +| @k(C-)@k(m) +|======================================== + +// TRANSLATION MISSING +[[key_bindings_mouse_context]] +Keys for "mouse" context +^^^^^^^^^^^^^^^^^^^^^^^^ + +These keys are used in context "mouse", namely when a mouse event occurs. -[width="100%",cols="^.^3,.^10,.^5m",options="header"] +[width="100%",cols="^.^3,^.^3,^.^3,.^10,.^5l",options="header"] |======================================== -| Tasti | Descrizione | Comando -| @k(A-)@k(h) | Pulisce hotlist (notifica di attività su altri buffer) | /input hotlist_clear -| @k(A-)@k(=) | Attiva/disattiva filtri | /filter toggle +| Button | Gesture | Area | Description | Command +| ◾◽◽ | left | chat | Passa al buffer precedente | /buffer +1 +| ◾◽◽ | right | chat | Passa al buffer successivo | /buffer +1 +| ◾◽◽ | left (long) | chat | Switch to first buffer | /buffer 1 +| ◾◽◽ | right (long) | chat | Passa all'ultimo buffer | /input jump_last_buffer +| wheel ⇑ | - | chat | Scorre di qualche riga in alto nella cronologia del buffer | /window scroll_up +| wheel ⇓ | - | chat | Scorre di qualche riga in basso nella cronologia del buffer | /window scroll_down +| ◾◽◽ | up | nicklist | Scorre di una pagina in alto nella lista nick | /bar scroll nicklist * -100% +| ◾◽◽ | down | nicklist | Scorre di una pagina in basso nella lista nick | /bar scroll nicklist * +100% +| ◾◽◽ | up (long) | nicklist | Sposta all'inizio della lista nick | /bar scroll nicklist * b +| ◾◽◽ | down (long) | nicklist | Sposta alla fine della lista nick | /bar scroll nicklist * e +| ◾◽◽ | - | nicklist | Open query with nick | /query ${nick} +| ◽◽◾ | - | nicklist | Do a whois on nick | /whois ${nick} +| ◾◽◽ | left | nicklist | Kick nick | /kick ${nick} +| ◾◽◽ | left (long) | nicklist | Kick and ban nick | /kickban ${nick} +| ◽◽◾ | left | nicklist | Ban nick | /ban ${nick} +| wheel ⇑ | - | any bar | Scroll bar by -10% | /bar scroll ${_bar_name} * -10% +| wheel ⇓ | - | any bar | Scroll bar by +10% | /bar scroll ${_bar_name} * +10% +| ◽◾◽ | - | anywhere | Start cursor mode at this point | /cursor go ${_x},${_y} |======================================== [[command_line]] |