diff options
-rw-r--r-- | ChangeLog.adoc | 1 | ||||
-rw-r--r-- | doc/de/autogen/user/fset_commands.adoc | 240 | ||||
-rw-r--r-- | doc/en/autogen/user/fset_commands.adoc | 2 | ||||
-rw-r--r-- | doc/fr/autogen/user/fset_commands.adoc | 2 | ||||
-rw-r--r-- | doc/it/autogen/user/fset_commands.adoc | 2 | ||||
-rw-r--r-- | doc/ja/autogen/user/fset_commands.adoc | 240 | ||||
-rw-r--r-- | doc/pl/autogen/user/fset_commands.adoc | 240 | ||||
-rw-r--r-- | po/cs.po | 6 | ||||
-rw-r--r-- | po/de.po | 7 | ||||
-rw-r--r-- | po/es.po | 6 | ||||
-rw-r--r-- | po/fr.po | 12 | ||||
-rw-r--r-- | po/hu.po | 6 | ||||
-rw-r--r-- | po/it.po | 6 | ||||
-rw-r--r-- | po/ja.po | 7 | ||||
-rw-r--r-- | po/pl.po | 7 | ||||
-rw-r--r-- | po/pt.po | 6 | ||||
-rw-r--r-- | po/pt_BR.po | 6 | ||||
-rw-r--r-- | po/ru.po | 6 | ||||
-rw-r--r-- | po/tr.po | 6 | ||||
-rw-r--r-- | po/weechat.pot | 6 | ||||
-rw-r--r-- | src/plugins/fset/fset-command.c | 4 | ||||
-rw-r--r-- | src/plugins/fset/fset-option.c | 16 |
22 files changed, 463 insertions, 371 deletions
diff --git a/ChangeLog.adoc b/ChangeLog.adoc index e327710a1..927d56429 100644 --- a/ChangeLog.adoc +++ b/ChangeLog.adoc @@ -26,6 +26,7 @@ New features:: * api: add argument "strip_items" in function string_split * buflist: add infolist "buflist" with list of buffer pointers (issue #1375) * exec: evaluate option exec.command.shell, change default value to "${env:SHELL}" (issue #1356) + * fset: add filters "h=xxx" and "he=xxx" to filter options by description (translated or in English) * irc: make command char optional in server option "command" (issue #615) * irc: add variables "user_max_length" and "host_max_length" in server structure (issue #1387) diff --git a/doc/de/autogen/user/fset_commands.adoc b/doc/de/autogen/user/fset_commands.adoc index 9701d707d..ffa41fecd 100644 --- a/doc/de/autogen/user/fset_commands.adoc +++ b/doc/de/autogen/user/fset_commands.adoc @@ -23,136 +23,138 @@ -export [-help|-nohelp] <filename> <filter> - -bar: fügt eine Hilfe in einer Bar hinzu - -refresh: der Bildschirm wird neu gezeichnet (Befehl: /window refresh) - -up: bewegt die ausgewählte Zeile um die Anzahl an Zeilen nach oben - -down: bewegt die ausgewählte Zeile um die Anzahl an Zeilen nach unten - -left: der fset Buffer wird wird prozentual entsprechend der Fensterbreite nach links verschoben - -right: der fset Buffer wird wird prozentual entsprechend der Fensterbreite nach rechts verschoben - -go: wählt eine Zeile mit der entsprechenden Nummer aus, die erste Zeile beginnt mit 0 (mit "end" wird die letzte Zeile ausgewählt) - -toggle: der Wert einer Variable vom Typ boolean wird umgeschaltet - -add: addiert den "Wert" (kann auch eine negative Zahl sein) bei Integer und Farbe, für andere Typen wird die Variable in die Eingabezeile kopiert und der Cursor positioniert (bei negativem Wert wird der Cursor an Beginn der Variable positioniert, bei positivem Wert wird der Cursor an das Ende gesetzt) - -reset: löscht den Wert von der Option - -unset: Option wird zurückgesetzt - -set: der /set Befehl wird in die Eingabezeile kopiert um den Wert der Option zu editieren (der Cursor wird auf den Anfang des Wertes gesetzt) - -setnew: der /set Befehl wird in die Eingabezeile kopiert um den Wert add the /set command in input to edit a new value for the option - -append: der /set Befehl wird in die Eingabezeile kopiert um einen zusätzlichen Wert einzugeben (der Cursor wird an das Ende der Variable positioniert) - -mark: Markierung umschalten - -format: es wird zum nächsten verfügbaren Format gewechselt - -export: exportiert die Optionen und Werte, welche angezeigt werden, in eine Datei (jede Zeile hat das Format: "/set Name Wert" oder "/unset Name") - -help: der Hilfstext für eine Option wird in die exportierte Datei geschrieben (siehe /help fset.look.export_help_default) - -nohelp: der Hilfetext für eine Option wird nicht in die exportierte Datei geschrieben (siehe /help fset.look.export_help_default) - filter: setzt einen neuen Filter um nur ausgewählte Optionen anzuzeigen (die Filterfunktion kann direkt in der Eingabezeile eingegeben werden); mögliche Formate sind: - * alle Optionen werden angezeigt (keine Filterung) - xxx zeigt nur Optionen mit "xxx" im Namen - f:xxx zeigt nur Konfigurationsdatei "xxx" an - t:xxx zeigt nur Optionen des entsprechenden Typs, "xxx" (bool/int/str/col) - d zeigt nur Optionen die verändert wurden - d:xxx zeigt nur Optionen die verändert wurden und "xxx" im Namen haben - d=xxx zeigt nur veränderte Optionen, die "xxx" als Wert haben - d==xxx zeigt nur veränderte Optionen die exakt "xxx" als Wert haben - =xxx zeigt nur Optionen mit "xxx" als Wert - ==xxx zeigt nur Optionen die exakt "xxx" als Wert haben - c:xxx zeigt nur Optionen auf die die evaluierte Bedingung "xxx" zutrifft, folgende Variable können verwendet werden: file, section, option, name, parent_name, type, type_en, type_short (bool/int/str/col), type_tiny (b/i/s/c), default_value, default_value_undef, value, quoted_value, value_undef, value_changed, parent_value, min, max, description, description2, description_en, description_en2, string_values + -bar: add the help bar + -refresh: refresh list of options, then whole screen (command: /window refresh) + -up: move the selected line up by "number" lines + -down: move the selected line down by "number" lines + -left: scroll the fset buffer by "percent" of width on the left + -right: scroll the fset buffer by "percent" of width on the right + -go: select a line by number, first line number is 0 ("end" to select the last line) + -toggle: toggle the boolean value + -add: add "value" (which can be a negative number) for integers and colors, set/append to value for other types (set for a negative value, append for a positive value) + -reset: reset the value of option + -unset: unset the option + -set: add the /set command in input to edit the value of option (move the cursor at the beginning of value) + -setnew: add the /set command in input to edit a new value for the option + -append: add the /set command to append something in the value of option (move the cursor at the end of value) + -mark: toggle mark + -format: switch to the next available format + -export: export the options and values displayed in a file (each line has format: "/set name value" or "/unset name") + -help: force writing of help on options in exported file (see /help fset.look.export_help_default) + -nohelp: do not write help on options in exported file (see /help fset.look.export_help_default) + filter: set a new filter to see only matching options (this filter can be used as input in fset buffer as well); allowed formats are: + * show all options (no filter) + xxx show only options with "xxx" in name + f:xxx show only configuration file "xxx" + t:xxx show only type "xxx" (bool/int/str/col) + d show only changed options + d:xxx show only changed options with "xxx" in name + d=xxx show only changed options with "xxx" in value + d==xxx show only changed options with exact value "xxx" + h=xxx show only options with "xxx" in description (translated) + he=xxx show only options with "xxx" in description (in English) + =xxx show only options with "xxx" in value + ==xxx show only options with exact value "xxx" + c:xxx show only options matching the evaluated condition "xxx", using following variables: file, section, option, name, parent_name, type, type_en, type_short (bool/int/str/col), type_tiny (b/i/s/c), default_value, default_value_undef, value, quoted_value, value_undef, value_changed, parent_value, min, max, description, description2, description_en, description_en2, string_values -Zeilen werden mittels evaluierten Ausdrücken dargestellt (siehe /help eval für das Format), dazu werden diese Optionen verwendet: - - fset.format.option1: erstes Format für eine Option - - fset.format.option2: zweites Format für eine Option +The lines with options are displayed using string evaluation (see /help eval for the format), with these options: + - fset.format.option1: first format for an option + - fset.format.option2: second format for an option -Die nachfolgenden Variablen können in den Optionen genutzt werden: - - Optionsdaten, mit Farbe und durch Leerzeichen auf der rechten Seite aufgefüllt: - - ${file}: Konfigurationsdatei (zum Beispiel "weechat" oder "irc") - - ${section}: Sektion - - ${option}: Name der Option - - ${name}: vollständiger Name der Option (file.section.option) - - ${parent_name}: übergeordneter Name der Option - - ${type}: Optionstyp (übersetzt) - - ${type_en}: Optionstyp (auf englisch) - - ${type_short}: Optionstyp Kurzform (bool/int/str/col) - - ${type_tiny}: Optionstyp klein (b/i/s/c) - - ${default_value}: Standardwert einer Option - - ${default_value_undef}: "1" falls Standardwert null ist, andernfalls "0" - - ${value}: Optionswert - - ${value_undef}: "1" wenn Wert null ist, andernfalls "0" - - ${value_changed}: "1" wenn Wert abweichend vom Standardwert ist, andernfalls "0" - - ${value2}: Optionswert, mit geerbtem Wert falls null - - ${parent_value}: übergeordneter Optionswert - - ${min}: minimaler Wert - - ${max}: maximaler Wert - - ${description}: Beschreibung der Option (übersetzt) - - ${description2}: Beschreibung der Option (übersetzt), "(keine Beschreibung)" (übersetzt) falls keine Beschreibung vorhanden - - ${description_en}: Beschreibung der Option (in englisch) - - ${description_en2}: Beschreibung der Option (in englisch), "(keine Beschreibung)" falls keine Beschreibung vorhanden - - ${string_values}: Zeichenketten sind für Integer Optionen erlaubt - - ${marked}: "1" wenn Option markiert ist, andernfalls "0" - - ${index}: Index der Option in der Liste - - Optionsdaten, mit Farbe aber ohne Leerzeichen: - - selbe Namen, vorangestellt mit Unterstrich, zum Beispiel: ${_name}, ${_type}, ... - - Optionsdaten, Rohformat (keine Farben/Leerzeichen): - - selbe Namen, mit zwei vorangestellten Unterstrichen, zum Beispiel: ${__name}, ${__type}, ... - - Optionsdaten, nur Leerzeichen: - - selbe Namen, mit vorangestelltem "empty_", zum Beispiel: ${empty_name}, ${empty_type} - - andere Daten: - - ${selected_line}: "1" wenn Zeile ausgewählt ist, andernfalls "0" - - ${newline}: fügt einen Zeilenumbruch an diese Position, dadurch wird die Option über mehrere Zeilen angezeigt +The following variables can be used in these options: + - option data, with color and padded by spaces on the right: + - ${file}: configuration file (for example "weechat" or "irc") + - ${section}: section + - ${option}: option name + - ${name}: full option name (file.section.option) + - ${parent_name}: parent option name + - ${type}: option type (translated) + - ${type_en}: option type (in English) + - ${type_short}: short option type (bool/int/str/col) + - ${type_tiny}: tiny option type (b/i/s/c) + - ${default_value}: option default value + - ${default_value_undef}: "1" if default value is null, otherwise "0" + - ${value}: option value + - ${value_undef}: "1" if value is null, otherwise "0" + - ${value_changed}: "1" if value is different from default value, otherwise "0" + - ${value2}: option value, with inherited value if null + - ${parent_value}: parent option value + - ${min}: min value + - ${max}: max value + - ${description}: option description (translated) + - ${description2}: option description (translated), "(no description)" (translated) if there's no description + - ${description_en}: option description (in English) + - ${description_en2}: option description (in English), "(no description)" if there's no description + - ${string_values}: string values allowed for set of an integer option using strings + - ${marked}: "1" if option is marked, otherwise "0" + - ${index}: index of option in list + - option data, with color but no spaces: + - same names prefixed by underscore, for example: ${_name}, ${_type}, ... + - option data, raw format (no colors/spaces): + - same names prefixed by two underscores, for example: ${__name}, ${__type}, ... + - option data, only spaces: + - same names prefixed with "empty_", for example: ${empty_name}, ${empty_type} + - other data: + - ${selected_line}: "1" if the line is selected, otherwise "0" + - ${newline}: insert a new line at point, so the option is displayed on multiple lines -Tasten und Eingaben um sich im fset Buffer zu bewegen: - hoch eine Zeile nach oben - runter eine Zeile nach unten - pgup eine Seite nach oben - pgdn eine Seite nach unten - alt-home << springe zur ersten Zeile - alt-end >> springe zur letzten Zeile - F11 < horizontal nach links scrollen - F12 > horizontal nach rechts scrollen +Keys and input to move in on fset buffer: + up move one line up + down move one line down + pgup move one page up + pgdn move one page down + alt-home << move to first line + alt-end >> move to last line + F11 < scroll horizontally on the left + F12 > scroll horizontally on the right -Tasten und Eingaben um Optionen im fset Buffer zu editieren: - alt+space t boolean Werte umschalten - alt+'-' - subtrahiert 1 vom Wert, bei Integer/Farboptionen, bei anderen Typen kann der Wert editiert werden - alt+'+' + addiert 1 zum Wert, bei Integer/Farboptionen, bei anderen Typen kann der Wert editiert werden - alt+f, alt+r r Wert resetten - alt+f, alt+u u Wert zurücksetzen - alt+enter s Wert setzen - alt+f, alt+n n ein neuer Wert wird gesetzt, der alte Wert wird gelöscht - alt+f, alt+a a dem Wert was hinzufügen - alt+',' , markieren/demarkieren einer Option - shift+hoch eine Zeile nach oben und markiert/demarkiert Option - shift+runter markiert/demarkiert Option und geht eine Zeile nach unten - m:xxx markiert Optionen welche angezeigt werden und auf die der Filter "xxx" zutrifft (jeder Filter für Option oder Wert ist erlaubt, siehe Filterung weiter oben) - u:xxx demarkiert Optionen welche angezeigt werden und auf die der Filter "xxx" zutrifft (jeder Filter für Option oder Wert ist erlaubt, siehe Filterung weiter oben) +Keys and input to set options on fset buffer: + alt+space t toggle boolean value + alt+'-' - subtract 1 from value for integer/color, set value for other types + alt+'+' + add 1 to value for integer/color, append to value for other types + alt+f, alt+r r reset value + alt+f, alt+u u unset value + alt+enter s set value + alt+f, alt+n n set new value + alt+f, alt+a a append to value + alt+',' , mark/unmark option + shift+up move one line up and mark/unmark option + shift+down mark/unmark option and move one line down + m:xxx mark options displayed that are matching filter "xxx" (any filter on option or value is allowed, see filters above) + u:xxx unmark options displayed that are matching filter "xxx" (any filter on option or value is allowed, see filters above) -weitere Tasten und Eingaben im fset Buffer: - ctrl+L der Bildschirm wird neu gezeichnet (Befehl: /fset -refresh) - $ Optionen neu einlesen (markierte Optionen werden beibehalten) - $$ Optionen neu einlesen (Markierungen von Optionen werden dabei gelöscht) - alt+p p umschalten zwischen Beschreibung von Erweiterungen (plugins.desc.*) - alt+v v Hilfe-Bar Ein-/Ausschalten - s:x,y sortiert Optionen nach Bereichen x,y (siehe /help fset.look.sort) - s: setzt Sortierung wieder auf Standardwerte (siehe /help fset.look.sort) - w:xxx exportiert Optionen in Datei "xxx" - w-:xxx exportiert Optionen in Datei "xxx", ohne Hilfstext - w+:xxx exportiert Optionen in Datei "xxx", mit Hilfstext - ctrl+X x umschalten zwischen der Darstellung von Optionen - q schließt fset Buffer +Other keys and input on fset buffer: + ctrl+L refresh options and whole screen (command: /fset -refresh) + $ refresh options (keep marked options) + $$ refresh options (unmark all options) + alt+p p toggle plugin description options (plugins.desc.*) + alt+v v toggle help bar + s:x,y sort options by fields x,y (see /help fset.look.sort) + s: reset sort to its default value (see /help fset.look.sort) + w:xxx export options in file "xxx" + w-:xxx export options in file "xxx" without help + w+:xxx export options in file "xxx" with help + ctrl+X x switch the format used to display options + q close fset buffer -Mausaktionen im fset Buffer: - Mausrad hoch/runter Zeile hoch/runter - linke Maustaste Zeile auswählen - rechte Maustaste boolean umschalten (an/aus) oder editiere den Wert einer Option - rechte Maustaste + links/rechts Integer/Farbwerte werden erhöht/verringert, andere Variabletypen werden in die Eingabezeile kopiert - rechte Maustaste + hoch/runter markieren/demarkieren von mehreren Optionen +Mouse actions on fset buffer: + wheel up/down move line up/down + left button move line here + right button toggle boolean (on/off) or edit the option value + right button + drag left/right increase/decrease value for integer/color, set/append to value for other types + right button + drag up/down mark/unmark multiple options -Hinweis: Leerzeichen am Anfang der Eingabezeile werden ignoriert und der folgende Text wird als Filter verwendet. Ein Beispiel: "q" schließt den fset Buffer wobei hingegen " q" alle Optionen anzeigt die ein "q" im Namen beinhalten. +Note: if input has one or more leading spaces, the following text is interpreted as a filter, without the spaces. For example " q" searches all options with "q" inside name while "q" closes the fset buffer. -Beispiele: - zeigt alle IRC Optionen an die verändert wurden: +Examples: + show IRC options changed: /fset d:irc.* - zeigt alle Optionen die "nicklist" im Namen tragen: + show all options with "nicklist" in name: /fset nicklist - zeigt alle Werte die "red" beinhalten: + show all values which contain "red": /fset =red - zeigt alle Werte die exakt "red" lauten: + show all values which are exactly "red": /fset ==red - zeigt alle Integer-Optionen der IRC-Erweiterung: + show all integer options in irc plugin: /fset c:${file} == irc && ${type_en} == integer ---- diff --git a/doc/en/autogen/user/fset_commands.adoc b/doc/en/autogen/user/fset_commands.adoc index a61ad24dd..2d5a89257 100644 --- a/doc/en/autogen/user/fset_commands.adoc +++ b/doc/en/autogen/user/fset_commands.adoc @@ -51,6 +51,8 @@ d:xxx show only changed options with "xxx" in name d=xxx show only changed options with "xxx" in value d==xxx show only changed options with exact value "xxx" + h=xxx show only options with "xxx" in description (translated) + he=xxx show only options with "xxx" in description (in English) =xxx show only options with "xxx" in value ==xxx show only options with exact value "xxx" c:xxx show only options matching the evaluated condition "xxx", using following variables: file, section, option, name, parent_name, type, type_en, type_short (bool/int/str/col), type_tiny (b/i/s/c), default_value, default_value_undef, value, quoted_value, value_undef, value_changed, parent_value, min, max, description, description2, description_en, description_en2, string_values diff --git a/doc/fr/autogen/user/fset_commands.adoc b/doc/fr/autogen/user/fset_commands.adoc index e7cad35c0..ddb27185d 100644 --- a/doc/fr/autogen/user/fset_commands.adoc +++ b/doc/fr/autogen/user/fset_commands.adoc @@ -51,6 +51,8 @@ d:xxx afficher seulement les options changées avec "xxx" dans le nom d=xxx afficher seulement les options changées avec "xxx" dans la valeur d==xxx afficher seulement les options changées avec la valeur exacte "xxx" + h=xxx afficher seulement les options avec "xxx" dans la description (traduite) + he=xxx afficher seulement les options avec "xxx" dans la description (en Anglais) =xxx afficher seulement les options avec "xxx" dans la valeur ==xxx afficher seulement les options avec la valeur exacte "xxx" c:xxx afficher seulement les options qui correspondent à la condition évaluée "xxx", en utilisant les variables suivantes : file, section, option, name, parent_name, type, type_en, type_short (bool/int/str/col), type_tiny (b/i/s/c), default_value, default_value_undef, value, quoted_value, value_undef, value_changed, parent_value, min, max, description, description2, description_en, description_en2, string_values diff --git a/doc/it/autogen/user/fset_commands.adoc b/doc/it/autogen/user/fset_commands.adoc index a61ad24dd..2d5a89257 100644 --- a/doc/it/autogen/user/fset_commands.adoc +++ b/doc/it/autogen/user/fset_commands.adoc @@ -51,6 +51,8 @@ d:xxx show only changed options with "xxx" in name d=xxx show only changed options with "xxx" in value d==xxx show only changed options with exact value "xxx" + h=xxx show only options with "xxx" in description (translated) + he=xxx show only options with "xxx" in description (in English) =xxx show only options with "xxx" in value ==xxx show only options with exact value "xxx" c:xxx show only options matching the evaluated condition "xxx", using following variables: file, section, option, name, parent_name, type, type_en, type_short (bool/int/str/col), type_tiny (b/i/s/c), default_value, default_value_undef, value, quoted_value, value_undef, value_changed, parent_value, min, max, description, description2, description_en, description_en2, string_values diff --git a/doc/ja/autogen/user/fset_commands.adoc b/doc/ja/autogen/user/fset_commands.adoc index 7ca6c4bbe..29f3be4d0 100644 --- a/doc/ja/autogen/user/fset_commands.adoc +++ b/doc/ja/autogen/user/fset_commands.adoc @@ -23,136 +23,138 @@ -export [-help|-nohelp] <filename> <filter> - -bar: ヘルプバーを追加します - -refresh: オプションリストを再読込した後、画面全体を再描画します (コマンド: /window refresh) - -up: 選択行を "number" 行だけ上に移動 - -down: 選択行を "number" 行だけ下に移動 - -left: fset バッファをその幅の "percent" だけ左にスクロール - -right: fset バッファをその幅の "percent" だけ右にスクロール - -go: 番号を使って行を選択、1 行目は 0 ("end" で最後の行を選択) - -toggle: ブール値をトグル - -add: 整数型と色の場合は "value" を追加 (負の値でも可)、その他の型の場合は値を設定または追加 (負の値を設定、正の値を追加) - -reset: オプションの値をリセット - -unset: オプションをアンセット - -set: オプションの値を編集する目的で /set コマンドを入力に追加 (カーソルを値の先頭に移動) - -setnew: オプションの新しい値を編集する目的で /set コマンドを入力に追加 - -append: オプションの値に何かを追加する目的で /set コマンドを追加 (カーソルを値の末尾に移動) - -mark: マークをトグル - -format: 次の利用可能な書式に切り替える - -export: 表示されているオプションと値をファイルにエクスポート (各行の書式: "/set name value" または "/unset name") - -help: エクスポートされるファイルにオプションのヘルプを強制的に書き込む (/help fset.look.export_help_default を参照してください) - -nohelp: エクスポートされるファイルにオプションのヘルプを書き込まない (/help fset.look.export_help_default を参照してください) - filter: 表示オプションを制限するフィルタ (このフィルタを fset バッファの入力として使うことも可能です); フィルタの書式は以下の例に従ってください: - * すべてのオプションを表示します (フィルタなし) - xxx 名前に "xxx" が含まれるオプションだけを表示 - f:xxx 設定ファイル "xxx" に含まれるオプションだけを表示 - t:xxx 型が "xxx" (bool/int/str/col) のオプションだけを表示 - d 変更されたオプションだけを表示 - d:xxx 変更されたオプションかつ名前に "xxx" が含まれるものだけを表示 - d=xxx 変更されたオプションかつ値に "xxx" が含まれるものだけを表示 - d==xxx 変更されたオプションかつ値が "xxx" と完全に一致するものだけを表示 - =xxx 値に "xxx" が含まれるオプションだけを表示 - ==xxx 値が "xxx" と完全に一致するオプションだけを表示 - c:xxx 評価された状態が "xxx" に一致するオプションだけを表示、評価は以下の変数に対して行われます: file、section、option、name、parent_name、type、type_en、type_short (bool/int/str/col)、type_tiny (b/i/s/c)、default_value、default_value_undef、value、quoted_value、value_undef、value_changed、parent_value、min、max、description、description2、description_en、description_en2、string_values + -bar: add the help bar + -refresh: refresh list of options, then whole screen (command: /window refresh) + -up: move the selected line up by "number" lines + -down: move the selected line down by "number" lines + -left: scroll the fset buffer by "percent" of width on the left + -right: scroll the fset buffer by "percent" of width on the right + -go: select a line by number, first line number is 0 ("end" to select the last line) + -toggle: toggle the boolean value + -add: add "value" (which can be a negative number) for integers and colors, set/append to value for other types (set for a negative value, append for a positive value) + -reset: reset the value of option + -unset: unset the option + -set: add the /set command in input to edit the value of option (move the cursor at the beginning of value) + -setnew: add the /set command in input to edit a new value for the option + -append: add the /set command to append something in the value of option (move the cursor at the end of value) + -mark: toggle mark + -format: switch to the next available format + -export: export the options and values displayed in a file (each line has format: "/set name value" or "/unset name") + -help: force writing of help on options in exported file (see /help fset.look.export_help_default) + -nohelp: do not write help on options in exported file (see /help fset.look.export_help_default) + filter: set a new filter to see only matching options (this filter can be used as input in fset buffer as well); allowed formats are: + * show all options (no filter) + xxx show only options with "xxx" in name + f:xxx show only configuration file "xxx" + t:xxx show only type "xxx" (bool/int/str/col) + d show only changed options + d:xxx show only changed options with "xxx" in name + d=xxx show only changed options with "xxx" in value + d==xxx show only changed options with exact value "xxx" + h=xxx show only options with "xxx" in description (translated) + he=xxx show only options with "xxx" in description (in English) + =xxx show only options with "xxx" in value + ==xxx show only options with exact value "xxx" + c:xxx show only options matching the evaluated condition "xxx", using following variables: file, section, option, name, parent_name, type, type_en, type_short (bool/int/str/col), type_tiny (b/i/s/c), default_value, default_value_undef, value, quoted_value, value_undef, value_changed, parent_value, min, max, description, description2, description_en, description_en2, string_values -オプションの表示書式 (この書式に関しては /help eval を参照してください) を設定するには、以下のオプションを使います: - - fset.format.option1: オプションに対する 1 番目の書式 - - fset.format.option2: オプションに対する 2 番目の書式 +The lines with options are displayed using string evaluation (see /help eval for the format), with these options: + - fset.format.option1: first format for an option + - fset.format.option2: second format for an option -オプションの表示書式には以下の変数を使うことが可能です: - - オプションに関するデータ、色をつけたり、スペースで右寄せできます: - - ${file}: 設定ファイル名 ("weechat" や "irc" など) - - ${section}: セクション名 - - ${option}: オプション名 - - ${name}: 完全なオプション名 (file.section.option) - - ${parent_name}: 親オプション名 - - ${type}: オプション型 (翻訳済み) - - ${type_en}: オプション型 (英語) - - ${type_short}: オプション型の略称 (bool/int/str/col) - - ${type_tiny}: オプション型の短縮名 (b/i/s/c) - - ${default_value}: オプションのデフォルト値 - - ${default_value_undef}: デフォルト値が null の場合に "1"、それ以外の場合に "0" - - ${value}: オプションの値 - - ${value_undef}: オプションの値が null の場合に "1"、それ以外の場合に "0" - - ${value_changed}: オプションの値がデフォルト値と異なる場合に "1"、それ以外の場合に "0" - - ${value2}: オプションの値、null の場合に値は継承されます - - ${parent_value}: 親オプションの値 - - ${min}: 最小値 - - ${max}: 最大値 - - ${description}: オプションの説明 (翻訳済み) - - ${description2}: オプションの説明 (翻訳済み)、オプションの説明がない場合は "(説明がありません)" と表示されます - - ${description_en}: オプションの説明 (英語) - - ${description_en2}: オプションの説明 (英語)、オプションの説明がない場合は "(no description)" と表示されます - - ${string_values}: 文字列で設定可能な整数型オプションで使える文字列値 - - ${marked}: オプションがマークされている場合に "1"、それ以外の場合に "0" - - ${index}: オプションのリストインデックス - - オプションに関するデータ、色を付けることが可能、スペースを含めることは不可能: - - 上記変数名の前にアンダースコアを付ける、例: ${_name}、${_type}、... - - オプションに関するデータ、生情報 (色もスペースもつけられません): - - 上記変数名の前にアンダースコアを 2 つ付ける、例: ${__name}、${__type}、... - - オプションに関するデータ、スペースのみつけられます: - - 上記変数名の前に "empty_" を付ける、例: ${empty_name}、${empty_type} - - その他のデータ: - - ${selected_line}: 行が選択されている場合に "1"、それ以外の場合に "0" - - ${newline}: この位置に改行を挿入します、オプションは複数行に渡って表示されます +The following variables can be used in these options: + - option data, with color and padded by spaces on the right: + - ${file}: configuration file (for example "weechat" or "irc") + - ${section}: section + - ${option}: option name + - ${name}: full option name (file.section.option) + - ${parent_name}: parent option name + - ${type}: option type (translated) + - ${type_en}: option type (in English) + - ${type_short}: short option type (bool/int/str/col) + - ${type_tiny}: tiny option type (b/i/s/c) + - ${default_value}: option default value + - ${default_value_undef}: "1" if default value is null, otherwise "0" + - ${value}: option value + - ${value_undef}: "1" if value is null, otherwise "0" + - ${value_changed}: "1" if value is different from default value, otherwise "0" + - ${value2}: option value, with inherited value if null + - ${parent_value}: parent option value + - ${min}: min value + - ${max}: max value + - ${description}: option description (translated) + - ${description2}: option description (translated), "(no description)" (translated) if there's no description + - ${description_en}: option description (in English) + - ${description_en2}: option description (in English), "(no description)" if there's no description + - ${string_values}: string values allowed for set of an integer option using strings + - ${marked}: "1" if option is marked, otherwise "0" + - ${index}: index of option in list + - option data, with color but no spaces: + - same names prefixed by underscore, for example: ${_name}, ${_type}, ... + - option data, raw format (no colors/spaces): + - same names prefixed by two underscores, for example: ${__name}, ${__type}, ... + - option data, only spaces: + - same names prefixed with "empty_", for example: ${empty_name}, ${empty_type} + - other data: + - ${selected_line}: "1" if the line is selected, otherwise "0" + - ${newline}: insert a new line at point, so the option is displayed on multiple lines -fset バッファを操作するキーと入力: - up 1 行上に移動 - down 1 行下に移動 - pgup 1 ページ上に移動 - pgdn 1 ページ下に移動 - alt-home << 最上部に移動 - alt-end >> 最下部に移動 - F11 < 水平左方向にスクロール - F12 > 水平右方向にスクロール +Keys and input to move in on fset buffer: + up move one line up + down move one line down + pgup move one page up + pgdn move one page down + alt-home << move to first line + alt-end >> move to last line + F11 < scroll horizontally on the left + F12 > scroll horizontally on the right -fset バッファでオプションを設定するためのキーと入力: - alt+space t ブール値をトグル - alt+'-' - 整数型および色の場合は値を 1 減らす、その他の型の場合は値を設定する - alt+'+' + 整数型および色の場合は値を 1 増やす、その他の型の場合は値を追加する - alt+f, alt+r r 値をリセット - alt+f, alt+u u 値をアンセット - alt+enter s 値を設定 - alt+f, alt+n n 新しい値を設定 - alt+f, alt+a a 値を追加 - alt+',' , オプションをマーク/アンマーク - shift+up 上の項目に移動してオプションをマーク/アンマーク - shift+down オプションをマーク/アンマークして下の項目に移動 - m:xxx フィルタ "xxx" にマッチしたことで表示されるオプションをマーク (オプションの名前や値に対する任意のフィルタが使えます、フィルタの詳細は上を参照してください) - u:xxx フィルタ "xxx" にマッチしたことで表示されるオプションをアンマーク (オプションの名前や値に対する任意のフィルタが使えます、フィルタの詳細は上を参照してください) +Keys and input to set options on fset buffer: + alt+space t toggle boolean value + alt+'-' - subtract 1 from value for integer/color, set value for other types + alt+'+' + add 1 to value for integer/color, append to value for other types + alt+f, alt+r r reset value + alt+f, alt+u u unset value + alt+enter s set value + alt+f, alt+n n set new value + alt+f, alt+a a append to value + alt+',' , mark/unmark option + shift+up move one line up and mark/unmark option + shift+down mark/unmark option and move one line down + m:xxx mark options displayed that are matching filter "xxx" (any filter on option or value is allowed, see filters above) + u:xxx unmark options displayed that are matching filter "xxx" (any filter on option or value is allowed, see filters above) -fset バッファを操作するその他のキーと入力: - ctrl+L オプションの再読込とスクリーンの再描画 (コマンド: /fset -refresh) - $ オプションの再読込 (オプションのマーク状態は変わりません) - $$ オプションの再読込 (すべてのオプションをアンマーク) - alt+p p プラグイン説明のオプションをトグル (plugins.desc.*) - alt+v v ヘルプバーをトグル - s:x,y オプションをフィールド x と y でソート (/help fset.look.sort を参照してください) - s: ソートをリセットしてデフォルトの順番に整列 (/help fset.look.sort を参照してください) - w:xxx オプションをファイル "xxx" にエクスポート - w-:xxx ヘルプを含めずに、オプションをファイル "xxx" にエクスポート - w+:xxx ヘルプを含めて、オプションをファイル "xxx" にエクスポート - ctrl+X x オプション表示用の書式を切り替える - q fset バッファを閉じる +Other keys and input on fset buffer: + ctrl+L refresh options and whole screen (command: /fset -refresh) + $ refresh options (keep marked options) + $$ refresh options (unmark all options) + alt+p p toggle plugin description options (plugins.desc.*) + alt+v v toggle help bar + s:x,y sort options by fields x,y (see /help fset.look.sort) + s: reset sort to its default value (see /help fset.look.sort) + w:xxx export options in file "xxx" + w-:xxx export options in file "xxx" without help + w+:xxx export options in file "xxx" with help + ctrl+X x switch the format used to display options + q close fset buffer -fset バッファのマウス操作: - ホイールの上下 行を上方向/下方向へスクロール - 左ボタン 行をクリック位置に移動 - 右ボタン ブール値をトグル (オン/オフ) またはオプション値を編集 - 右ボタン + 左/右にドラッグ 整数型と色の場合は値を増加/減少、その他の型の場合は値を設定/追加 - 右ボタン + 上/下にドラッグ 複数のオプションをマーク/アンマーク +Mouse actions on fset buffer: + wheel up/down move line up/down + left button move line here + right button toggle boolean (on/off) or edit the option value + right button + drag left/right increase/decrease value for integer/color, set/append to value for other types + right button + drag up/down mark/unmark multiple options -注意: 入力の先頭に 1 文字以上のスペースがある場合、以降の文字列はフィルタと解釈されます。例えば " q" はすべてのオプションから名前に "q" が含まれるものを検索しますが、"q" は fset バッファを閉じます。 +Note: if input has one or more leading spaces, the following text is interpreted as a filter, without the spaces. For example " q" searches all options with "q" inside name while "q" closes the fset buffer. -例: - 変更された IRC オプションを表示: +Examples: + show IRC options changed: /fset d:irc.* - 名前に "nicklist" が含まれるすべてのオプションを表示: + show all options with "nicklist" in name: /fset nicklist - 値に "red" が含まれるすべてのオプションを表示: + show all values which contain "red": /fset =red - 値が "red" と完全に一致するすべてのオプションを表示: + show all values which are exactly "red": /fset ==red - irc プラグインから整数型のすべてのオプションを表示: + show all integer options in irc plugin: /fset c:${file} == irc && ${type_en} == integer ---- diff --git a/doc/pl/autogen/user/fset_commands.adoc b/doc/pl/autogen/user/fset_commands.adoc index ed4078797..5eefcf786 100644 --- a/doc/pl/autogen/user/fset_commands.adoc +++ b/doc/pl/autogen/user/fset_commands.adoc @@ -23,136 +23,138 @@ -export [-help|-nohelp] <nazwa pliku> <filtr> - -bar: dodaj pomoc dla paska - -refresh: odświerza litę opcji, następnie cały ekran (komenda: /window refresh) - -up: przesuwa linie do góry o podaną "ilość" linii - -down: przesuwa linie w dół o podaną "ilość" linii - -left: przewija bufor o "procent" szerokości w lewo - -right: przewija bufor o "procent" szerokości w prawo - -go: wybierz numer linii, pierwsza linia ma numer 0 ("end" wyiera ostatnią linię) - -toggle: zmienia wartość opcji boolowskiej - -add: dodaje "wartość" (może być ujemna) do liczb i kolorów, ustawia/dodaje do wartości innych typów (ustawia, jeśli wartość jest ujemna, dodaje jeśli wartość jest pozytywna) - -reset: resetuje wartość opcji - -unset: kasuje wartość opcji - -set: dodaje komendę /set do linii poleceń w celu edycji wartości dla opcji (ustawia kursor na początku wartości) - -setnew: dodaje komendę /set do linii poleceń w celu ustawienia wartości dla opcji - -append: dodaje komendę /set do linii poleceń w celu dodania wartości do opcji (ustawia kursor na końcu wartości) - -mark: przełącza zaznaczenie - -format: przełącza na następny dostępny format - -export: eksportuje opcje i wartości wyświetlane w pliku (każda linia ma format: "/set nazwa wartość" lub "/unset nazwa") - -help: wymusza zapisanie pomocy dla opcji w wyeksportowanym pliku (zobacz /help fset.look.export_help_default) - -nohelp: nie zapisuj pomocy dla opcji w wyeksportowanym pliku (zobacz /help fset.look.export_help_default) - filtr: ustawia nowy filtr żeby pokazać konkretne opcje (filtr ten może być użyty jako dane wejściowe w buforze fset); dozwolone formaty: - * pokazuje wszystkie opcje (brak filtra) - xxx pokazuje tylko opcje z "xxx" w nazwie - f:xxx pokazuje tylko opcje dla pliku konfiguracyjnego "xxx" - t:xxx pokazuje tylko opcje typu "xxx" (bool/int/str/col) - d pokazuje tylko zmienione opcje - d:xxx pokazuje tylko zmienione opcje z "xxx" w nazwie - d=xxx pokazuje tylko zmienione opcje z wartością zawierającą "xxx" - d==xxx pokazuje tylko zmienione opcje z wartością równą "xxx" - =xxx pokazuje tylko opcje z wartością zawierającą "xxx" - ==xxx pokazuje tylko opcje z wartością równą "xxx" - c:xxx pokazuje tylko opcje pasujące do przretworzonego warunku "xxx", używając najstępujących zmiennych: file, section, option, name, parent_name, type, type_en, type_short (bool/int/str/col), type_tiny (b/i/s/c), default_value, default_value_undef, value, quoted_value, value_undef, value_changed, parent_value, min, max, description, description2, description_en, description_en2, string_values + -bar: add the help bar + -refresh: refresh list of options, then whole screen (command: /window refresh) + -up: move the selected line up by "number" lines + -down: move the selected line down by "number" lines + -left: scroll the fset buffer by "percent" of width on the left + -right: scroll the fset buffer by "percent" of width on the right + -go: select a line by number, first line number is 0 ("end" to select the last line) + -toggle: toggle the boolean value + -add: add "value" (which can be a negative number) for integers and colors, set/append to value for other types (set for a negative value, append for a positive value) + -reset: reset the value of option + -unset: unset the option + -set: add the /set command in input to edit the value of option (move the cursor at the beginning of value) + -setnew: add the /set command in input to edit a new value for the option + -append: add the /set command to append something in the value of option (move the cursor at the end of value) + -mark: toggle mark + -format: switch to the next available format + -export: export the options and values displayed in a file (each line has format: "/set name value" or "/unset name") + -help: force writing of help on options in exported file (see /help fset.look.export_help_default) + -nohelp: do not write help on options in exported file (see /help fset.look.export_help_default) + filter: set a new filter to see only matching options (this filter can be used as input in fset buffer as well); allowed formats are: + * show all options (no filter) + xxx show only options with "xxx" in name + f:xxx show only configuration file "xxx" + t:xxx show only type "xxx" (bool/int/str/col) + d show only changed options + d:xxx show only changed options with "xxx" in name + d=xxx show only changed options with "xxx" in value + d==xxx show only changed options with exact value "xxx" + h=xxx show only options with "xxx" in description (translated) + he=xxx show only options with "xxx" in description (in English) + =xxx show only options with "xxx" in value + ==xxx show only options with exact value "xxx" + c:xxx show only options matching the evaluated condition "xxx", using following variables: file, section, option, name, parent_name, type, type_en, type_short (bool/int/str/col), type_tiny (b/i/s/c), default_value, default_value_undef, value, quoted_value, value_undef, value_changed, parent_value, min, max, description, description2, description_en, description_en2, string_values -Linie z opcjami są wyświetlane z użyciem przetworzonych ciągów (zobacz /help eval aby poznać format), z tymi opcjami: - - fset.format.option1: pierwszy format dla opcji - - fset.format.option2: drugi format dla opcji +The lines with options are displayed using string evaluation (see /help eval for the format), with these options: + - fset.format.option1: first format for an option + - fset.format.option2: second format for an option -Następujące zmienne mogą zostać użyte w tych opcjach: - - dane opcji z kolorem i wyrównane spacjami do prawej: - - ${file}: plik konfiguracyjny (na przykład "weechat" lub "irc") - - ${section}: sekcja - - ${option}: nazwa opcji - - ${name}: pełna nazwa opcji (plik.sekcja.opcja) - - ${parent_name}: nazwa nadrzędnej opcji - - ${type}: typ opcji (przetłumaczony) - - ${type_en}: typ opcji (po angielsku) - - ${type_short}: skrócony typ (bool/int/str/col) - - ${type_tiny}: krótki typ (b/i/s/c) - - ${default_value}: domyślna wartość opcji - - ${default_value_undef}: "1" jeśli domyślna wartość jest pusta, inaczej "0" - - ${value}: wartość opcji - - ${value_undef}: "1" jeśli wartość jest pusta, inaczej "0" - - ${value_changed}: "1" jeśli wartość różni się od domyślnej, inaczej "0" - - ${value2}: wartość opcji, z odziedziczoną wartościa jeśli pusta - - ${parent_value}: wartość nadrzędnej opcji - - ${min}: minimalna wartość - - ${max}: maksymalna wartość - - ${description}: opis opcji (przetłumaczony) - - ${description2}: opis opcji (przetłumaczony), "(brak opisu)" (przetłumaczony) jeśli nie ma opisu - - ${description_en}: opis opcji (po angielsku) - - ${description_en2}: opis opcji (po angielsku), "(brak opisu)" jeśli nie ma opisu - - ${string_values}: dozwolone wartości ciągu dla liczbowych wartości opcji - - ${marked}: "1" jeśli opcja jest zaznaczona, inaczej "0" - - ${index}: numer opcji na liście - - dane opcji, z kolorami ale bez spacji: - - te same nazwy poprzedzone podkreśleniem, na przykład: ${_name}, ${_type}, ... - - dane opcji, nieprzetworzony format (bez kolorów/spacji): - - te same nazwy poprzedzone dwoma podkreśleniami, na przykład: ${__name}, ${__type}, ... - - dane opcji, tylko spacje: - - te same nazwy poprzedzone "empty_", na przykład: ${empty_name}, ${empty_type} - - inne dane: - - ${selected_line}: "1" jeśli linia jest zaznaczona, inaczej "0" - - ${newline}: dodaje znak nowej linii, dzięki czemu opcja wyświetlana jestw kilku liniach +The following variables can be used in these options: + - option data, with color and padded by spaces on the right: + - ${file}: configuration file (for example "weechat" or "irc") + - ${section}: section + - ${option}: option name + - ${name}: full option name (file.section.option) + - ${parent_name}: parent option name + - ${type}: option type (translated) + - ${type_en}: option type (in English) + - ${type_short}: short option type (bool/int/str/col) + - ${type_tiny}: tiny option type (b/i/s/c) + - ${default_value}: option default value + - ${default_value_undef}: "1" if default value is null, otherwise "0" + - ${value}: option value + - ${value_undef}: "1" if value is null, otherwise "0" + - ${value_changed}: "1" if value is different from default value, otherwise "0" + - ${value2}: option value, with inherited value if null + - ${parent_value}: parent option value + - ${min}: min value + - ${max}: max value + - ${description}: option description (translated) + - ${description2}: option description (translated), "(no description)" (translated) if there's no description + - ${description_en}: option description (in English) + - ${description_en2}: option description (in English), "(no description)" if there's no description + - ${string_values}: string values allowed for set of an integer option using strings + - ${marked}: "1" if option is marked, otherwise "0" + - ${index}: index of option in list + - option data, with color but no spaces: + - same names prefixed by underscore, for example: ${_name}, ${_type}, ... + - option data, raw format (no colors/spaces): + - same names prefixed by two underscores, for example: ${__name}, ${__type}, ... + - option data, only spaces: + - same names prefixed with "empty_", for example: ${empty_name}, ${empty_type} + - other data: + - ${selected_line}: "1" if the line is selected, otherwise "0" + - ${newline}: insert a new line at point, so the option is displayed on multiple lines -Klawisze i polecenia do poruszania się w buforze fset: - up przesuwa linię do góry - down przesuwa linie w dół - pgup przesówa stronę do góry - pgdn przesówa stronę w dół - alt-home << przenosi do pierwszej linii - alt-end >> przenosi do ostatniej linii - F11 < przewija w lewo - F12 > przewija w prawo +Keys and input to move in on fset buffer: + up move one line up + down move one line down + pgup move one page up + pgdn move one page down + alt-home << move to first line + alt-end >> move to last line + F11 < scroll horizontally on the left + F12 > scroll horizontally on the right -Klawisze i polecenia do ustawiania opcji w buforze fset: - alt+space t zmiana wartości boolowskiej - alt+'-' - odejmuje 1 od wartości liczbowej/koloru, ustawia wartości innych typów - alt+'+' + dodaje 1 od wartości liczbowej/koloru, dodaje do wartości innych typów - alt+f, alt+r r resetuje wartość - alt+f, alt+u u kasuje wartość - alt+enter s ustawia wartość - alt+f, alt+n n ustawia nową wartość - alt+f, alt+a a dodaje do wartości - alt+',' , zazcnacza/odznacza opcję - shift+up przesuwa jedną linię w górę oraz zaznacza/odznacza opcję - shift+down zaznacza/odznacza opcję i przesuwa jedną linię w dół - m:xxx zaznacza wyświetlane opcje pasujące do filtru "xxx" (dowolny filtr dla opcji lub wartoci, zobacz wyżej jak definiować filtry) - u:xxx odznacza wyświetlane opcje pasujące do filtru "xxx" (dowolny filtr dla opcji lub wartoci, zobacz wyżej jak definiować filtry) +Keys and input to set options on fset buffer: + alt+space t toggle boolean value + alt+'-' - subtract 1 from value for integer/color, set value for other types + alt+'+' + add 1 to value for integer/color, append to value for other types + alt+f, alt+r r reset value + alt+f, alt+u u unset value + alt+enter s set value + alt+f, alt+n n set new value + alt+f, alt+a a append to value + alt+',' , mark/unmark option + shift+up move one line up and mark/unmark option + shift+down mark/unmark option and move one line down + m:xxx mark options displayed that are matching filter "xxx" (any filter on option or value is allowed, see filters above) + u:xxx unmark options displayed that are matching filter "xxx" (any filter on option or value is allowed, see filters above) -Pozostałe skróty klawiszowe i polecenia w buforze fset: - ctrl+L odświerza opcje i cały ekran (komenda: /fset -refresh) - $ odświerza opcje (pozotawia zaznaczenia) - $$ odświerza opcje (kasuje zaznaczenia) - alt+p p przełącza opcje opisu wtyczki (plugins.desc.*) - alt+v v przełącza pasek pomocy - s:x,y sortuje opcje po wartościach x,y (zobacz /help fset.look.sort) - s: resetuje sortowanie do domyślnych wartości (zobacz /help fset.look.sort) - w:xxx eksportuje opcje do pliku "xxx" - w-:xxx eskportuje opcje do pliku "xxx" bez pomocy - w+:xxx eskportuje opcje do pliku "xxx" z pomocą - ctrl+X x przełącza format uzywany do wyświetlenia opcji - q zamyka bufor fset +Other keys and input on fset buffer: + ctrl+L refresh options and whole screen (command: /fset -refresh) + $ refresh options (keep marked options) + $$ refresh options (unmark all options) + alt+p p toggle plugin description options (plugins.desc.*) + alt+v v toggle help bar + s:x,y sort options by fields x,y (see /help fset.look.sort) + s: reset sort to its default value (see /help fset.look.sort) + w:xxx export options in file "xxx" + w-:xxx export options in file "xxx" without help + w+:xxx export options in file "xxx" with help + ctrl+X x switch the format used to display options + q close fset buffer -Akcje myszy w buforze fset: - rolka up/down przesuwa linie w gorę/dół - lewy przyciks przesuwa linię w wybrane miejsce - prawy przycisk przełącza wartość boolowską (on/off) lub edytuje wartość pola - prawy przycisk + przeciągnięcie w lewo/prawo zwiększa/zmniejsza wartość liczby/koloru, ustawia/dodaje wartości innych typów - prawy przycisk + przeciągnięcie w górę/dół zaznacza/odznacza wiele opcji +Mouse actions on fset buffer: + wheel up/down move line up/down + left button move line here + right button toggle boolean (on/off) or edit the option value + right button + drag left/right increase/decrease value for integer/color, set/append to value for other types + right button + drag up/down mark/unmark multiple options -Uwaga: jeśli wejście posiada na początku kilka spacji jest traktowane jako filtr bez spacji. Na przykład " q" pokazuje wszystkie opcje z "q" w nazwie "q" zamyka bufor. +Note: if input has one or more leading spaces, the following text is interpreted as a filter, without the spaces. For example " q" searches all options with "q" inside name while "q" closes the fset buffer. -Przykłady: - pokazuje zmienione opcje IRC: +Examples: + show IRC options changed: /fset d:irc.* - pokazuje wszystkie opcje zawierające w nazwie "nicklist": + show all options with "nicklist" in name: /fset nicklist - pokazuje wszystkie wartości zawierające "red": + show all values which contain "red": /fset =red - pokazuje wszystkie wartości równe "red": + show all values which are exactly "red": /fset ==red - pokazuje wszystkie liczbowe wartości wtyczki irc: + show all integer options in irc plugin: /fset c:${file} == irc && ${type_en} == integer ---- @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" "PO-Revision-Date: 2019-05-13 21:31+0200\n" "Last-Translator: Ondřej Súkup <mimi.vx@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5529,6 +5529,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " @@ -24,7 +24,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" "PO-Revision-Date: 2019-08-21 21:56+0200\n" "Last-Translator: Nils Görs <weechatter@arcor.de>\n" "Language-Team: German <kde-i18n-de@kde.org>\n" @@ -6715,6 +6715,7 @@ msgstr "" "setnew || -append || -mark || -format || -export [-help|-nohelp] <filename> " "|| <filter>" +#, fuzzy msgid "" " -bar: add the help bar\n" " -refresh: refresh list of options, then whole screen (command: /window " @@ -6755,6 +6756,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" "PO-Revision-Date: 2019-05-13 21:31+0200\n" "Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5734,6 +5734,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " @@ -21,8 +21,8 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" -"PO-Revision-Date: 2019-08-20 20:17+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" +"PO-Revision-Date: 2019-08-24 07:09+0200\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" "Language: fr\n" @@ -6602,6 +6602,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " @@ -6785,6 +6789,10 @@ msgstr "" "dans la valeur\n" " d==xxx afficher seulement les options changées avec la " "valeur exacte \"xxx\"\n" +" h=xxx afficher seulement les options avec \"xxx\" dans la " +"description (traduite)\n" +" he=xxx afficher seulement les options avec \"xxx\" dans la " +"description (en Anglais)\n" " =xxx afficher seulement les options avec \"xxx\" dans la " "valeur\n" " ==xxx afficher seulement les options avec la valeur exacte " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" "PO-Revision-Date: 2019-05-13 21:31+0200\n" "Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5068,6 +5068,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" "PO-Revision-Date: 2019-05-13 21:31+0200\n" "Last-Translator: Esteban I. Ruiz Moreno <exio4.com@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5897,6 +5897,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" "PO-Revision-Date: 2019-06-22 08:40+0200\n" "Last-Translator: AYANOKOUZI, Ryuunosuke <i38w7i3@yahoo.co.jp>\n" "Language-Team: Japanese <https://github.com/l/weechat/tree/master/" @@ -6283,6 +6283,7 @@ msgstr "" "setnew || -append || -mark || -format || -export [-help|-nohelp] <filename> " "|| <filter>" +#, fuzzy msgid "" " -bar: add the help bar\n" " -refresh: refresh list of options, then whole screen (command: /window " @@ -6323,6 +6324,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " @@ -22,7 +22,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" "PO-Revision-Date: 2019-06-22 08:40+0200\n" "Last-Translator: Krzysztof Korościk <soltys@soltys.info>\n" "Language-Team: Polish <kde-i18n-doc@kde.org>\n" @@ -6402,6 +6402,7 @@ msgstr "" "setnew || -append || -mark || -format || -export [-help|-nohelp] <nazwa " "pliku> || <filtr>" +#, fuzzy msgid "" " -bar: add the help bar\n" " -refresh: refresh list of options, then whole screen (command: /window " @@ -6442,6 +6443,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" "PO-Revision-Date: 2019-05-13 21:32+0200\n" "Last-Translator: Vasco Almeida <vascomalmeida@sapo.pt>\n" "Language-Team: Portuguese <>\n" @@ -6271,6 +6271,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " diff --git a/po/pt_BR.po b/po/pt_BR.po index 0b28f0efd..e76fac5bf 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" "PO-Revision-Date: 2019-05-13 21:32+0200\n" "Last-Translator: Eduardo Elias <camponez@gmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5706,6 +5706,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" "PO-Revision-Date: 2019-05-13 21:32+0200\n" "Last-Translator: Aleksey V Zapparov AKA ixti <ixti@member.fsf.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -5105,6 +5105,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " @@ -20,7 +20,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" "PO-Revision-Date: 2019-05-13 21:32+0200\n" "Last-Translator: Hasan Kiran <sunder67@hotmail.com>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4655,6 +4655,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " diff --git a/po/weechat.pot b/po/weechat.pot index adb832659..9934006e7 100644 --- a/po/weechat.pot +++ b/po/weechat.pot @@ -21,7 +21,7 @@ msgid "" msgstr "" "Project-Id-Version: WeeChat\n" "Report-Msgid-Bugs-To: flashcode@flashtux.org\n" -"POT-Creation-Date: 2019-08-20 16:13+0200\n" +"POT-Creation-Date: 2019-08-24 07:05+0200\n" "PO-Revision-Date: 2014-08-16 10:27+0200\n" "Last-Translator: Sébastien Helleu <flashcode@flashtux.org>\n" "Language-Team: weechat-dev <weechat-dev@nongnu.org>\n" @@ -4630,6 +4630,10 @@ msgid "" " d:xxx show only changed options with \"xxx\" in name\n" " d=xxx show only changed options with \"xxx\" in value\n" " d==xxx show only changed options with exact value \"xxx\"\n" +" h=xxx show only options with \"xxx\" in description " +"(translated)\n" +" he=xxx show only options with \"xxx\" in description (in " +"English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated condition " diff --git a/src/plugins/fset/fset-command.c b/src/plugins/fset/fset-command.c index 776664f76..26e0640a2 100644 --- a/src/plugins/fset/fset-command.c +++ b/src/plugins/fset/fset-command.c @@ -646,6 +646,10 @@ fset_command_init () "value\n" " d==xxx show only changed options with exact value " "\"xxx\"\n" + " h=xxx show only options with \"xxx\" in " + "description (translated)\n" + " he=xxx show only options with \"xxx\" in " + "description (in English)\n" " =xxx show only options with \"xxx\" in value\n" " ==xxx show only options with exact value \"xxx\"\n" " c:xxx show only options matching the evaluated " diff --git a/src/plugins/fset/fset-option.c b/src/plugins/fset/fset-option.c index a18105e62..36e009159 100644 --- a/src/plugins/fset/fset-option.c +++ b/src/plugins/fset/fset-option.c @@ -372,6 +372,22 @@ fset_option_match_filter (struct t_fset_option *fset_option, const char *filter) /* filter by modified values */ return (fset_option_value_is_changed (fset_option)) ? 1 : 0; } + else if (strncmp (filter, "h=", 2) == 0) + { + /* filter by help text (translated) */ + return (fset_option_string_match ( + (fset_option->description && fset_option->description[0]) ? + _(fset_option->description) : "", + filter + 2)) ? 1 : 0; + } + else if (strncmp (filter, "he=", 3) == 0) + { + /* filter by help text (in English) */ + return (fset_option_string_match ( + (fset_option->description && fset_option->description[0]) ? + fset_option->description : "", + filter + 3)) ? 1 : 0; + } else if (strncmp (filter, "==", 2) == 0) { /* filter by exact value */ |