mirror of
https://github.com/weechat/weechat.git
synced 2026-06-25 04:16:38 +02:00
Compare commits
19 Commits
v0.3.4-rc1
...
v0.3.4-rc2
| Author | SHA1 | Date | |
|---|---|---|---|
| 4d98ddb13c | |||
| a9f25d125b | |||
| 8893a59063 | |||
| f7a3a2d995 | |||
| 2ee9f7b0fc | |||
| 1340ce6b41 | |||
| e17e5a9614 | |||
| cd7a02bec5 | |||
| e80d6b93a5 | |||
| 4043ca3d38 | |||
| f2c9961a21 | |||
| 29f1461c42 | |||
| 987044405b | |||
| 62dc84f4e9 | |||
| 4a74325e61 | |||
| 25d9d6e0fe | |||
| bea89de51c | |||
| 4669eac372 | |||
| cabf0c4bc1 |
+1
-1
@@ -33,7 +33,7 @@ ENDIF(PREFIX)
|
||||
|
||||
SET(VERSION_MAJOR "0")
|
||||
SET(VERSION_MINOR "3")
|
||||
SET(VERSION_PATCH "4-rc1")
|
||||
SET(VERSION_PATCH "4-rc2")
|
||||
SET(VERSION ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH})
|
||||
SET(LICENSE "GPL3")
|
||||
SET(PKG_STRING "${PROJECT_NAME} ${VERSION}")
|
||||
|
||||
@@ -1,12 +1,17 @@
|
||||
WeeChat ChangeLog
|
||||
=================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.3.4-rc1, 2010-12-10
|
||||
v0.3.4-rc2, 2010-12-20
|
||||
|
||||
|
||||
Version 0.3.4 (under dev!)
|
||||
--------------------------
|
||||
|
||||
* core: add 256 colors support, new section "palette" in weechat.conf
|
||||
(task #6834)
|
||||
* core: replace the 10 nick color options and number of nick colors by a single
|
||||
option "weechat.color.chat_nick_colors" (comma separated list of colors)
|
||||
* core: add support of python 2.7 in cmake and configure (debian #606989)
|
||||
* core: add color support in option weechat.look.buffer_time_format
|
||||
* core: call to hook_config when config option is created
|
||||
* core: add new option weechat.look.highlight_regex and function
|
||||
@@ -34,13 +39,15 @@ Version 0.3.4 (under dev!)
|
||||
* core: use similar behaviour for keys bound to local or global history
|
||||
(bug #30759)
|
||||
* api: add priority for hooks (task #10550)
|
||||
* api: add new functions: hashtable_get_string, hook_info_hashtable,
|
||||
info_get_hashtable, hook_hsignal, hook_hsignal_send,
|
||||
hook_completion_get_string, nicklist_group_get_integer,
|
||||
* api: add new functions: list_search_pos, list_casesearch_pos,
|
||||
hashtable_get_string, hook_info_hashtable, info_get_hashtable, hook_hsignal,
|
||||
hook_hsignal_send, hook_completion_get_string, nicklist_group_get_integer,
|
||||
nicklist_group_get_string, nicklist_group_get_pointer, nicklist_group_set,
|
||||
nicklist_nick_get_integer, nicklist_nick_get_string, nicklist_nick_get_pointer,
|
||||
nicklist_nick_set
|
||||
* alias: complete with alias value for second argument of command /alias
|
||||
* irc: fix bug with charset decoding on private buffers (decoding was made for
|
||||
local nick instead of remote nick) (bug #31890)
|
||||
* irc: add option "-switch" to commands /connect and /reconnect
|
||||
* irc: allow command /reconnect on servers that are not currently connected
|
||||
(bug #30726)
|
||||
@@ -191,6 +198,7 @@ Version 0.3.2 (2010-04-18)
|
||||
* alias: add custom completion for aliases (task #9479)
|
||||
* scripts: allow script commands to reload only one script
|
||||
* scripts: fix bug with callbacks when loading a script already loaded
|
||||
* perl: fix crash when MULTIPLICITY is disabled
|
||||
* perl: fix crash when callbacks are called during script initialization
|
||||
(bug #29018)
|
||||
* perl: fix crash on /quit or unload of plugin under FreeBSD and Cygwin
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
WeeChat News
|
||||
============
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
v0.3.4-rc1, 2010-12-10
|
||||
v0.3.4-rc2, 2010-12-20
|
||||
|
||||
|
||||
Version 0.3.4 (under dev!)
|
||||
@@ -9,8 +9,13 @@ Version 0.3.4 (under dev!)
|
||||
|
||||
Important release notes:
|
||||
|
||||
* if you are using `/upgrade` from a previous release, some nick prefixes can
|
||||
be wrong, so it is recommended to do `/allchan names`.
|
||||
* if you are using `/upgrade` from a previous release:
|
||||
** some nick prefixes can be wrong, so it is recommended to do `/allchan names`
|
||||
** nick colors are defined with a new option "weechat.color.chat_nick_colors",
|
||||
therefore old options "weechat.color.chat_nick_color1..10" will be lost when
|
||||
upgrading
|
||||
** nick colors in messages displayed will be wrong if you changed some nick colors
|
||||
(old default colors will be used)
|
||||
* some IRC options have been renamed, before upgrading to this version, note
|
||||
value for old options, and set them again with new name:
|
||||
** options moved from 'network' section to servers (with global value, and server
|
||||
|
||||
@@ -34,7 +34,7 @@ IF(PYTHON_FOUND)
|
||||
ENDIF(PYTHON_FOUND)
|
||||
|
||||
FIND_PROGRAM(PYTHON_EXECUTABLE
|
||||
NAMES python python2.6 python2.5 python2.4 python2.3 python2.2
|
||||
NAMES python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2
|
||||
PATHS /usr/bin /usr/local/bin /usr/pkg/bin
|
||||
)
|
||||
|
||||
@@ -65,7 +65,7 @@ IF(PYTHON_EXECUTABLE)
|
||||
)
|
||||
|
||||
FIND_LIBRARY(PYTHON_LIBRARY
|
||||
NAMES python python2.6 python2.5 python2.4 python2.3 python2.2
|
||||
NAMES python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2
|
||||
PATHS ${PYTHON_POSSIBLE_LIB_PATH}
|
||||
)
|
||||
|
||||
|
||||
+3
-3
@@ -24,10 +24,10 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
AC_PREREQ(2.56)
|
||||
AC_INIT(WeeChat, 0.3.4-rc1, flashcode@flashtux.org)
|
||||
AC_INIT(WeeChat, 0.3.4-rc2, flashcode@flashtux.org)
|
||||
AC_CONFIG_SRCDIR([src/core/weechat.c])
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
AM_INIT_AUTOMAKE([weechat], [0.3.4-rc1])
|
||||
AM_INIT_AUTOMAKE([weechat], [0.3.4-rc2])
|
||||
LICENSE="GPL3"
|
||||
|
||||
# Checks for programs
|
||||
@@ -477,7 +477,7 @@ fi
|
||||
PYTHON_VERSION=
|
||||
|
||||
if test "x$enable_python" = "xyes" ; then
|
||||
AC_PATH_PROGS(PYTHON, python python2.5 python2.4 python2.3 python2.2)
|
||||
AC_PATH_PROGS(PYTHON, python python2.7 python2.6 python2.5 python2.4 python2.3 python2.2)
|
||||
if test -z $PYTHON ; then
|
||||
AC_MSG_WARN([
|
||||
*** Python must be installed on your system but python interpreter couldn't be found in path.
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
div.sectionbody {
|
||||
font-family: serif,Georgia,"Times New Roman",Times;
|
||||
font-family: serif,Helvetica,arial;
|
||||
}
|
||||
h5 {
|
||||
font-size: 1em;
|
||||
font-size: 0.95em;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# user's guide
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html
|
||||
COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a toc -a toclevels=3 -a toc-title='Inhaltsverzeichnis' -a date=`date "+%F"` -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.de.txt
|
||||
COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a toc -a toclevels=4 -a toc-title='Inhaltsverzeichnis' -a date=`date "+%F"` -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.de.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.de.txt
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.de.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.txt
|
||||
|
||||
@@ -48,55 +48,10 @@
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname (Standardwert: `lightcyan`)
|
||||
|
||||
* *weechat.color.chat_nick_color01*
|
||||
** Beschreibung: `Textfarbe #1 für Nick`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname (Standardwert: `cyan`)
|
||||
|
||||
* *weechat.color.chat_nick_color02*
|
||||
** Beschreibung: `Textfarbe #2 für Nick`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname (Standardwert: `magenta`)
|
||||
|
||||
* *weechat.color.chat_nick_color03*
|
||||
** Beschreibung: `Textfarbe #3 für Nick`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname (Standardwert: `green`)
|
||||
|
||||
* *weechat.color.chat_nick_color04*
|
||||
** Beschreibung: `Textfarbe #4 für Nick`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname (Standardwert: `brown`)
|
||||
|
||||
* *weechat.color.chat_nick_color05*
|
||||
** Beschreibung: `Textfarbe #5 für Nick`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname (Standardwert: `lightblue`)
|
||||
|
||||
* *weechat.color.chat_nick_color06*
|
||||
** Beschreibung: `Textfarbe #6 für Nick`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname (Standardwert: `default`)
|
||||
|
||||
* *weechat.color.chat_nick_color07*
|
||||
** Beschreibung: `Textfarbe #7 für Nick`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname (Standardwert: `lightcyan`)
|
||||
|
||||
* *weechat.color.chat_nick_color08*
|
||||
** Beschreibung: `Textfarbe #8 für Nick`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname (Standardwert: `lightmagenta`)
|
||||
|
||||
* *weechat.color.chat_nick_color09*
|
||||
** Beschreibung: `Textfarbe #9 für Nick`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname (Standardwert: `lightgreen`)
|
||||
|
||||
* *weechat.color.chat_nick_color10*
|
||||
** Beschreibung: `Textfarbe #10 für Nick`
|
||||
** Typ: Farbe
|
||||
** Werte: ein Farbname (Standardwert: `blue`)
|
||||
* *weechat.color.chat_nick_colors*
|
||||
** Beschreibung: `text color for nicks (comma separated list of colors)`
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette (Standardwert: `"cyan,magenta,green,brown,lightblue,default,lightcyan,lightmagenta,lightgreen,blue"`)
|
||||
|
||||
* *weechat.color.chat_nick_other*
|
||||
** Beschreibung: `Farbe des anderen Nicknamens in einem privaten Buffer`
|
||||
@@ -353,11 +308,6 @@
|
||||
** Typ: Zeichenkette
|
||||
** Werte: beliebige Zeichenkette (Standardwert: `"%H:%M:%S"`)
|
||||
|
||||
* *weechat.look.color_nicks_number*
|
||||
** Beschreibung: `Anzahl der Farben die für die Nicknamen genutzt werden sollen`
|
||||
** Typ: integer
|
||||
** Werte: 1 .. 10 (Standardwert: `10`)
|
||||
|
||||
* *weechat.look.color_real_white*
|
||||
** Beschreibung: `Falls diese Option aktiviert ist, wird echtes weiß als Farbe genutzt. In der Standardeinstellung ist diese Option allerdings deaktiviert damit es zu keinen Problemen mit Terminals kommt die einen weißen Hintergrund nutzen (falls man keinen weißen Hintergrund nutzen sollte dann ist es ratsam diese Option zu aktivieren, andernfalls wird die voreingestellte Vordergrundfarbe des Terminals genutzt)`
|
||||
** Typ: boolesch
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
WeeChat Quick Start Guide
|
||||
=========================
|
||||
WeeChat Quickstart Anleitung
|
||||
============================
|
||||
Sébastien Helleu <flashcode@flashtux.org>
|
||||
|
||||
|
||||
@@ -8,8 +8,8 @@ Start von WeeChat
|
||||
-----------------
|
||||
|
||||
Die bevorzugte Terminal-Emulation für X (aber nicht obligatorisch) ist
|
||||
rxvt-unicode (es hat eine gute Unterstützung für UTF-8 und keine Probleme
|
||||
mit der Standard Tastaturbelegung).
|
||||
rxvt-unicode (es besitzt eine gute Unterstützung für UTF-8 und hat keine
|
||||
Probleme mit der Standard Tastaturbelegung).
|
||||
|
||||
Starte "weechat-curses" aus Deiner shell.
|
||||
|
||||
@@ -24,26 +24,26 @@ ausführen.
|
||||
|
||||
Um Optionen zu setzen benutzt man `/set config.section.option value`.
|
||||
(dabei ist 'config' der Konfigurationsname ('weechat' für den Kern von weechat,
|
||||
oder ein Plugin-Name), 'section' ein Abschnitt dieser Konfiguration und 'option'
|
||||
der Name der Option).
|
||||
oder der Name einer Erweiterung), 'section' ein Abschnitt dieser Konfiguration und 'option'
|
||||
der Name der betreffenden Option).
|
||||
|
||||
WeeChat benutzt den neu eingestellten Wert sofort (WeeChat muss also *niemals* neu gestartet
|
||||
WeeChat benutzt den neu eingestellten Wert umgehend (WeeChat muss also *niemals* neu gestartet
|
||||
werden, nach dem die Konfiguration verändert wurde).
|
||||
|
||||
Du kannst die Option `/set` mit teilweise ausgeschriebenen Namen und dem
|
||||
Platzhalter "*" am Beginn oder Ende verwenden um alle Optionen anzuzeigen, die
|
||||
die Zeichenkette enthalten.
|
||||
Platzhalter "*" am Beginn oder Ende verwenden um alle Optionen anzuzeigen die
|
||||
diese Zeichenkette enthalten.
|
||||
|
||||
Zum Beispiel:
|
||||
|
||||
`/set`::
|
||||
Anzeige aller Optionen (WeeChat und Plugins)
|
||||
Anzeige aller Optionen (WeeChat und Erweiterungen)
|
||||
|
||||
`/set weechat.*`::
|
||||
Anzeige der WeeChat Optionen
|
||||
|
||||
`/set irc.*`::
|
||||
Anzeige der Optionen des IRC-Plugins
|
||||
Anzeige der Optionen des IRC-Erweiterung
|
||||
|
||||
Du kannst mit `/help` Hilfe für Optionen auflisten lassen, z.B.:
|
||||
`/help weechat.look.highlight`.
|
||||
@@ -79,8 +79,8 @@ Du kannst einen IRC-Server mit dem Befehl `/server` hinzufügen, z.B.:
|
||||
|
||||
/server add oftc irc.oftc.net/6667
|
||||
|
||||
Wie immer, wenn Du nicht mehr weiter weißt, kannst Du mit `/help server` Hilfe
|
||||
erlangen.
|
||||
Wie bei jedem Befehl kannst Du Dir, falls Du nicht mehr weiter kommst, mit
|
||||
`/help server` einen Hilfstext anzeigen lassen.
|
||||
|
||||
|
||||
[[irc_server_options]]
|
||||
@@ -88,25 +88,26 @@ Setzen eigener IRC-Server Optionen
|
||||
----------------------------------
|
||||
|
||||
WeeChat verwendet Vorgabewerte für alle Server (so genannte "fall backs") falls
|
||||
Du keine eigenen Werte für entsprechende Server-Optionen bestimmst.
|
||||
Du keine eigenen Werte für entsprechende Server-Optionen bestimmt haben solltest.
|
||||
Diese Vorgabeoptionen sind "irc.server_default.*".
|
||||
|
||||
Für jede Server-Option benutzt WeeChat den entsprechend gesetzten Wert - falls
|
||||
definiert (nicht "null"). Andernfalls verwendet WeeChat Vorgabewerte
|
||||
("irc.server_default.xxx").
|
||||
|
||||
Als Beispiel erwähnt seien die Vorgabe (default) nicks, die auf dem Un*x Login
|
||||
basieren. Diese können nun für oftc-Server mittels folgendem Befehl
|
||||
Als Beispiel erwähnt ist die Vorgabe (default) nicks, die auf dem Un*x Login
|
||||
basiert. Diese Vorgabe kann nun für den oftc-Server mittels folgendem Befehl
|
||||
überschrieben werden:
|
||||
|
||||
/set irc.server.oftc.nicks "mynick1,mynick2,mynick3,mynick4,mynick5"
|
||||
|
||||
Um den User-Namen und wirklichen Namen zu setzen:
|
||||
Um einen User- und realen Namen zu setzen:
|
||||
|
||||
/set irc.server.oftc.username "Mein User-Name"
|
||||
/set irc.server.oftc.realname "Mein wirklicher Name"
|
||||
|
||||
Aktivieren des automatischen Verbindens mit dem Server beim Start von WeeChat:
|
||||
Um beim Start von WeeChat automatisch eine Verbindung zu einem Server
|
||||
herzustellen:
|
||||
|
||||
/set irc.server.oftc.autoconnect on
|
||||
|
||||
|
||||
+99
-50
@@ -281,6 +281,10 @@ Befehlszeile:
|
||||
-a, --no-connect::
|
||||
deaktiviert das automatische Verbinden mit den Servern beim Start von WeeChat
|
||||
|
||||
// TRANSLATION MISSING
|
||||
-c, --colors::
|
||||
Display default colors in terminal
|
||||
|
||||
-d, --dir 'path'::
|
||||
legt den Konfigurationsordner für WeeChat fest (Voreinstellung: ~/.weechat) in
|
||||
dem die Erweiterungen, Skripten, Protokolldateien etc.pp. gesichert werden.
|
||||
@@ -444,101 +448,101 @@ Tastenbefehle für die Befehlszeile
|
||||
| Taste| Beschreibung und Befehl
|
||||
|
||||
| Pfeil links +
|
||||
Ctrl + `b` |
|
||||
Ctrl + "b" |
|
||||
setzt den Cursor eine Position nach links +
|
||||
`/input move_previous_char`
|
||||
|
||||
| Pfeil rechts +
|
||||
Ctrl + `f` |
|
||||
Ctrl + "f" |
|
||||
setzt den Cursor eine Position nach rechts +
|
||||
`/input move_next_char`
|
||||
|
||||
| Ctrl + Pfeil links +
|
||||
Alt + `b` |
|
||||
Alt + "b" |
|
||||
springt zum Anfang des vorherigen Wortes in der Befehlszeile +
|
||||
`/input move_previous_word`
|
||||
|
||||
| Ctrl + Pfeil rechts +
|
||||
Alt + `f` |
|
||||
Alt + "f" |
|
||||
sprint zum Anfang des nächsten Wortes in der Befehlszeile +
|
||||
`/input move_next_word`
|
||||
|
||||
| Home +
|
||||
Ctrl + `a` |
|
||||
Ctrl + "a" |
|
||||
sprint zum Anfang der Befehlszeile +
|
||||
`/input move_beginning_of_line`
|
||||
|
||||
| End +
|
||||
Ctrl + `e` |
|
||||
Ctrl + "e" |
|
||||
springt ans Ende der Befehlszeile +
|
||||
`/input move_end_of_line`
|
||||
|
||||
| Ctrl + `c` dann `b` |
|
||||
| Ctrl + "c" dann "b" |
|
||||
Fügt Steuerzeichen für fett geschrieben Text ein +
|
||||
`/input insert \x02`
|
||||
|
||||
| Ctrl + `c` dann `c` |
|
||||
| Ctrl + "c" dann "c" |
|
||||
Fügt Steuerzeichen für Textfarbe ein +
|
||||
`/input insert \x03`
|
||||
|
||||
| Ctrl + `c` dann `i` |
|
||||
| Ctrl + "c" dann "i" |
|
||||
Fügt Steuerzeichen für kursiven Text ein +
|
||||
`/input insert \x1D`
|
||||
|
||||
| Ctrl + `c` dann `o` |
|
||||
| Ctrl + "c" dann "o" |
|
||||
Fügt Steuerzeichen für Standardfarbe ein +
|
||||
`/input insert \x0F`
|
||||
|
||||
| Ctrl + `c` dann `r` |
|
||||
| Ctrl + "c" dann "r" |
|
||||
Fügt Steuerzeichen für Hintergrundfarbe ein +
|
||||
`/input insert \x12`
|
||||
|
||||
| Ctrl + `c` dann `u` |
|
||||
| Ctrl + "c" dann "u" |
|
||||
Fügt Steuerzeichen für unterstrichenen Text ein +
|
||||
`/input insert \x15`
|
||||
|
||||
| Delete +
|
||||
Ctrl + `d` |
|
||||
Ctrl + "d" |
|
||||
entfernt nächstes Zeichen in der Befehlszeile +
|
||||
`/input delete_next_char`
|
||||
|
||||
| Backspace +
|
||||
Ctrl + `h` |
|
||||
Ctrl + "h" |
|
||||
entfernt vorheriges Zeichen in der Befehlszeile +
|
||||
`/input delete_previous_char`
|
||||
|
||||
| Ctrl + `k` |
|
||||
| Ctrl + "k" |
|
||||
entfernt alle Zeichen vom Cursor bis zum Ende der Zeile (Zeichenkette wird in Zwischenablage
|
||||
kopiert) +
|
||||
`/input delete_end_of_line`
|
||||
|
||||
| Ctrl + `r` |
|
||||
| Ctrl + "r" |
|
||||
Sucht in der Protokolldatei nach einem Text (zweimaliges Drücken: sucht nach exaktem Text),
|
||||
mittels Pfeiltaste hoch/runter kann zum nächsten/vorherigen Treffer gesprungen werden +
|
||||
`/input search_text`
|
||||
|
||||
| Ctrl + `t` |
|
||||
| Ctrl + "t" |
|
||||
Zeichen austauschen +
|
||||
`/input transpose_chars`
|
||||
|
||||
| Ctrl + `u` |
|
||||
| Ctrl + "u" |
|
||||
entfernt alle Zeichen vom Cursor bis zum Anfang der Zeile (Zeichenkette wird in Zwischenablage
|
||||
kopiert) +
|
||||
`/input delete_beginning_of_line`
|
||||
|
||||
| Ctrl + `w` |
|
||||
| Ctrl + "w" |
|
||||
entfernt das Wort links vom Cursor (entferntes Wort wird in Zwischenablage kopiert) +
|
||||
`/input delete_previous_word`
|
||||
|
||||
| Ctrl + `y` |
|
||||
| Ctrl + "y" |
|
||||
fügt Zeichenkette aus Zwischenablage ein +
|
||||
`/input clipboard_paste`
|
||||
|
||||
| Ctrl + `_` |
|
||||
| Ctrl + "_" |
|
||||
Rückgängig machen in Befehlszeile +
|
||||
`/input undo`
|
||||
|
||||
| Alt + `_` |
|
||||
| Alt + "_" |
|
||||
Wiederherstellen in der Befehlszeile +
|
||||
`/input redo`
|
||||
|
||||
@@ -555,8 +559,8 @@ Tastenbefehle für die Befehlszeile
|
||||
schreibt das Zeichen in die Befehlszeile
|
||||
|
||||
| Enter +
|
||||
Ctrl + `j` +
|
||||
Ctrl + `m` |
|
||||
Ctrl + "j" +
|
||||
Ctrl + "m" |
|
||||
führt einen Befehl aus oder sendet den Text (im Such-Modus: stoppt Suche) +
|
||||
`/input return`
|
||||
|
||||
@@ -576,16 +580,16 @@ Tastenbefehle für die Befehlszeile
|
||||
ruft nächsten Befehl/Nachricht aus dem globalen Befehlsspeicher auf (für alle Buffer) +
|
||||
`/input history_global_next`
|
||||
|
||||
| Alt + `d` |
|
||||
| Alt + "d" |
|
||||
löscht das Wort rechts vom Cursor (Zeichenkette wird in Zwischenablage kopiert) +
|
||||
`/input delete_next_word`
|
||||
|
||||
| Alt + `k` |
|
||||
| Alt + "k" |
|
||||
zeigt den Tastencode (inklusive des eingebundenen Befehls) einer Tastenkombination an und fügt ihn in
|
||||
die Befehlszeile ein +
|
||||
`/input grab_key_command`
|
||||
|
||||
| Alt + `r` |
|
||||
| Alt + "r" |
|
||||
löscht komplette Eingabezeile +
|
||||
`/input delete_line`
|
||||
|========================================
|
||||
@@ -598,15 +602,15 @@ Tastenbefehle für Buffer / Fenster
|
||||
|========================================
|
||||
| Keys | Description and command
|
||||
|
||||
| Ctrl + `l` |
|
||||
| Ctrl + "l" (L) |
|
||||
zeichnet das Fenster neu +
|
||||
`/window refresh`
|
||||
|
||||
| Ctrl + `s` dann Ctrl + `u` |
|
||||
| Ctrl + "s" dann Ctrl + "u" |
|
||||
Setzt die ungelesen Markierung für alle Buffer +
|
||||
`/input set_unread`
|
||||
|
||||
| Ctrl + `x` |
|
||||
| Ctrl + "x" |
|
||||
sind mehrere Buffer zu einem Buffer zusammen gefügt wechselt man diese durch +
|
||||
`/input switch_active_buffer`
|
||||
|
||||
@@ -636,14 +640,14 @@ Tastenbefehle für Buffer / Fenster
|
||||
|
||||
| Alt + Pfeil links +
|
||||
Alt + Pfeil hoch +
|
||||
Ctrl + `p` +
|
||||
Ctrl + "p" +
|
||||
F5 |
|
||||
zum vorherigen Buffer springen +
|
||||
`/buffer -1`
|
||||
|
||||
| Alt + Pfeil rechts +
|
||||
Alt + Pfeil runter +
|
||||
Ctrl + `n` +
|
||||
Ctrl + "n" +
|
||||
F6 |
|
||||
zum nächsten Buffer springen +
|
||||
`/buffer +1`
|
||||
@@ -680,20 +684,20 @@ Tastenbefehle für Buffer / Fenster
|
||||
springt zum Ende der Nickliste +
|
||||
`/bar scroll nicklist * ye`
|
||||
|
||||
| Alt + `a` |
|
||||
| Alt + "a" |
|
||||
wechselt zum nächsten Buffer mit Aktivität (nach Priorität: highlight, Nachricht,
|
||||
...) +
|
||||
`/input jump_smart`
|
||||
|
||||
| Alt + `j` dann Alt + `l` |
|
||||
| Alt + "j" dann Alt + "l" (L) |
|
||||
wechselt zum letzten Buffer +
|
||||
`/input jump_last_buffer`
|
||||
|
||||
| Alt + `j` dann Alt + `r` |
|
||||
| Alt + "j" dann Alt + "r" |
|
||||
wechselt zum IRC raw Buffer +
|
||||
`/server raw`
|
||||
|
||||
| Alt + `j` dann Alt + `s` |
|
||||
| Alt + "j" dann Alt + "s" |
|
||||
wechselt zum IRC Server Buffer +
|
||||
`/server jump`
|
||||
|
||||
@@ -701,38 +705,38 @@ Tastenbefehle für Buffer / Fenster
|
||||
wechselt zum Buffer mit der Nummer (0 = 10) +
|
||||
`/buffer *N`
|
||||
|
||||
| Alt + `j` dann Ziffern (01-99) |
|
||||
| Alt + "j" dann Ziffern (01-99) |
|
||||
wechselt zum Buffer mit der Nummer +
|
||||
`/buffer NN`
|
||||
|
||||
| Alt + `n` |
|
||||
| Alt + "n" |
|
||||
springe zur nächsten Highlight Nachricht +
|
||||
`/window scroll_next_highlight`
|
||||
|
||||
| Alt + `p` |
|
||||
| Alt + "p" |
|
||||
springe zur vorherigen Highlight Nachricht +
|
||||
`/window scroll_previous_highlight`
|
||||
|
||||
| Alt + `u` |
|
||||
| Alt + "u" |
|
||||
springe zur ersten ungelesenen Zeile im Buffer +
|
||||
`/input scroll_unread`
|
||||
|
||||
| Alt + `w` dann Alt + Pfeiltaste |
|
||||
| Alt + "w" dann Alt + Pfeiltaste |
|
||||
wechselt zum Fenster durch Richtungsanweisung +
|
||||
`/window up` +
|
||||
`/window down` +
|
||||
`/window left` +
|
||||
`/window right`
|
||||
|
||||
| Alt + `z` |
|
||||
| Alt + "z" |
|
||||
Zoom für aktuelles Fenster (nochmals Alt + Z: stellt die vorherigen Einstellungen wieder her) +
|
||||
`/window zoom`
|
||||
|
||||
| Alt + `<` |
|
||||
| Alt + "<" |
|
||||
wechselt zum vorherigen Buffer der letzten aufgerufenen Buffer +
|
||||
`/input jump_previously_visited_buffer`
|
||||
|
||||
| Alt + `>` |
|
||||
| Alt + ">" |
|
||||
wechselt zum nächsten Buffer der letzten aufgerufenen Buffer +
|
||||
`/input jump_next_visited_buffer`
|
||||
|========================================
|
||||
@@ -745,11 +749,11 @@ andere Tastenbefehle
|
||||
|========================================
|
||||
|Tasten| Beschreibung und Befehl
|
||||
|
||||
| Alt + `h` |
|
||||
| Alt + "h" |
|
||||
löscht Hotliste (Aktivitätsanzeige für die Buffer) +
|
||||
`/input hotlist_clear` +
|
||||
|
||||
| Alt + `=` |
|
||||
| Alt + "=" |
|
||||
schaltet Filterfunktion an/aus +
|
||||
`/filter toggle` +
|
||||
|========================================
|
||||
@@ -1544,14 +1548,59 @@ mit lokalen Buffervariablen zu füllen. Um zu sehen welche lokalen Variabel es g
|
||||
/buffer localvar
|
||||
----------------------------------------
|
||||
|
||||
Möchten Sie zum Beispiel ein Verzeichnis für jeden IRC Server in dem eine Datei
|
||||
für jeden Channel erstellt wird nutzen Sie:
|
||||
Zum Beispiel für den Buffer "irc.freenode.#weechat". WeeChat sucht in dieser
|
||||
Reihenfolge nach einer Maske:
|
||||
|
||||
----------------------------------------
|
||||
logger.mask.irc.freenode.#weechat
|
||||
logger.mask.irc.freenode
|
||||
logger.mask.irc
|
||||
logger.file.mask
|
||||
----------------------------------------
|
||||
|
||||
Dies bedeutet dass man eine Maske speziell für einen IRC Server
|
||||
("logger.mask.irc.freenode") anlegen kann oder aber global für
|
||||
die Erweiterung ("logger.mask.irc").
|
||||
|
||||
[[logger_files_by_date]]
|
||||
Protokolldatei nach Datum
|
||||
+++++++++++++++++++++++++
|
||||
|
||||
Um Protokolldateien mit einer Datumsrelevanz zu erstellen müssen
|
||||
Datumsspezifikationen in der Maske genutzt werden (siehe
|
||||
`man strftime` for formats). Zum Beispiel:
|
||||
|
||||
----------------------------------------
|
||||
/set logger.file.mask "%Y/%m/$plugin.$name.weechatlog"
|
||||
----------------------------------------
|
||||
|
||||
Erstellt eine Struktur in folgender Form:
|
||||
|
||||
........................................
|
||||
~/.weechat/
|
||||
|--- logs/
|
||||
|--- 2010/
|
||||
|--- 11/
|
||||
| irc.server.freenode.weechatlog
|
||||
| irc.freenode.#weechat.weechatlog
|
||||
|--- 2010/
|
||||
|--- 12/
|
||||
| irc.server.freenode.weechatlog
|
||||
| irc.freenode.#weechat.weechatlog
|
||||
........................................
|
||||
|
||||
[[logger_irc_files_by_server_channel]]
|
||||
Protokolldateien nach Server und Channel
|
||||
++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
Soll für jeden IRC Server ein Verzeichnis erstellt werden mit jeweils
|
||||
einer Protokolldatei für jeden Channel:
|
||||
|
||||
----------------------------------------
|
||||
/set logger.mask.irc "irc/$server/$channel.weechatlog"
|
||||
----------------------------------------
|
||||
|
||||
In einer Baumstruktur sieht es dann wie folgt aus:
|
||||
Erstellt eine Struktur in folgender Form:
|
||||
|
||||
........................................
|
||||
~/.weechat/
|
||||
@@ -1571,7 +1620,7 @@ In einer Baumstruktur sieht es dann wie folgt aus:
|
||||
Relay Erweiterung
|
||||
~~~~~~~~~~~~~~~~~
|
||||
|
||||
Die Relay-Erweiterung wird genutzt um Daten, mittels unterschiedlichen Protokollen,
|
||||
Die Relay-Erweiterung wird genutzt um Daten, mittels unterschiedlicher Protokolle,
|
||||
über ein Netzwerk zu übermitteln.
|
||||
|
||||
Zur Zeit wird ausschließlich das "IRC" Protokoll unterstützt (IRC Proxy).
|
||||
|
||||
@@ -85,6 +85,7 @@ my @ignore_options = ("aspell\\.dict\\..*",
|
||||
"logger\\.mask\\..*",
|
||||
"relay\\.port\\..*",
|
||||
"rmodifier\\.modifier\\..*",
|
||||
"weechat\\.palette\\..*",
|
||||
"weechat\\.proxy\\..*",
|
||||
"weechat\\.bar\\..*",
|
||||
"weechat\\.debug\\..*",
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# user's guide
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.en.html
|
||||
COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a toc -a toclevels=3 -a date=`date "+%F"` -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.en.txt
|
||||
COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a toc -a toclevels=4 -a date=`date "+%F"` -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.en.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.en.txt
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.en.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.txt
|
||||
|
||||
@@ -48,55 +48,10 @@
|
||||
** type: color
|
||||
** values: a color name (default value: `lightcyan`)
|
||||
|
||||
* *weechat.color.chat_nick_color01*
|
||||
** description: `text color #1 for nick`
|
||||
** type: color
|
||||
** values: a color name (default value: `cyan`)
|
||||
|
||||
* *weechat.color.chat_nick_color02*
|
||||
** description: `text color #2 for nick`
|
||||
** type: color
|
||||
** values: a color name (default value: `magenta`)
|
||||
|
||||
* *weechat.color.chat_nick_color03*
|
||||
** description: `text color #3 for nick`
|
||||
** type: color
|
||||
** values: a color name (default value: `green`)
|
||||
|
||||
* *weechat.color.chat_nick_color04*
|
||||
** description: `text color #4 for nick`
|
||||
** type: color
|
||||
** values: a color name (default value: `brown`)
|
||||
|
||||
* *weechat.color.chat_nick_color05*
|
||||
** description: `text color #5 for nick`
|
||||
** type: color
|
||||
** values: a color name (default value: `lightblue`)
|
||||
|
||||
* *weechat.color.chat_nick_color06*
|
||||
** description: `text color #6 for nick`
|
||||
** type: color
|
||||
** values: a color name (default value: `default`)
|
||||
|
||||
* *weechat.color.chat_nick_color07*
|
||||
** description: `text color #7 for nick`
|
||||
** type: color
|
||||
** values: a color name (default value: `lightcyan`)
|
||||
|
||||
* *weechat.color.chat_nick_color08*
|
||||
** description: `text color #8 for nick`
|
||||
** type: color
|
||||
** values: a color name (default value: `lightmagenta`)
|
||||
|
||||
* *weechat.color.chat_nick_color09*
|
||||
** description: `text color #9 for nick`
|
||||
** type: color
|
||||
** values: a color name (default value: `lightgreen`)
|
||||
|
||||
* *weechat.color.chat_nick_color10*
|
||||
** description: `text color #10 for nick`
|
||||
** type: color
|
||||
** values: a color name (default value: `blue`)
|
||||
* *weechat.color.chat_nick_colors*
|
||||
** description: `text color for nicks (comma separated list of colors)`
|
||||
** type: string
|
||||
** values: any string (default value: `"cyan,magenta,green,brown,lightblue,default,lightcyan,lightmagenta,lightgreen,blue"`)
|
||||
|
||||
* *weechat.color.chat_nick_other*
|
||||
** description: `text color for other nick in private buffer`
|
||||
@@ -353,11 +308,6 @@
|
||||
** type: string
|
||||
** values: any string (default value: `"%H:%M:%S"`)
|
||||
|
||||
* *weechat.look.color_nicks_number*
|
||||
** description: `number of colors to use for nicks colors`
|
||||
** type: integer
|
||||
** values: 1 .. 10 (default value: `10`)
|
||||
|
||||
* *weechat.look.color_real_white*
|
||||
** description: `if set, uses real white color, disabled by default for terms with white background (if you never use white background, you should turn on this option to see real white instead of default term foreground color)`
|
||||
** type: boolean
|
||||
|
||||
@@ -2474,6 +2474,48 @@ item = weechat.list_search(list, data)
|
||||
item = weechat.list_search(list, "my data")
|
||||
----------------------------------------
|
||||
|
||||
weechat_list_search_pos
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
_New in version 0.3.4._
|
||||
|
||||
Search an item position in a list.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
int weechat_list_search_pos (struct t_weelist *weelist,
|
||||
const char *data);
|
||||
----------------------------------------
|
||||
|
||||
Arguments:
|
||||
|
||||
* 'weelist': list pointer
|
||||
* 'data': data to search in list
|
||||
|
||||
Return value:
|
||||
|
||||
* position of item found, -1 if item was not found
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
int pos_item = weechat_list_search_pos (list, "my data");
|
||||
----------------------------------------
|
||||
|
||||
Script (Python):
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# prototype
|
||||
pos_item = weechat.list_search_pos(list, data)
|
||||
|
||||
# example
|
||||
pos_item = weechat.list_search_pos(list, "my data")
|
||||
----------------------------------------
|
||||
|
||||
weechat_list_casesearch
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -2514,6 +2556,48 @@ item = weechat.list_casesearch(list, data)
|
||||
item = weechat.list_casesearch(list, "my data")
|
||||
----------------------------------------
|
||||
|
||||
weechat_list_casesearch_pos
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
_New in version 0.3.4._
|
||||
|
||||
Search an item position in a list, ignoring case.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
int weechat_list_casesearch_pos (struct t_weelist *weelist,
|
||||
const char *data);
|
||||
----------------------------------------
|
||||
|
||||
Arguments:
|
||||
|
||||
* 'weelist': list pointer
|
||||
* 'data': data to search in list
|
||||
|
||||
Return value:
|
||||
|
||||
* position of item found, -1 if item was not found
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
int pos_item = weechat_list_casesearch_pos (list, "my data");
|
||||
----------------------------------------
|
||||
|
||||
Script (Python):
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# prototype
|
||||
pos_item = weechat.list_casesearch_pos(list, data)
|
||||
|
||||
# example
|
||||
pos_item = weechat.list_casesearch_pos(list, "my data")
|
||||
----------------------------------------
|
||||
|
||||
weechat_list_get
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
|
||||
+93
-48
@@ -283,6 +283,9 @@ Command line arguments:
|
||||
-a, --no-connect::
|
||||
Disable auto-connect to servers when WeeChat is starting
|
||||
|
||||
-c, --colors::
|
||||
Display default colors in terminal
|
||||
|
||||
-d, --dir 'path'::
|
||||
Set path as home for WeeChat (used for configuration files, logs, user
|
||||
plugins and scripts), default value is '~/.weechat' (note: directory is
|
||||
@@ -445,101 +448,101 @@ Keys for command line
|
||||
| Keys | Description and command
|
||||
|
||||
| Left arrow +
|
||||
Ctrl + `b` |
|
||||
Ctrl + "b" |
|
||||
Go to previous char in command line +
|
||||
`/input move_previous_char`
|
||||
|
||||
| Right arrow +
|
||||
Ctrl + `f` |
|
||||
Ctrl + "f" |
|
||||
Go to next char in command line +
|
||||
`/input move_next_char`
|
||||
|
||||
| Ctrl + left arrow +
|
||||
Alt + `b` |
|
||||
Alt + "b" |
|
||||
Go to previous word in command line +
|
||||
`/input move_previous_word`
|
||||
|
||||
| Ctrl + right arrow +
|
||||
Alt + `f` |
|
||||
Alt + "f" |
|
||||
Go to next word in command line +
|
||||
`/input move_next_word`
|
||||
|
||||
| Home +
|
||||
Ctrl + `a` |
|
||||
Ctrl + "a" |
|
||||
Go to the beginning of command line +
|
||||
`/input move_beginning_of_line`
|
||||
|
||||
| End +
|
||||
Ctrl + `e` |
|
||||
Ctrl + "e" |
|
||||
Go to the end of command line +
|
||||
`/input move_end_of_line`
|
||||
|
||||
| Ctrl + `c` then `b` |
|
||||
| Ctrl + "c" then "b" |
|
||||
Insert code for bold text +
|
||||
`/input insert \x02`
|
||||
|
||||
| Ctrl + `c` then `c` |
|
||||
| Ctrl + "c" then "c" |
|
||||
Insert code for colored text +
|
||||
`/input insert \x03`
|
||||
|
||||
| Ctrl + `c` then `i` |
|
||||
| Ctrl + "c" then "i" |
|
||||
Insert code for italic text +
|
||||
`/input insert \x1D`
|
||||
|
||||
| Ctrl + `c` then `o` |
|
||||
| Ctrl + "c" then "o" |
|
||||
Insert code for color reset +
|
||||
`/input insert \x0F`
|
||||
|
||||
| Ctrl + `c` then `r` |
|
||||
| Ctrl + "c" then "r" |
|
||||
Insert code for reverse color +
|
||||
`/input insert \x12`
|
||||
|
||||
| Ctrl + `c` then `u` |
|
||||
| Ctrl + "c" then "u" |
|
||||
Insert code for underlined text +
|
||||
`/input insert \x15`
|
||||
|
||||
| Delete +
|
||||
Ctrl + `d` |
|
||||
Ctrl + "d" |
|
||||
Delete next char in command line +
|
||||
`/input delete_next_char`
|
||||
|
||||
| Backspace +
|
||||
Ctrl + `h` |
|
||||
Ctrl + "h" |
|
||||
Delete previous char in command line +
|
||||
`/input delete_previous_char`
|
||||
|
||||
| Ctrl + `k` |
|
||||
| Ctrl + "k" |
|
||||
Delete from cursor until end of command line (deleted string is copied to
|
||||
clipboard) +
|
||||
`/input delete_end_of_line`
|
||||
|
||||
| Ctrl + `r` |
|
||||
| Ctrl + "r" |
|
||||
Search for text in buffer history (two times: search exact text),
|
||||
next/previous occurrences can be found with up and down arrows +
|
||||
`/input search_text`
|
||||
|
||||
| Ctrl + `t` |
|
||||
| Ctrl + "t" |
|
||||
Transpose chars +
|
||||
`/input transpose_chars`
|
||||
|
||||
| Ctrl + `u` |
|
||||
| Ctrl + "u" |
|
||||
Delete from cursor until beginning of command line (deleted string is copied
|
||||
to clipboard) +
|
||||
`/input delete_beginning_of_line`
|
||||
|
||||
| Ctrl + `w` |
|
||||
| Ctrl + "w" |
|
||||
Delete previous word of command line (deleted string is copied to clipboard) +
|
||||
`/input delete_previous_word`
|
||||
|
||||
| Ctrl + `y` |
|
||||
| Ctrl + "y" |
|
||||
Paste clipboard content +
|
||||
`/input clipboard_paste`
|
||||
|
||||
| Ctrl + `_` |
|
||||
| Ctrl + "_" |
|
||||
Undo last action on command line +
|
||||
`/input undo`
|
||||
|
||||
| Alt + `_` |
|
||||
| Alt + "_" |
|
||||
Redo last action on command line +
|
||||
`/input redo`
|
||||
|
||||
@@ -556,8 +559,8 @@ Keys for command line
|
||||
Insert char at cursor position in command line
|
||||
|
||||
| Enter +
|
||||
Ctrl + `j` +
|
||||
Ctrl + `m` |
|
||||
Ctrl + "j" +
|
||||
Ctrl + "m" |
|
||||
Execute command or send message (in search mode: stop search) +
|
||||
`/input return`
|
||||
|
||||
@@ -577,16 +580,16 @@ Keys for command line
|
||||
Call next command/message in global history (common for all buffers) +
|
||||
`/input history_global_next`
|
||||
|
||||
| Alt + `d` |
|
||||
| Alt + "d" |
|
||||
Delete next word in command line (deleted string is copied to clipboard) +
|
||||
`/input delete_next_word`
|
||||
|
||||
| Alt + `k` |
|
||||
| Alt + "k" |
|
||||
Grab a key and insert its code (and command bound if key exists) in command
|
||||
line +
|
||||
`/input grab_key_command`
|
||||
|
||||
| Alt + `r` |
|
||||
| Alt + "r" |
|
||||
Delete entire command line +
|
||||
`/input delete_line`
|
||||
|========================================
|
||||
@@ -599,15 +602,15 @@ Keys for buffers / windows
|
||||
|========================================
|
||||
| Keys | Description and command
|
||||
|
||||
| Ctrl + `l` |
|
||||
| Ctrl + "l" (L) |
|
||||
Redraw whole window +
|
||||
`/window refresh`
|
||||
|
||||
| Ctrl + `s` then Ctrl + `u` |
|
||||
| Ctrl + "s" then Ctrl + "u" |
|
||||
Set unread marker on all buffers +
|
||||
`/input set_unread`
|
||||
|
||||
| Ctrl + `x` |
|
||||
| Ctrl + "x" |
|
||||
Switch current buffer if buffers are attached with same number +
|
||||
`/input switch_active_buffer`
|
||||
|
||||
@@ -637,14 +640,14 @@ Keys for buffers / windows
|
||||
|
||||
| Alt + left arrow +
|
||||
Alt + up arrow +
|
||||
Ctrl + `p` +
|
||||
Ctrl + "p" +
|
||||
F5 |
|
||||
Switch to previous buffer +
|
||||
`/buffer -1`
|
||||
|
||||
| Alt + right arrow +
|
||||
Alt + down arrow +
|
||||
Ctrl + `n` +
|
||||
Ctrl + "n" +
|
||||
F6 |
|
||||
Switch to next buffer +
|
||||
`/buffer +1`
|
||||
@@ -681,20 +684,20 @@ Keys for buffers / windows
|
||||
Go to the end of nicklist +
|
||||
`/bar scroll nicklist * ye`
|
||||
|
||||
| Alt + `a` |
|
||||
| Alt + "a" |
|
||||
Switch to next buffer with activity (with priority: highlight, message,
|
||||
other) +
|
||||
`/input jump_smart`
|
||||
|
||||
| Alt + `j` then Alt + `l` |
|
||||
| Alt + "j" then Alt + "l" (L) |
|
||||
Switch to last buffer +
|
||||
`/input jump_last_buffer`
|
||||
|
||||
| Alt + `j` then Alt + `r` |
|
||||
| Alt + "j" then Alt + "r" |
|
||||
Switch to IRC raw buffer +
|
||||
`/server raw`
|
||||
|
||||
| Alt + `j` then Alt + `s` |
|
||||
| Alt + "j" then Alt + "s" |
|
||||
Switch to IRC server buffer +
|
||||
`/server jump`
|
||||
|
||||
@@ -702,39 +705,39 @@ Keys for buffers / windows
|
||||
Switch to buffer by number (0 = 10) +
|
||||
`/buffer *N`
|
||||
|
||||
| Alt + `j` then number (01-99) |
|
||||
| Alt + "j" then number (01-99) |
|
||||
Switch to buffer by number +
|
||||
`/buffer NN`
|
||||
|
||||
| Alt + `n` |
|
||||
| Alt + "n" |
|
||||
Scroll to next highlight +
|
||||
`/window scroll_next_highlight`
|
||||
|
||||
| Alt + `p` |
|
||||
| Alt + "p" |
|
||||
Scroll to previous highlight +
|
||||
`/window scroll_previous_highlight`
|
||||
|
||||
| Alt + `u` |
|
||||
| Alt + "u" |
|
||||
Scroll to first unread line in buffer +
|
||||
`/input scroll_unread`
|
||||
|
||||
| Alt + `w` then Alt + arrow |
|
||||
| Alt + "w" then Alt + arrow |
|
||||
Switch to window with direction +
|
||||
`/window up` +
|
||||
`/window down` +
|
||||
`/window left` +
|
||||
`/window right`
|
||||
|
||||
| Alt + `z` |
|
||||
| Alt + "z" |
|
||||
Zoom on current window (Alt + Z again: restore initial windows state, before
|
||||
zoom) +
|
||||
`/window zoom`
|
||||
|
||||
| Alt + `<` |
|
||||
| Alt + "<" |
|
||||
Switch to previous buffer in list of visited buffers +
|
||||
`/input jump_previously_visited_buffer`
|
||||
|
||||
| Alt + `>` |
|
||||
| Alt + ">" |
|
||||
Switch to next buffer in list of visited buffers +
|
||||
`/input jump_next_visited_buffer`
|
||||
|========================================
|
||||
@@ -747,11 +750,11 @@ Other keys
|
||||
|========================================
|
||||
| Keys | Description and command
|
||||
|
||||
| Alt + `h` |
|
||||
| Alt + "h" |
|
||||
Clear hotlist (activity notification on other buffers) +
|
||||
`/input hotlist_clear` +
|
||||
|
||||
| Alt + `=` |
|
||||
| Alt + "=" |
|
||||
Toggle filters on/off +
|
||||
`/filter toggle` +
|
||||
|========================================
|
||||
@@ -1529,8 +1532,50 @@ variables to build filename. To see local variables for current buffer:
|
||||
/buffer localvar
|
||||
----------------------------------------
|
||||
|
||||
For example if you want one directory by IRC server and one file by channel
|
||||
inside:
|
||||
For example, on buffer "irc.freenode.#weechat", WeeChat will search a mask with
|
||||
option name, in this order:
|
||||
|
||||
----------------------------------------
|
||||
logger.mask.irc.freenode.#weechat
|
||||
logger.mask.irc.freenode
|
||||
logger.mask.irc
|
||||
logger.file.mask
|
||||
----------------------------------------
|
||||
|
||||
That means you can have masks specific for some IRC servers
|
||||
("logger.mask.irc.freenode") or for a plugin ("logger.mask.irc").
|
||||
|
||||
[[logger_files_by_date]]
|
||||
Log files by date
|
||||
+++++++++++++++++
|
||||
|
||||
To have log files by date, you can use date/time specifiers in mask (see
|
||||
`man strftime` for formats), for example:
|
||||
|
||||
----------------------------------------
|
||||
/set logger.file.mask "%Y/%m/$plugin.$name.weechatlog"
|
||||
----------------------------------------
|
||||
|
||||
You'll have following files:
|
||||
|
||||
........................................
|
||||
~/.weechat/
|
||||
|--- logs/
|
||||
|--- 2010/
|
||||
|--- 11/
|
||||
| irc.server.freenode.weechatlog
|
||||
| irc.freenode.#weechat.weechatlog
|
||||
|--- 2010/
|
||||
|--- 12/
|
||||
| irc.server.freenode.weechatlog
|
||||
| irc.freenode.#weechat.weechatlog
|
||||
........................................
|
||||
|
||||
[[logger_irc_files_by_server_channel]]
|
||||
IRC log files by server and channel
|
||||
+++++++++++++++++++++++++++++++++++
|
||||
|
||||
If you want one directory by IRC server and one file by channel inside:
|
||||
|
||||
----------------------------------------
|
||||
/set logger.mask.irc "irc/$server/$channel.weechatlog"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# user's guide
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.fr.html
|
||||
COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a toc -a toclevels=3 -a toc-title='Table des matières' -a date=`date "+%F"` -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.fr.txt
|
||||
COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a toc -a toclevels=4 -a toc-title='Table des matières' -a date=`date "+%F"` -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.fr.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.fr.txt
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.fr.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.txt
|
||||
|
||||
@@ -48,55 +48,10 @@
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: `lightcyan`)
|
||||
|
||||
* *weechat.color.chat_nick_color01*
|
||||
** description: `couleur du texte n°1 pour le pseudo`
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: `cyan`)
|
||||
|
||||
* *weechat.color.chat_nick_color02*
|
||||
** description: `couleur du texte n°2 pour le pseudo`
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: `magenta`)
|
||||
|
||||
* *weechat.color.chat_nick_color03*
|
||||
** description: `couleur du texte n°3 pour le pseudo`
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: `green`)
|
||||
|
||||
* *weechat.color.chat_nick_color04*
|
||||
** description: `couleur du texte n°4 le pseudo`
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: `brown`)
|
||||
|
||||
* *weechat.color.chat_nick_color05*
|
||||
** description: `couleur du texte n°5 pour le pseudo`
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: `lightblue`)
|
||||
|
||||
* *weechat.color.chat_nick_color06*
|
||||
** description: `couleur du texte n°6 pour le pseudo`
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: `default`)
|
||||
|
||||
* *weechat.color.chat_nick_color07*
|
||||
** description: `couleur du texte n°7 pour le pseudo`
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: `lightcyan`)
|
||||
|
||||
* *weechat.color.chat_nick_color08*
|
||||
** description: `couleur du texte n°8 pour le pseudo`
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: `lightmagenta`)
|
||||
|
||||
* *weechat.color.chat_nick_color09*
|
||||
** description: `couleur du texte n°9 pour le pseudo`
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: `lightgreen`)
|
||||
|
||||
* *weechat.color.chat_nick_color10*
|
||||
** description: `couleur du texte n°10 pour le pseudo`
|
||||
** type: couleur
|
||||
** valeurs: un nom de couleur (valeur par défaut: `blue`)
|
||||
* *weechat.color.chat_nick_colors*
|
||||
** description: `couleur du texte pour les pseudos (liste de couleurs séparées par une virgule)`
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne (valeur par défaut: `"cyan,magenta,green,brown,lightblue,default,lightcyan,lightmagenta,lightgreen,blue"`)
|
||||
|
||||
* *weechat.color.chat_nick_other*
|
||||
** description: `couleur du texte pour l'autre pseudo dans le tampon privée`
|
||||
@@ -353,11 +308,6 @@
|
||||
** type: chaîne
|
||||
** valeurs: toute chaîne (valeur par défaut: `"%H:%M:%S"`)
|
||||
|
||||
* *weechat.look.color_nicks_number*
|
||||
** description: `nombre de couleurs à utiliser pour les couleurs des pseudos`
|
||||
** type: entier
|
||||
** valeurs: 1 .. 10 (valeur par défaut: `10`)
|
||||
|
||||
* *weechat.look.color_real_white*
|
||||
** description: `si activé, utilise la vraie couleur blanche, désactivé par défaut pour les terminaux avec un fond blanc (si vous n'utilisez jamais de fond blanc, vous devriez activer cette option pour voir du vrai blanc au lieu de la couleur d'avant plan par défaut du terminal)`
|
||||
** type: booléen
|
||||
|
||||
@@ -2501,6 +2501,48 @@ item = weechat.list_search(list, data)
|
||||
item = weechat.list_search(list, "ma donnée")
|
||||
----------------------------------------
|
||||
|
||||
weechat_list_search_pos
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
_Nouveau dans la version 0.3.4._
|
||||
|
||||
Recherche la position d'un élément dans une liste.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
int weechat_list_search_pos (struct t_weelist *weelist,
|
||||
const char *data);
|
||||
----------------------------------------
|
||||
|
||||
Paramètres :
|
||||
|
||||
* 'weelist' : pointeur vers la liste
|
||||
* 'data' : donnée à chercher dans la liste
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* position de l'élément trouvé, -1 si aucun élément n'a été trouvé
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
int pos_item = weechat_list_search_pos (list, "ma donnée");
|
||||
----------------------------------------
|
||||
|
||||
Script (Python) :
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# prototype
|
||||
pos_item = weechat.list_search_pos(list, data)
|
||||
|
||||
# exemple
|
||||
pos_item = weechat.list_search_pos(list, "ma donnée")
|
||||
----------------------------------------
|
||||
|
||||
weechat_list_casesearch
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -2541,6 +2583,48 @@ item = weechat.list_casesearch(list, data)
|
||||
item = weechat.list_casesearch(list, "ma donnée")
|
||||
----------------------------------------
|
||||
|
||||
weechat_list_casesearch_pos
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
_Nouveau dans la version 0.3.4._
|
||||
|
||||
Recherche la position d'un élément dans la liste, sans tenir compte de la casse.
|
||||
|
||||
Prototype :
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
int weechat_list_casesearch_pos (struct t_weelist *weelist,
|
||||
const char *data);
|
||||
----------------------------------------
|
||||
|
||||
Paramètres :
|
||||
|
||||
* 'weelist' : pointeur vers la liste
|
||||
* 'data' : données à chercher dans la liste
|
||||
|
||||
Valeur de retour :
|
||||
|
||||
* position l'élément trouvé, -1 si aucun élément n'a été trouvé
|
||||
|
||||
Exemple en C :
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
int pos_item = weechat_list_casesearch_pos (list, "ma donnée");
|
||||
----------------------------------------
|
||||
|
||||
Script (Python) :
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# prototype
|
||||
pos_item = weechat.list_casesearch_pos(list, data)
|
||||
|
||||
# exemple
|
||||
pos_item = weechat.list_casesearch_pos(list, "ma donnée")
|
||||
----------------------------------------
|
||||
|
||||
weechat_list_get
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
|
||||
+94
-48
@@ -289,6 +289,9 @@ Paramètres de ligne de commande :
|
||||
-a, --no-connect::
|
||||
Supprimer la connexion automatique aux serveurs lors du démarrage
|
||||
|
||||
-c, --colors::
|
||||
Afficher les couleurs par défaut du terminal
|
||||
|
||||
-d, --dir 'path'::
|
||||
Définir le répertoire comme étant la base de WeeChat
|
||||
(utilisé pour les fichiers de configuration, logs, extensions
|
||||
@@ -456,103 +459,103 @@ Touches pour la ligne de commande
|
||||
| Touches | Description et commande
|
||||
|
||||
| Flèche gauche +
|
||||
Ctrl + `b` |
|
||||
Ctrl + "b" |
|
||||
Aller au caractère précédent sur la ligne de commande +
|
||||
`/input move_previous_char`
|
||||
|
||||
| Flèche droite +
|
||||
Ctrl + `f` |
|
||||
Ctrl + "f" |
|
||||
Aller au caractère suivant sur la ligne de commande +
|
||||
`/input move_next_char`
|
||||
|
||||
| Ctrl + flèche gauche +
|
||||
Alt + `b` |
|
||||
Alt + "b" |
|
||||
Aller au mot précédent sur la ligne de commande +
|
||||
`/input move_previous_word`
|
||||
|
||||
| Ctrl + flèche droite +
|
||||
Alt + `f` |
|
||||
Alt + "f" |
|
||||
Aller au mot suivant sur la ligne de commande +
|
||||
`/input move_next_word`
|
||||
|
||||
| Home +
|
||||
Ctrl + `a` |
|
||||
Ctrl + "a" |
|
||||
Aller au début de la ligne de commande +
|
||||
`/input move_beginning_of_line`
|
||||
|
||||
| End +
|
||||
Ctrl + `e` |
|
||||
Ctrl + "e" |
|
||||
Aller à la fin de la ligne de commande +
|
||||
`/input move_end_of_line`
|
||||
|
||||
| Ctrl + `c` puis `b` |
|
||||
| Ctrl + "c" puis "b" |
|
||||
Insérer le code pour mettre le texte en gras +
|
||||
`/input insert \x02`
|
||||
|
||||
| Ctrl + `c` puis `c` |
|
||||
| Ctrl + "c" puis "c" |
|
||||
Insérer le code pour écrire en couleur +
|
||||
`/input insert \x03`
|
||||
|
||||
| Ctrl + `c` puis `i` |
|
||||
| Ctrl + "c" puis "i" |
|
||||
Insérer le code pour mettre le texte en italique +
|
||||
`/input insert \x1D`
|
||||
|
||||
| Ctrl + `c` puis `o` |
|
||||
| Ctrl + "c" puis "o" |
|
||||
Insérer le code pour réinitaliser la couleur +
|
||||
`/input insert \x0F`
|
||||
|
||||
| Ctrl + `c` puis `r` |
|
||||
| Ctrl + "c" puis "r" |
|
||||
Insérer le code pour écrire en couleur inversée +
|
||||
`/input insert \x12`
|
||||
|
||||
| Ctrl + `c` puis `u` |
|
||||
| Ctrl + "c" puis "u" |
|
||||
Insérer le code pour écrire en souligné +
|
||||
`/input insert \x15`
|
||||
|
||||
| Delete +
|
||||
Ctrl + `d` |
|
||||
Ctrl + "d" |
|
||||
Effacer le caractère suivant sur la ligne de commande +
|
||||
`/input delete_next_char`
|
||||
|
||||
| Backspace +
|
||||
Ctrl + `h` |
|
||||
Ctrl + "h" |
|
||||
Effacer le caractère précédent sur la ligne de commande +
|
||||
`/input delete_previous_char`
|
||||
|
||||
| Ctrl + `k` |
|
||||
| Ctrl + "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`
|
||||
|
||||
| Ctrl + `r` |
|
||||
| Ctrl + "r" |
|
||||
Chercher du texte dans l'historique du tampon (deux appuis successifs pour
|
||||
rechercher du texte exact), les occurrences suivantes/précédentes peuvent être
|
||||
trouvées avec les flèches haut et bas +
|
||||
`/input search_text`
|
||||
|
||||
| Ctrl + `t` |
|
||||
| Ctrl + "t" |
|
||||
Inverser deux caractères +
|
||||
`/input transpose_chars`
|
||||
|
||||
| Ctrl + `u` |
|
||||
| Ctrl + "u" |
|
||||
Effacer du curseur jusqu'au début de la ligne de commande (la chaîne
|
||||
supprimée est copiée dans le presse-papiers) +
|
||||
`/input delete_beginning_of_line`
|
||||
|
||||
| Ctrl + `w` |
|
||||
| Ctrl + "w" |
|
||||
Effacer le mot précédent sur la ligne de commande (la chaîne supprimée est
|
||||
copiée dans le presse-papiers) +
|
||||
`/input delete_previous_word`
|
||||
|
||||
| Ctrl + `y` |
|
||||
| Ctrl + "y" |
|
||||
Coller le contenu du presse-papiers +
|
||||
`/input clipboard_paste`
|
||||
|
||||
| Ctrl + `_` |
|
||||
| Ctrl + "_" |
|
||||
Défaire la dernière action sur la ligne de commande +
|
||||
`/input undo`
|
||||
|
||||
| Alt + `_` |
|
||||
| Alt + "_" |
|
||||
Refaire la dernière action sur la ligne de commande +
|
||||
`/input redo`
|
||||
|
||||
@@ -570,8 +573,8 @@ Touches pour la ligne de commande
|
||||
Insérer le caractère à la position du curseur sur la ligne de commande
|
||||
|
||||
| Enter +
|
||||
Ctrl + `j` +
|
||||
Ctrl + `m` |
|
||||
Ctrl + "j" +
|
||||
Ctrl + "m" |
|
||||
Exécuter la commande ou envoyer le message (en mode recherche : arrêter la
|
||||
recherche) +
|
||||
`/input return`
|
||||
@@ -594,17 +597,17 @@ Touches pour la ligne de commande
|
||||
tampons) +
|
||||
`/input history_global_next`
|
||||
|
||||
| Alt + `d` |
|
||||
| Alt + "d" |
|
||||
Effacer le mot suivant (la chaîne supprimée est copiée dans le
|
||||
presse-papiers) +
|
||||
`/input delete_next_word`
|
||||
|
||||
| Alt + `k` |
|
||||
| Alt + "k" |
|
||||
Capturer une touche et insérer son code (et la commande associée si la
|
||||
commande existe) sur la ligne de commande +
|
||||
`/input grab_key_command`
|
||||
|
||||
| Alt + `r` |
|
||||
| Alt + "r" |
|
||||
Effacer entièrement la ligne de commande +
|
||||
`/input delete_line`
|
||||
|========================================
|
||||
@@ -617,15 +620,15 @@ Touches pour les tampons / fenêtres
|
||||
|========================================
|
||||
| Touches | Description et commande
|
||||
|
||||
| Ctrl + `l` |
|
||||
| Ctrl + "l" (L) |
|
||||
Réafficher toute la fenêtre +
|
||||
`/window refresh`
|
||||
|
||||
| Ctrl + `s` puis Ctrl + `u` |
|
||||
| Ctrl + "s" puis Ctrl + "u" |
|
||||
Positionner le marqueur de données non lues sur tous les tampons +
|
||||
`/input set_unread`
|
||||
|
||||
| Ctrl + `x` |
|
||||
| Ctrl + "x" |
|
||||
Changer de tampon courant si plusieurs tampons sont attachés avec le même
|
||||
numéro +
|
||||
`/input switch_active_buffer`
|
||||
@@ -656,14 +659,14 @@ Touches pour les tampons / fenêtres
|
||||
|
||||
| Alt + flèche gauche +
|
||||
Alt + flèche haut +
|
||||
Ctrl + `p` +
|
||||
Ctrl + "p" +
|
||||
F5 |
|
||||
Aller au tampon précédent +
|
||||
`/buffer -1`
|
||||
|
||||
| Alt + flèche droite +
|
||||
Alt + flèche bas +
|
||||
Ctrl + `n` +
|
||||
Ctrl + "n" +
|
||||
F6 |
|
||||
Aller au tampon suivant +
|
||||
`/buffer +1`
|
||||
@@ -700,20 +703,20 @@ Touches pour les tampons / fenêtres
|
||||
Aller à la fin de la liste des pseudos +
|
||||
`/bar scroll nicklist * ye`
|
||||
|
||||
| Alt + `a` |
|
||||
| Alt + "a" |
|
||||
Sauter au prochain tampon avec activité (avec priorité : highlight, message,
|
||||
autre) +
|
||||
`/input jump_smart`
|
||||
|
||||
| Alt + `j` puis Alt + `l` |
|
||||
| Alt + "j" puis Alt + "l" (L) |
|
||||
Sauter au dernier tampon +
|
||||
`/input jump_last_buffer`
|
||||
|
||||
| Alt + `j` puis Alt + `r` |
|
||||
| Alt + "j" puis Alt + "r" |
|
||||
Sauter au tampon IRC de données brutes +
|
||||
`/server raw`
|
||||
|
||||
| Alt + `j` puis Alt + `s` |
|
||||
| Alt + "j" puis Alt + "s" |
|
||||
Sauter au tampon IRC du serveur +
|
||||
`/server jump`
|
||||
|
||||
@@ -721,39 +724,39 @@ Touches pour les tampons / fenêtres
|
||||
Sauter au tampon qui porte ce numéro (0 = 10) +
|
||||
`/buffer *N`
|
||||
|
||||
| Alt + `j` puis nombre (01-99) |
|
||||
| Alt + "j" puis nombre (01-99) |
|
||||
Sauter au tampon qui porte ce numéro +
|
||||
`/buffer NN`
|
||||
|
||||
| Alt + `n` |
|
||||
| Alt + "n" |
|
||||
Se positionner sur le highlight suivant +
|
||||
`/window scroll_next_highlight`
|
||||
|
||||
| Alt + `p` |
|
||||
| Alt + "p" |
|
||||
Se positionner sur le highlight précédent +
|
||||
`/window scroll_previous_highlight`
|
||||
|
||||
| Alt + `u` |
|
||||
| Alt + "u" |
|
||||
Se positionner sur la première ligne non lue du tampon +
|
||||
`/input scroll_unread`
|
||||
|
||||
| Alt + `w` puis Alt + flèche |
|
||||
| Alt + "w" puis Alt + flèche |
|
||||
Sauter à une fenêtre avec une direction +
|
||||
`/window up` +
|
||||
`/window down` +
|
||||
`/window left` +
|
||||
`/window right`
|
||||
|
||||
| Alt + `z` |
|
||||
| Alt + "z" |
|
||||
Zoom sur la fenêtre courante (Alt + Z de nouveau : restaurer l'état initial
|
||||
des fenêtres, avant le zoom) +
|
||||
`/window zoom`
|
||||
|
||||
| Alt + `<` |
|
||||
| Alt + "<" |
|
||||
Sauter au tampon précédent dans la liste des tampons visités +
|
||||
`/input jump_previously_visited_buffer`
|
||||
|
||||
| Alt + `>` |
|
||||
| Alt + ">" |
|
||||
Sauter au tampon suivant dans la liste des tampons visités +
|
||||
`/input jump_next_visited_buffer`
|
||||
|========================================
|
||||
@@ -766,11 +769,11 @@ Autres touches
|
||||
|========================================
|
||||
| Touches | Description et commande
|
||||
|
||||
| Alt + `h` |
|
||||
| Alt + "h" |
|
||||
Vider la hotlist (notification d'activité sur les autres tampons) +
|
||||
`/input hotlist_clear`
|
||||
|
||||
| Alt + `=` |
|
||||
| Alt + "=" |
|
||||
Active/désactive les filtres +
|
||||
`/filter toggle`
|
||||
|========================================
|
||||
@@ -1574,8 +1577,51 @@ Pour voir les variables du tampon courant :
|
||||
/buffer localvar
|
||||
----------------------------------------
|
||||
|
||||
Par exemple, si vous voulez un répertoire par serveur IRC et un fichier
|
||||
par canal dedans :
|
||||
Par exemple, sur le tampon "irc.freenode.#weechat", WeeChat cherchera un masque
|
||||
avec le nom de l'option, dans cet ordre :
|
||||
|
||||
----------------------------------------
|
||||
logger.mask.irc.freenode.#weechat
|
||||
logger.mask.irc.freenode
|
||||
logger.mask.irc
|
||||
logger.file.mask
|
||||
----------------------------------------
|
||||
|
||||
Cela signifie que vous pouvez avoir un masque spécifique pour certaines
|
||||
serveurs IRC ("logger.mask.irc.freenode") ou pour une extension
|
||||
("logger.mask.irc").
|
||||
|
||||
[[logger_files_by_date]]
|
||||
Fichiers de log par date
|
||||
++++++++++++++++++++++++
|
||||
|
||||
Pour avoir des fichiers de log par date, vous pouvez utiliser des marqueurs
|
||||
dans le masque (voir `man strftime` pour le format), par exemple :
|
||||
|
||||
----------------------------------------
|
||||
/set logger.file.mask "%Y/%m/$plugin.$name.weechatlog"
|
||||
----------------------------------------
|
||||
|
||||
Vous obtiendrez les fichiers suivants :
|
||||
|
||||
........................................
|
||||
~/.weechat/
|
||||
|--- logs/
|
||||
|--- 2010/
|
||||
|--- 11/
|
||||
| irc.server.freenode.weechatlog
|
||||
| irc.freenode.#weechat.weechatlog
|
||||
|--- 2010/
|
||||
|--- 12/
|
||||
| irc.server.freenode.weechatlog
|
||||
| irc.freenode.#weechat.weechatlog
|
||||
........................................
|
||||
|
||||
[[logger_irc_files_by_server_channel]]
|
||||
Fichiers de log IRC par serveur et canal
|
||||
++++++++++++++++++++++++++++++++++++++++
|
||||
|
||||
Si vous voulez un répertoire par serveur IRC et un fichier par canal dedans :
|
||||
|
||||
----------------------------------------
|
||||
/set logger.mask.irc "irc/$server/$channel.weechatlog"
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# user's guide
|
||||
ADD_CUSTOM_COMMAND(
|
||||
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.it.html
|
||||
COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a toc -a toclevels=3 -a toc-title='Indice' -a date=`date "+%F"` -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.it.txt
|
||||
COMMAND ${ASCIIDOC_EXECUTABLE} ARGS -a toc -a toclevels=4 -a toc-title='Indice' -a date=`date "+%F"` -a revision="${VERSION}" -a stylesheet=${CMAKE_CURRENT_SOURCE_DIR}/../asciidoc.css -n -o ${CMAKE_CURRENT_BINARY_DIR}/weechat_user.it.html ${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.it.txt
|
||||
DEPENDS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/weechat_user.it.txt
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/autogen/user/*.txt
|
||||
|
||||
@@ -50,27 +50,27 @@
|
||||
nick: utente o host da bannare
|
||||
........................................
|
||||
|
||||
• *`/connect`* `[servername [servername ...] | hostname[/port] [-option[=value]] [-nooption] | -all | -open] [-nojoin] [-switch]`::
|
||||
• *`/connect`* `[nome_server [nome_server ...] | nome_host[/porta] [-opzione[=valore]] [-nooption] | -all | -open] [-nojoin] [-switch]`::
|
||||
|
||||
........................................
|
||||
connette ad uno o più server IRC
|
||||
|
||||
servername: internal server name to connect (server must have been created by /server add)
|
||||
hostname: hostname (or IP) of a server (this will create a TEMPORARY server)
|
||||
port: port for server (6667 by default)
|
||||
option: set option for server (for boolean option, value can be omitted)
|
||||
nooption: set boolean option to 'off' (for example: -nossl)
|
||||
-all: connect to all servers defined in configuration
|
||||
-open: connect to all opened servers that are not currently connected
|
||||
-nojoin: do not join any channel (even if autojoin is enabled on server)
|
||||
-switch: switch to next server address
|
||||
nome_server: nome interno del server a cui connettersi (il server deve essere stato creato con /server add)
|
||||
nome_host: nome host (oppure IP) del server
|
||||
porta: porta per il server (6667 è la predefinita)
|
||||
opzione: imposta opzione per il server (per le opzioni bool, il valore può essere omesso)
|
||||
nooption: imposta il valore bool dell'opzione su off (per esempio: -nossl)
|
||||
-all: connette a tutti i server definiti nella configurazione
|
||||
-open: connette a tutti i server aperti ai quali non si è attualmente connessi
|
||||
-nojoin: non entrare in nessun canale (anche se l'ingresso automatico è attivo sul server)
|
||||
-switch: passa al server successivo
|
||||
|
||||
Examples:
|
||||
Esempi:
|
||||
/connect freenode
|
||||
/connect irc.oftc.net/6667
|
||||
/connect irc6.oftc.net/6667 -ipv6
|
||||
/connect irc6.oftc.net/6697 -ipv6 -ssl
|
||||
/connect my.server.org/6697 -ssl -password=test
|
||||
/connect mio.server.org/6697 -ssl -password=test
|
||||
/connect -switch
|
||||
........................................
|
||||
|
||||
@@ -449,15 +449,15 @@
|
||||
dati: dati raw da inviare
|
||||
........................................
|
||||
|
||||
• *`/reconnect`* `[servername [servername ...] | -all] [-nojoin] [-switch]`::
|
||||
• *`/reconnect`* `[nome_server [nome_server ...] | -all [-nojoin] [switch]`::
|
||||
|
||||
........................................
|
||||
riconnette a uno (o più) server
|
||||
|
||||
servername: server name to reconnect
|
||||
-all: reconnect to all servers
|
||||
-nojoin: do not join any channel (even if autojoin is enabled on server)
|
||||
-switch: switch to next server address
|
||||
nome_server: nome del server a cui riconnettersi
|
||||
-all: riconnetti a tutti i server
|
||||
nojoin: non entrare in nessun canale (anche se l'ingresso automatico è abilitato sul server)
|
||||
-switch: passa al server successivo
|
||||
........................................
|
||||
|
||||
• *`/rehash`* `[opzione]`::
|
||||
|
||||
@@ -3,21 +3,21 @@
|
||||
........................................
|
||||
controllo relay
|
||||
|
||||
list: list relay clients (only active relays)
|
||||
listfull: list relay clients (verbose, all relays)
|
||||
listrelay: list relays (name and port)
|
||||
add: add relay for a protocol + name
|
||||
del: remove relay for a protocol + name
|
||||
protocol.name: protocol and name to relay
|
||||
currently, only protocol "irc" is supported
|
||||
for example: irc.freenode
|
||||
port: port used for relay
|
||||
raw: open buffer with raw Relay data
|
||||
list: elenca i client relay (solo quelli attivi)
|
||||
listfull: elenca i client relay (dettagliato, tutti i relay)
|
||||
listrelay: elenca i relay (nome e porta)
|
||||
add: aggiungi relay per un protocollo + nome
|
||||
del: rimuovi relay per un protocollo + nome
|
||||
protocollo.nome: protocollo e nome con cui effettuare il relay
|
||||
al momento, è supportato solo il protocollo "irc"
|
||||
ad esempio: irc.freenode
|
||||
porta: porta utilizzata per il relay
|
||||
raw: apre il buffer con dati Relay
|
||||
|
||||
Without argument, this command opens buffer with list of relay clients.
|
||||
Senza argomento, il comando apre i buffer con l'elenco dei client relay.
|
||||
|
||||
Example:
|
||||
irc proxy, for server "freenode":
|
||||
/relay add irc.freenode 8000
|
||||
Esempio:
|
||||
proxy irc, per il server "freenode":
|
||||
/relay add irc.freenode.net 8000
|
||||
........................................
|
||||
|
||||
|
||||
@@ -48,55 +48,10 @@
|
||||
** tipo: colore
|
||||
** valori: un nome colore (valore predefinito: `lightcyan`)
|
||||
|
||||
* *weechat.color.chat_nick_color01*
|
||||
** descrizione: `colore del testo #1 per il nick`
|
||||
** tipo: colore
|
||||
** valori: un nome colore (valore predefinito: `cyan`)
|
||||
|
||||
* *weechat.color.chat_nick_color02*
|
||||
** descrizione: `colore del testo #2 per il nick`
|
||||
** tipo: colore
|
||||
** valori: un nome colore (valore predefinito: `magenta`)
|
||||
|
||||
* *weechat.color.chat_nick_color03*
|
||||
** descrizione: `colore del testo #3 per il nick`
|
||||
** tipo: colore
|
||||
** valori: un nome colore (valore predefinito: `green`)
|
||||
|
||||
* *weechat.color.chat_nick_color04*
|
||||
** descrizione: `colore del testo #4 per il nick`
|
||||
** tipo: colore
|
||||
** valori: un nome colore (valore predefinito: `brown`)
|
||||
|
||||
* *weechat.color.chat_nick_color05*
|
||||
** descrizione: `colore del testo #5 per il nick`
|
||||
** tipo: colore
|
||||
** valori: un nome colore (valore predefinito: `lightblue`)
|
||||
|
||||
* *weechat.color.chat_nick_color06*
|
||||
** descrizione: `colore del testo #6 per il nick`
|
||||
** tipo: colore
|
||||
** valori: un nome colore (valore predefinito: `default`)
|
||||
|
||||
* *weechat.color.chat_nick_color07*
|
||||
** descrizione: `colore del testo #7 per il nick<`
|
||||
** tipo: colore
|
||||
** valori: un nome colore (valore predefinito: `lightcyan`)
|
||||
|
||||
* *weechat.color.chat_nick_color08*
|
||||
** descrizione: `colore del testo #8 per il nick<`
|
||||
** tipo: colore
|
||||
** valori: un nome colore (valore predefinito: `lightmagenta`)
|
||||
|
||||
* *weechat.color.chat_nick_color09*
|
||||
** descrizione: `colore del testo #9 per il nick<`
|
||||
** tipo: colore
|
||||
** valori: un nome colore (valore predefinito: `lightgreen`)
|
||||
|
||||
* *weechat.color.chat_nick_color10*
|
||||
** descrizione: `colore del testo #10 per il nick<`
|
||||
** tipo: colore
|
||||
** valori: un nome colore (valore predefinito: `blue`)
|
||||
* *weechat.color.chat_nick_colors*
|
||||
** descrizione: `text color for nicks (comma separated list of colors)`
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa (valore predefinito: `"cyan,magenta,green,brown,lightblue,default,lightcyan,lightmagenta,lightgreen,blue"`)
|
||||
|
||||
* *weechat.color.chat_nick_other*
|
||||
** descrizione: `colore del testo per gli altri nick nel buffer privato`
|
||||
@@ -349,15 +304,10 @@
|
||||
** valori: none, highlight, message, all (valore predefinito: `all`)
|
||||
|
||||
* *weechat.look.buffer_time_format*
|
||||
** descrizione: `time format for each line displayed in buffers (see man strftime for date/time specifiers), colors are allowed with format "${color}", for example french time: "${lightblue}%H${white}%M${lightred}%S"`
|
||||
** descrizione: `formato dell'ora per ogni riga visualizzata nei buffer (consultare man strftime per gli specificatori data/ora), i colori sono consentiti nel formato "${colore}", nell'orario italiano ad esempio: "${lightblue}%H${white}%M{lightred}%S"`
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa (valore predefinito: `"%H:%M:%S"`)
|
||||
|
||||
* *weechat.look.color_nicks_number*
|
||||
** descrizione: `numero di colori da utilizzare per i colori dei nick`
|
||||
** tipo: intero
|
||||
** valori: 1 .. 10 (valore predefinito: `10`)
|
||||
|
||||
* *weechat.look.color_real_white*
|
||||
** descrizione: `se impostato, utilizza il colore bianco reale, disabilitato sui terminali con lo sfondo bianco (se non utilizzato, l'opzione dovrebbe essere attivata per visualizzare il bianco reale invece del colore di primo piano predefinito del terminale)`
|
||||
** tipo: bool
|
||||
@@ -389,7 +339,7 @@
|
||||
** valori: qualsiasi stringa (valore predefinito: `""`)
|
||||
|
||||
* *weechat.look.highlight_regex*
|
||||
** descrizione: `regular expression used to check if a message has highlight or not, at least one match in string must be surrounded by word chars (alphanumeric, "-", "_" or "|"), regular expression is case sensitive, example: "FlashCode|flashy"`
|
||||
** descrizione: `l'espressione regolare usata per verificare se un messaggio contiene un evento oppure no, almeno una corrispondenza nella stringa deve essere circondata da caratteri :(alfanumerici, "-", "_" or "|"), l'espressione regolare è esatta, esempio "FlashCode|flashy"`
|
||||
** tipo: stringa
|
||||
** valori: qualsiasi stringa (valore predefinito: `""`)
|
||||
|
||||
|
||||
@@ -2461,6 +2461,49 @@ item = weechat.list_search(list, data)
|
||||
item = weechat.list_search(list, "my data")
|
||||
----------------------------------------
|
||||
|
||||
// TRANSLATION MISSING
|
||||
weechat_list_search_pos
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
_New in version 0.3.4._
|
||||
|
||||
Search an item position in a list.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
int weechat_list_search_pos (struct t_weelist *weelist,
|
||||
const char *data);
|
||||
----------------------------------------
|
||||
|
||||
Arguments:
|
||||
|
||||
* 'weelist': list pointer
|
||||
* 'data': data to search in list
|
||||
|
||||
Return value:
|
||||
|
||||
* position of item found, -1 if item was not found
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
int pos_item = weechat_list_search_pos (list, "my data");
|
||||
----------------------------------------
|
||||
|
||||
Script (Python):
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# prototype
|
||||
pos_item = weechat.list_search_pos(list, data)
|
||||
|
||||
# example
|
||||
pos_item = weechat.list_search_pos(list, "my data")
|
||||
----------------------------------------
|
||||
|
||||
weechat_list_casesearch
|
||||
^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -2502,6 +2545,49 @@ item = weechat.list_casesearch(list, data)
|
||||
item = weechat.list_casesearch(list, "my data")
|
||||
----------------------------------------
|
||||
|
||||
// TRANSLATION MISSING
|
||||
weechat_list_casesearch_pos
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
_New in version 0.3.4._
|
||||
|
||||
Search an item position in a list, ignoring case.
|
||||
|
||||
Prototype:
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
int weechat_list_casesearch_pos (struct t_weelist *weelist,
|
||||
const char *data);
|
||||
----------------------------------------
|
||||
|
||||
Arguments:
|
||||
|
||||
* 'weelist': list pointer
|
||||
* 'data': data to search in list
|
||||
|
||||
Return value:
|
||||
|
||||
* position of item found, -1 if item was not found
|
||||
|
||||
C example:
|
||||
|
||||
[source,C]
|
||||
----------------------------------------
|
||||
int pos_item = weechat_list_casesearch_pos (list, "my data");
|
||||
----------------------------------------
|
||||
|
||||
Script (Python):
|
||||
|
||||
[source,python]
|
||||
----------------------------------------
|
||||
# prototype
|
||||
pos_item = weechat.list_casesearch_pos(list, data)
|
||||
|
||||
# example
|
||||
pos_item = weechat.list_casesearch_pos(list, "my data")
|
||||
----------------------------------------
|
||||
|
||||
weechat_list_get
|
||||
^^^^^^^^^^^^^^^^
|
||||
|
||||
@@ -6217,9 +6303,8 @@ Valore restituito:
|
||||
|
||||
* puntatore al nuovo hook, NULL in caso di errore
|
||||
|
||||
// TRANSLATION MISSING
|
||||
When command has ended, or if timeout is reached, WeeChat will automatically
|
||||
unhook (and kill process if it is still running).
|
||||
Quando il comando ha terminato, o se viene raggiunto il timeout, WeeChat
|
||||
effettua automaticamente l'unhook (e termina il processo se ancora in esecuzione).
|
||||
|
||||
[NOTE]
|
||||
La dimensione del buffer per l'invio dei dati alla callback è di 64KB (ci sono
|
||||
|
||||
+111
-66
@@ -290,6 +290,10 @@ Argomenti a riga di comando:
|
||||
-a, --no-connect::
|
||||
Disabilita la connessione automatica ai server all'avvio di WeeChat
|
||||
|
||||
// TRANSLATION MISSING
|
||||
-c, --colors::
|
||||
Display default colors in terminal
|
||||
|
||||
-d, --dir 'path'::
|
||||
Imposta una cartella come home per WeeChat (utilizzata per i file di
|
||||
configurazione, log, plugin e script dell'utente), il valore predefinito
|
||||
@@ -454,102 +458,102 @@ Tasti per la riga di comando
|
||||
| Tasti | Descrizione e comando
|
||||
|
||||
| Freccia sinistra +
|
||||
Ctrl + `b` |
|
||||
Ctrl + "b" |
|
||||
Passa al carattere precedente nella riga di comando +
|
||||
`/input move_previous_char`
|
||||
|
||||
| Freccia destra +
|
||||
Ctrl + `f` |
|
||||
Ctrl + "f" |
|
||||
Passa al carattere successivo nella riga di comando +
|
||||
`/input move_next_char`
|
||||
|
||||
| Ctrl + freccia sinistra +
|
||||
Alt + `b` |
|
||||
Alt + "b" |
|
||||
Passa alla parola precedente nella riga di comando +
|
||||
`/input move_previous_word`
|
||||
|
||||
| Ctrl + freccia destra +
|
||||
Alt + `f` |
|
||||
Alt + "f" |
|
||||
Passa alla parola successiva nella riga di comando +
|
||||
`/input move_next_word`
|
||||
|
||||
| Home +
|
||||
Ctrl + `a` |
|
||||
Ctrl + "a" |
|
||||
Si sposta all'inizio della riga di comando +
|
||||
`/input move_beginning_of_line`
|
||||
|
||||
| Fine +
|
||||
Ctrl + `e` |
|
||||
Ctrl + "e" |
|
||||
Si sposta alla fine della riga di comando +
|
||||
`/input move_end_of_line`
|
||||
|
||||
| Ctrl + `c` poi `b` |
|
||||
| Ctrl + "c" poi "b" |
|
||||
Inserisce il codice per il testo in grassetto +
|
||||
`/input insert \x02`
|
||||
|
||||
| Ctrl + `c` poi `c` |
|
||||
| Ctrl + "c" poi "c" |
|
||||
Inserisce il codice per il testo colorato +
|
||||
`/input insert \x03`
|
||||
|
||||
| Ctrl + `c` poi `i` |
|
||||
| Ctrl + "c" poi "i" |
|
||||
Inserisce il codice per il testo in corsivo +
|
||||
`/input insert \x1D`
|
||||
|
||||
| Ctrl + `c` poi `o` |
|
||||
| Ctrl + "c" poi "o" |
|
||||
Inserisce il codice per il reset dei colori +
|
||||
`/input insert \x0F`
|
||||
|
||||
| Ctrl + `c` then `r` |
|
||||
| Ctrl + "c" then "r" |
|
||||
Inserisce il codice per l'inversione dei colori +
|
||||
`/input insert \x12`
|
||||
|
||||
| Ctrl + `c` poi `u` |
|
||||
| Ctrl + "c" poi "u" |
|
||||
Inserisce il codice per il testo sottolineato +
|
||||
`/input insert \x15`
|
||||
|
||||
| Canc +
|
||||
Ctrl + `d` |
|
||||
Ctrl + "d" |
|
||||
Elimina il carattere successivo nella riga di comando +
|
||||
`/input delete_next_char`
|
||||
|
||||
| Backspace +
|
||||
Ctrl + `h` |
|
||||
Ctrl + "h" |
|
||||
Elimina il carattere precedente nella riga di comando +
|
||||
`/input delete_previous_char`
|
||||
|
||||
| Ctrl + `k` |
|
||||
| Ctrl + "k" |
|
||||
Elimina dal cursore fino alla fine della riga di comando (la stringa eliminata
|
||||
viene copiata negli appunti) +
|
||||
`/input delete_end_of_line`
|
||||
|
||||
| Ctrl + `r` |
|
||||
| Ctrl + "r" |
|
||||
Cerca il testo nella cronologia del buffer (due volte: cerca testo esatto),
|
||||
ricorrenze successive/precedenti possono essere trovate con le frecce su/giù +
|
||||
`/input search_text`
|
||||
|
||||
| Ctrl + `t` |
|
||||
| Ctrl + "t" |
|
||||
Inverti caratteri +
|
||||
`/input transpose_chars`
|
||||
|
||||
| Ctrl + `u` |
|
||||
| Ctrl + "u" |
|
||||
Elimina dal cursore fino all'inizio della riga di comando (la stringa eliminata
|
||||
viene copiata negli appunti) +
|
||||
`/input delete_beginning_of_line`
|
||||
|
||||
| Ctrl + `w` |
|
||||
| Ctrl + "w" |
|
||||
Elimina la parola precedente nella riga di comando (la stringa eliminata viene
|
||||
copiata negli appunti) +
|
||||
`/input delete_previous_word`
|
||||
|
||||
| Ctrl + `y` |
|
||||
| Ctrl + "y" |
|
||||
Incolla il contenuto degli appunti +
|
||||
`/input clipboard_paste`
|
||||
|
||||
| Ctrl + `_` |
|
||||
| Ctrl + "_" |
|
||||
Annulla l'ultima azione sulla riga di comando +
|
||||
`/input undo`
|
||||
|
||||
| Alt + `_` |
|
||||
| Alt + "_" |
|
||||
Ripete l'ultima azione sulla riga di comando +
|
||||
`/input redo`
|
||||
|
||||
@@ -566,8 +570,8 @@ Tasti per la riga di comando
|
||||
Inserisce carattere alla posizione del cursore nella riga di comando
|
||||
|
||||
| Invio +
|
||||
Ctrl + `j` +
|
||||
Ctrl + `m` |
|
||||
Ctrl + "j" +
|
||||
Ctrl + "m" |
|
||||
Esegue comando o invia messaggio (in modalità ricerca: ferma ricerca) +
|
||||
`/input return`
|
||||
|
||||
@@ -589,17 +593,17 @@ Tasti per la riga di comando
|
||||
per tutti i buffer) +
|
||||
`/input history_global_next`
|
||||
|
||||
| Alt + `d` |
|
||||
| Alt + "d" |
|
||||
Elimina la parola successiva nella riga di comando (la stringa eliminata viene
|
||||
copiata negli appunti) +
|
||||
`/input delete_next_word`
|
||||
|
||||
| Alt + `k` |
|
||||
| Alt + "k" |
|
||||
Cattura un tasto ed inserisce il suo codice (e il comando associato se il tasto
|
||||
esiste) nella riga di comando +
|
||||
`/input grab_key_command`
|
||||
|
||||
| Alt + `r` |
|
||||
| Alt + "r" |
|
||||
Elimina l'intera riga di comando +
|
||||
`/input delete_line`
|
||||
|========================================
|
||||
@@ -612,15 +616,15 @@ Tasti per buffer / finestre
|
||||
|========================================
|
||||
| Tasti | Descrizione e comando
|
||||
|
||||
| Ctrl + `l` |
|
||||
| Ctrl + "l" (L) |
|
||||
Ridisegna l'intera finestra +
|
||||
`/window refresh`
|
||||
|
||||
| Ctrl + `s` poi Ctrl + `u` |
|
||||
| Ctrl + "s" poi Ctrl + "u" |
|
||||
Imposta l'evidenziatore dei messaggi non letti su tutti i buffer +
|
||||
`/input set_unread`
|
||||
|
||||
| Ctrl + `x` |
|
||||
| Ctrl + "x" |
|
||||
Passa al buffer attivo se i buffer sono collegati con lo stesso numero +
|
||||
`/input switch_active_buffer`
|
||||
|
||||
@@ -650,14 +654,14 @@ Tasti per buffer / finestre
|
||||
|
||||
| Alt + freccia sinistra +
|
||||
Alt + freccia su +
|
||||
Ctrl + `p` +
|
||||
Ctrl + "p" +
|
||||
F5 |
|
||||
Passa al buffer precedente +
|
||||
`/buffer -1`
|
||||
|
||||
| Alt + freccia destra +
|
||||
Alt + freccia giù +
|
||||
Ctrl + `n` +
|
||||
Ctrl + "n" +
|
||||
F6 |
|
||||
Passa al buffer successivo +
|
||||
`/buffer +1`
|
||||
@@ -694,20 +698,20 @@ Tasti per buffer / finestre
|
||||
Sposta alla fine della lista nick +
|
||||
`/bar scroll nicklist * ye`
|
||||
|
||||
| Alt + `a` |
|
||||
| Alt + "a" |
|
||||
Passa al buffer successivo con attività (con priorità: evento, messaggio,
|
||||
altro) +
|
||||
`/input jump_smart`
|
||||
|
||||
| Alt + `j` poi Alt + `l` |
|
||||
| Alt + "j" poi Alt + "l" (L) |
|
||||
Passa all'ultimo buffer +
|
||||
`/input jump_last_buffer`
|
||||
|
||||
| Alt + `j` poi Alt + `r` |
|
||||
| Alt + "j" poi Alt + "r" |
|
||||
Passa al buffer raw IRC +
|
||||
`/server raw`
|
||||
|
||||
| Alt + `j` poi Alt + `s` |
|
||||
| Alt + "j" poi Alt + "s" |
|
||||
Passa al buffer server IRC +
|
||||
`/server jump`
|
||||
|
||||
@@ -715,39 +719,39 @@ Tasti per buffer / finestre
|
||||
Passa al buffer numero (0 = 10) +
|
||||
`/buffer *N`
|
||||
|
||||
| Alt + `j` poi numero (01-99) |
|
||||
| Alt + "j" poi numero (01-99) |
|
||||
Passa al buffer numero +
|
||||
`/buffer NN`
|
||||
|
||||
| Alt + `n` |
|
||||
| Alt + "n" |
|
||||
Scorre fino all'evento successivo +
|
||||
`/window scroll_next_highlight`
|
||||
|
||||
| Alt + `p` |
|
||||
| Alt + "p" |
|
||||
Scorre fino all'evento precedente +
|
||||
`/window scroll_previous_highlight`
|
||||
|
||||
| Alt + `u` |
|
||||
| Alt + "u" |
|
||||
Scorre fino alla prima riga non letta nel buffer +
|
||||
`/input scroll_unread`
|
||||
|
||||
| Alt + `w` poi Alt + freccia |
|
||||
| Alt + "w" poi Alt + freccia |
|
||||
Passa alla finestra con direzione +
|
||||
`/window up` (in alto) +
|
||||
`/window down` (in basso) +
|
||||
`/window left` (a sinistra) +
|
||||
`/window right` (a destra)
|
||||
|
||||
| Alt + `z` |
|
||||
| Alt + "z" |
|
||||
Ingrandimento sulla finestra attiva (Alt + Z di nuovo: ripristina lo stato iniziale
|
||||
della finestra, prima dell'ingrandimento) +
|
||||
`/window zoom`
|
||||
|
||||
| Alt + `<` |
|
||||
| Alt + "<" |
|
||||
Passa al buffer precedente nella lista dei buffer visitati +
|
||||
`/input jump_previously_visited_buffer`
|
||||
|
||||
| Alt + `>` |
|
||||
| Alt + ">" |
|
||||
Passa al buffer successivo nella lista dei buffer visitati +
|
||||
`/input jump_next_visited_buffer`
|
||||
|========================================
|
||||
@@ -760,11 +764,11 @@ Altri tasti
|
||||
|========================================
|
||||
| Tasti | Descrizione e comando
|
||||
|
||||
| Alt + `h` |
|
||||
| Alt + "h" |
|
||||
Pulisce hotlist (notifica di attività su altri buffer) +
|
||||
`/input hotlist_clear` +
|
||||
|
||||
| Alt + `=` |
|
||||
| Alt + "=" |
|
||||
Attiva/disattiva filtri +
|
||||
`/filter toggle` +
|
||||
|========================================
|
||||
@@ -949,8 +953,7 @@ I plugin predefiniti sono:
|
||||
| fifo | pipe FIFO utilizzata per inviare comandi da remoto su WeeChat
|
||||
| irc | protocollo chat per IRC
|
||||
| logger | Registra i buffer su file
|
||||
// TRANSLATION MISSING
|
||||
| relay | Relay data via network (IRC proxy)
|
||||
| relay | Relay dei dati via rete (proxy IRC)
|
||||
| rmodifier | Cambia le stringhe del modificatore con espressioni regolari
|
||||
| perl | API per lo scripting in Perl
|
||||
| python | API per lo scripting in Python
|
||||
@@ -1566,8 +1569,51 @@ variabili locali per il buffer corrente:
|
||||
/buffer localvar
|
||||
----------------------------------------
|
||||
|
||||
Per esempio, se si vuole una cartella per server IRC e un file per canale al
|
||||
suo interno:
|
||||
Ad esempio, sul buffer "irc.freenode.#weechat", WeeChat cercherà un mask con il
|
||||
nome dell'opzione, in quest'ordine:
|
||||
|
||||
----------------------------------------
|
||||
logger.mask.irc.freenode.#weechat
|
||||
logger.mask.irc.freenode
|
||||
logger.mask.irc
|
||||
logger.file.mask
|
||||
----------------------------------------
|
||||
|
||||
Ciò vuol dire che si hanno dei mask specifici per alcuni server
|
||||
IRC ("logger.mask.irc.freenode") o per un plugin ("logger.mask.irc").
|
||||
|
||||
[[logger_files_by_date]]
|
||||
File di log per data
|
||||
++++++++++++++++++++
|
||||
|
||||
Per avere file di log per data, è possibile usare specificatori data/ora
|
||||
nei mask (consultare `man stfrtime` per i formati), ad esempio:
|
||||
|
||||
----------------------------------------
|
||||
/set logger.file.mask "%Y/%m/$plugin.$name.weechatlog"
|
||||
----------------------------------------
|
||||
|
||||
Si avranno i seguenti file:
|
||||
|
||||
........................................
|
||||
~/.weechat/
|
||||
|--- logs/
|
||||
|--- 2010/
|
||||
|--- 11/
|
||||
| irc.server.freenode.weechatlog
|
||||
| irc.freenode.#weechat.weechatlog
|
||||
|--- 2010/
|
||||
|--- 12/
|
||||
| irc.server.freenode.weechatlog
|
||||
| irc.freenode.#weechat.weechatlog
|
||||
........................................
|
||||
|
||||
[[logger_irc_files_by_server_channel]]
|
||||
File di log IRC per server e canale
|
||||
+++++++++++++++++++++++++++++++++++
|
||||
|
||||
Se si desidera avere una cartella per il server IRC ed una per il canale
|
||||
al suo interno:
|
||||
|
||||
----------------------------------------
|
||||
/set logger.mask.irc "irc/$server/$channel.weechatlog"
|
||||
@@ -1582,21 +1628,21 @@ Si avranno i seguenti file:
|
||||
|--- freenode/
|
||||
| freenode.weechatlog
|
||||
| #weechat.weechatlog
|
||||
| #miocanale.weechatlog
|
||||
| #mychan.weechatlog
|
||||
|--- oftc/
|
||||
| oftc.weechatlog
|
||||
| #canale1.weechatlog
|
||||
| #canale2.weechatlog
|
||||
| #chan1.weechatlog
|
||||
| #chan2.weechatlog
|
||||
........................................
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[[relay_plugin]]
|
||||
Relay plugin
|
||||
Plugin Relay
|
||||
~~~~~~~~~~~~
|
||||
|
||||
The Relay plugin is used to relay data via network, using different protocols.
|
||||
Il plugin Relay viene utilizzato per inoltrare i dati via rete, facendo uso di
|
||||
protocolli differenti.
|
||||
|
||||
Currently, only "irc" protocol is supported (IRC proxy).
|
||||
Al momento, è supportato solo il protocollo "irc" (proxy IRC).
|
||||
|
||||
[[relay_options]]
|
||||
Opzioni (relay.conf)
|
||||
@@ -1610,25 +1656,24 @@ Comandi
|
||||
|
||||
include::autogen/user/relay_commands.txt[]
|
||||
|
||||
// TRANSLATION MISSING
|
||||
[[relay_irc_proxy]]
|
||||
IRC proxy
|
||||
Proxy IRC
|
||||
^^^^^^^^^
|
||||
|
||||
The Relay plugin can act as an IRC proxy: you can define one port by IRC server
|
||||
and use a password for clients.
|
||||
Il plugin Relay può funzionare come un proxy IRC: è possibile definire una porta
|
||||
per il server IRC ed utilizzare una password per i client.
|
||||
|
||||
For example:
|
||||
Ad esempio:
|
||||
|
||||
----------------------------------------
|
||||
/set relay.network.password "mypass"
|
||||
/set relay.network.password "miapass"
|
||||
/relay add irc.freenode 8000
|
||||
----------------------------------------
|
||||
|
||||
Now you can connect on port 8000 with any IRC client (WeeChat, xchat,
|
||||
irssi, ..), using server password "mypass".
|
||||
Ora è possibile connettersi sulla porta 8000 con qualsiasi client IRC
|
||||
(WeeChat, xchat, irssi, ..) utilizzando la password del server "miapass".
|
||||
|
||||
You can limit number of allowed clients:
|
||||
È possibile inoltre limitare il numero di client consentiti:
|
||||
|
||||
----------------------------------------
|
||||
/set relay.network.max_clients 1
|
||||
|
||||
@@ -23,6 +23,10 @@ It is compliant with IRC RFCs 1459, 2810, 2811, 2812, and 2813.
|
||||
.br
|
||||
disable auto-connect to servers at startup
|
||||
.TP
|
||||
.B \-c, \-\-colors
|
||||
.br
|
||||
display default colors in terminal
|
||||
.TP
|
||||
.B \-d, \-\-dir <dir>
|
||||
.br
|
||||
set WeeChat home dir
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.4-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2010-12-09 22:59+0100\n"
|
||||
"POT-Creation-Date: 2010-12-20 12:52+0100\n"
|
||||
"PO-Revision-Date: 2010-11-06 11:55+0100\n"
|
||||
"Last-Translator: Jiri Golembiovsky <golemj@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -43,8 +43,10 @@ msgstr ""
|
||||
msgid "Usage: %s [option...] [plugin:option...]\n"
|
||||
msgstr "Použití: %s [volba...] [plugin:volba...]\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" -a, --no-connect disable auto-connect to servers at startup\n"
|
||||
" -c, --colors display default colors in terminal\n"
|
||||
" -d, --dir <path> set WeeChat home directory (default: ~/.weechat)\n"
|
||||
" -h, --help this help\n"
|
||||
" -k, --keys display WeeChat default keys\n"
|
||||
@@ -1760,6 +1762,17 @@ msgstr "\t\tZměnil se den na %s"
|
||||
msgid "debug level for plugin (\"core\" for WeeChat core)"
|
||||
msgstr "úroveň ladění pro plugin (\"core\" pro jádro WeeChat)"
|
||||
|
||||
msgid ""
|
||||
"custom color in palette, format is: \"alias;fg,bg;r/g/b\" where alias is "
|
||||
"color name, fg,bg is \"foreground,background\" (example: \"200,-1\"), r/g/b "
|
||||
"is redefinition of color (terminal must support it) (everything is optional "
|
||||
"in this format)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%sError: palette option must be numeric"
|
||||
msgstr "%sChyba: selhalo uložení voleb do %s"
|
||||
|
||||
msgid "Notify level for buffer"
|
||||
msgstr "Úroveň upozornění pro buffer"
|
||||
|
||||
@@ -1801,9 +1814,6 @@ msgstr ""
|
||||
"časová známka použita v logovacích souborech (použijte manuálovou stránku "
|
||||
"strftime pro spcifikátory data/času)"
|
||||
|
||||
msgid "number of colors to use for nicks colors"
|
||||
msgstr "počet barev použitých pro barvy přezdívek"
|
||||
|
||||
msgid ""
|
||||
"if set, uses real white color, disabled by default for terms with white "
|
||||
"background (if you never use white background, you should turn on this "
|
||||
@@ -2092,42 +2102,16 @@ msgstr "barva textu pro jméno kanálu"
|
||||
msgid "text color for nicks in chat window"
|
||||
msgstr "barva textu přezdívky v okně rozhovoru"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for nicks (comma separated list of colors)"
|
||||
msgstr "barva textu přezdívky v okně rozhovoru"
|
||||
|
||||
msgid "text color for local nick in chat window"
|
||||
msgstr "barva textu pro lokální přezdívku v okně rozhovoru"
|
||||
|
||||
msgid "text color for other nick in private buffer"
|
||||
msgstr "barva textu pro jiné přezdívky v soukromém bufferu"
|
||||
|
||||
msgid "text color #1 for nick"
|
||||
msgstr "barva textu 1. přezdívky"
|
||||
|
||||
msgid "text color #2 for nick"
|
||||
msgstr "barva textu 2. přezdívky"
|
||||
|
||||
msgid "text color #3 for nick"
|
||||
msgstr "barva textu 3. přezdívky"
|
||||
|
||||
msgid "text color #4 for nick"
|
||||
msgstr "barva textu 4. přezdívky"
|
||||
|
||||
msgid "text color #5 for nick"
|
||||
msgstr "barva textu 5. přezdívky"
|
||||
|
||||
msgid "text color #6 for nick"
|
||||
msgstr "barva textu 6. přezdívky"
|
||||
|
||||
msgid "text color #7 for nick"
|
||||
msgstr "barva textu 7. přezdívky"
|
||||
|
||||
msgid "text color #8 for nick"
|
||||
msgstr "barva textu 8. přezdívky"
|
||||
|
||||
msgid "text color #9 for nick"
|
||||
msgstr "barva textu 9. přezdívky"
|
||||
|
||||
msgid "text color #10 for nick"
|
||||
msgstr "barva textu 10. přezdívky"
|
||||
|
||||
msgid "text color for hostnames"
|
||||
msgstr "barva textu jména hosta"
|
||||
|
||||
@@ -2527,6 +2511,16 @@ msgstr ""
|
||||
"čtení - špatný podpis (formát aktualizačního souboru se mohl změnit od "
|
||||
"poslední verze)"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr "Informace o terminálu:"
|
||||
|
||||
msgid "No color support in terminal."
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "Default colors:"
|
||||
msgstr "Výchozí klávesové zkratky obnoveny"
|
||||
|
||||
msgid "Terminal lost, exiting WeeChat..."
|
||||
msgstr "Terminál ztracen, ukončuji WeeChat..."
|
||||
|
||||
@@ -2537,9 +2531,6 @@ msgstr "Obdržen signál %s, ukončuji WeeChat.."
|
||||
msgid "Signal SIGHUP received, reloading configuration files"
|
||||
msgstr "Obdržen signál SIGHUP, znovunačítám konfigurační soubory"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr "Informace o terminálu:"
|
||||
|
||||
#, c-format
|
||||
msgid " TERM='%s', size: %dx%d"
|
||||
msgstr " TERM='%s', velikost: %dx%d"
|
||||
@@ -2949,10 +2940,9 @@ msgstr "demo zpráva bez prefixu"
|
||||
msgid "%sdemo message with error prefix"
|
||||
msgstr "%sdemo zpráva s chybovým prefixem"
|
||||
|
||||
#, c-format
|
||||
msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
msgstr ""
|
||||
"barvy: %s buffer %s přezdívka1 %s přezdívka2 %s přezdívka3 %s přezdívka4"
|
||||
#, fuzzy
|
||||
msgid "colors"
|
||||
msgstr "barva"
|
||||
|
||||
msgid "Available infos:"
|
||||
msgstr "Dostupné informace:"
|
||||
@@ -7148,6 +7138,43 @@ msgstr ""
|
||||
msgid "Pointer"
|
||||
msgstr "Ukazatel"
|
||||
|
||||
#~ msgid "number of colors to use for nicks colors"
|
||||
#~ msgstr "počet barev použitých pro barvy přezdívek"
|
||||
|
||||
#~ msgid "text color #1 for nick"
|
||||
#~ msgstr "barva textu 1. přezdívky"
|
||||
|
||||
#~ msgid "text color #2 for nick"
|
||||
#~ msgstr "barva textu 2. přezdívky"
|
||||
|
||||
#~ msgid "text color #3 for nick"
|
||||
#~ msgstr "barva textu 3. přezdívky"
|
||||
|
||||
#~ msgid "text color #4 for nick"
|
||||
#~ msgstr "barva textu 4. přezdívky"
|
||||
|
||||
#~ msgid "text color #5 for nick"
|
||||
#~ msgstr "barva textu 5. přezdívky"
|
||||
|
||||
#~ msgid "text color #6 for nick"
|
||||
#~ msgstr "barva textu 6. přezdívky"
|
||||
|
||||
#~ msgid "text color #7 for nick"
|
||||
#~ msgstr "barva textu 7. přezdívky"
|
||||
|
||||
#~ msgid "text color #8 for nick"
|
||||
#~ msgstr "barva textu 8. přezdívky"
|
||||
|
||||
#~ msgid "text color #9 for nick"
|
||||
#~ msgstr "barva textu 9. přezdívky"
|
||||
|
||||
#~ msgid "text color #10 for nick"
|
||||
#~ msgstr "barva textu 10. přezdívky"
|
||||
|
||||
#~ msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
#~ msgstr ""
|
||||
#~ "barvy: %s buffer %s přezdívka1 %s přezdívka2 %s přezdívka3 %s přezdívka4"
|
||||
|
||||
#~ msgid "[-server server] receiver[,receiver] text"
|
||||
#~ msgstr "[-server server] příjemce[,příjemce] text"
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.3-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2010-12-09 22:59+0100\n"
|
||||
"POT-Creation-Date: 2010-12-20 12:52+0100\n"
|
||||
"PO-Revision-Date: 2010-12-07 23:21+0100\n"
|
||||
"Last-Translator: Nils G.\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -47,8 +47,10 @@ msgstr ""
|
||||
msgid "Usage: %s [option...] [plugin:option...]\n"
|
||||
msgstr "Aufruf: %s [Option...] [Erweiterung:Option...]\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" -a, --no-connect disable auto-connect to servers at startup\n"
|
||||
" -c, --colors display default colors in terminal\n"
|
||||
" -d, --dir <path> set WeeChat home directory (default: ~/.weechat)\n"
|
||||
" -h, --help this help\n"
|
||||
" -k, --keys display WeeChat default keys\n"
|
||||
@@ -1819,6 +1821,17 @@ msgstr "\t\tEin neuer Tag bricht an. Heute ist %s"
|
||||
msgid "debug level for plugin (\"core\" for WeeChat core)"
|
||||
msgstr "Debug-Level für Erweiterung (\"core\" für den WeeChat Core)"
|
||||
|
||||
msgid ""
|
||||
"custom color in palette, format is: \"alias;fg,bg;r/g/b\" where alias is "
|
||||
"color name, fg,bg is \"foreground,background\" (example: \"200,-1\"), r/g/b "
|
||||
"is redefinition of color (terminal must support it) (everything is optional "
|
||||
"in this format)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%sError: palette option must be numeric"
|
||||
msgstr "%sFehler: Optionen konnten nicht unter %s gesichert werden"
|
||||
|
||||
msgid "Notify level for buffer"
|
||||
msgstr "Benachrichtigungsstufe für Buffer"
|
||||
|
||||
@@ -1871,9 +1884,6 @@ msgstr ""
|
||||
"\"${Farbe}\" ist es möglich eine Farbauswahl zu treffen, zum Beispiel eine "
|
||||
"französische Uhr: \"${lightblue}%H${white}%M${lightred}%S\""
|
||||
|
||||
msgid "number of colors to use for nicks colors"
|
||||
msgstr "Anzahl der Farben die für die Nicknamen genutzt werden sollen"
|
||||
|
||||
msgid ""
|
||||
"if set, uses real white color, disabled by default for terms with white "
|
||||
"background (if you never use white background, you should turn on this "
|
||||
@@ -2192,42 +2202,16 @@ msgstr "Farbe der Channel-Namens"
|
||||
msgid "text color for nicks in chat window"
|
||||
msgstr "Farbe für Nicks im Chat-Fenster"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for nicks (comma separated list of colors)"
|
||||
msgstr "Farbe für Nicks im Chat-Fenster"
|
||||
|
||||
msgid "text color for local nick in chat window"
|
||||
msgstr "Textfarbe für den eigenen Nicknamen, im lokalen Chat-Fenster."
|
||||
|
||||
msgid "text color for other nick in private buffer"
|
||||
msgstr "Farbe des anderen Nicknamens in einem privaten Buffer"
|
||||
|
||||
msgid "text color #1 for nick"
|
||||
msgstr "Textfarbe #1 für Nick"
|
||||
|
||||
msgid "text color #2 for nick"
|
||||
msgstr "Textfarbe #2 für Nick"
|
||||
|
||||
msgid "text color #3 for nick"
|
||||
msgstr "Textfarbe #3 für Nick"
|
||||
|
||||
msgid "text color #4 for nick"
|
||||
msgstr "Textfarbe #4 für Nick"
|
||||
|
||||
msgid "text color #5 for nick"
|
||||
msgstr "Textfarbe #5 für Nick"
|
||||
|
||||
msgid "text color #6 for nick"
|
||||
msgstr "Textfarbe #6 für Nick"
|
||||
|
||||
msgid "text color #7 for nick"
|
||||
msgstr "Textfarbe #7 für Nick"
|
||||
|
||||
msgid "text color #8 for nick"
|
||||
msgstr "Textfarbe #8 für Nick"
|
||||
|
||||
msgid "text color #9 for nick"
|
||||
msgstr "Textfarbe #9 für Nick"
|
||||
|
||||
msgid "text color #10 for nick"
|
||||
msgstr "Textfarbe #10 für Nick"
|
||||
|
||||
msgid "text color for hostnames"
|
||||
msgstr "Textfarbe für Host-Namen"
|
||||
|
||||
@@ -2637,6 +2621,16 @@ msgstr ""
|
||||
"lese - falsche Signatur (das Dateiformat wurde vermutlich seit der letzten "
|
||||
"Version verändern)"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr "Terminal Informationen:"
|
||||
|
||||
msgid "No color support in terminal."
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "Default colors:"
|
||||
msgstr "Standard rmodifier:"
|
||||
|
||||
msgid "Terminal lost, exiting WeeChat..."
|
||||
msgstr "Terminal verloren, beende WeeChat..."
|
||||
|
||||
@@ -2647,9 +2641,6 @@ msgstr "Signal %s empfangen, beende WeeChat..."
|
||||
msgid "Signal SIGHUP received, reloading configuration files"
|
||||
msgstr "Signal SIGHUP empfangen, lese Konfigurationsdateien neu"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr "Terminal Informationen:"
|
||||
|
||||
#, c-format
|
||||
msgid " TERM='%s', size: %dx%d"
|
||||
msgstr " TERM='%s', Größe: %dx%d"
|
||||
@@ -3088,9 +3079,9 @@ msgstr "Demo-Nachricht, ohne Präfix"
|
||||
msgid "%sdemo message with error prefix"
|
||||
msgstr "%sDemo-Nachricht mit fehlerhaftem Präfix"
|
||||
|
||||
#, c-format
|
||||
msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
msgstr "Farben: %s Buffer %s Nick1 %s Nick2 %s Nick3 %s Nick4"
|
||||
#, fuzzy
|
||||
msgid "colors"
|
||||
msgstr "Farbe"
|
||||
|
||||
msgid "Available infos:"
|
||||
msgstr "verfügbare Informationen:"
|
||||
@@ -7461,6 +7452,42 @@ msgstr "Hashtable (Ausgabe)"
|
||||
msgid "Pointer"
|
||||
msgstr "Pointer"
|
||||
|
||||
#~ msgid "number of colors to use for nicks colors"
|
||||
#~ msgstr "Anzahl der Farben die für die Nicknamen genutzt werden sollen"
|
||||
|
||||
#~ msgid "text color #1 for nick"
|
||||
#~ msgstr "Textfarbe #1 für Nick"
|
||||
|
||||
#~ msgid "text color #2 for nick"
|
||||
#~ msgstr "Textfarbe #2 für Nick"
|
||||
|
||||
#~ msgid "text color #3 for nick"
|
||||
#~ msgstr "Textfarbe #3 für Nick"
|
||||
|
||||
#~ msgid "text color #4 for nick"
|
||||
#~ msgstr "Textfarbe #4 für Nick"
|
||||
|
||||
#~ msgid "text color #5 for nick"
|
||||
#~ msgstr "Textfarbe #5 für Nick"
|
||||
|
||||
#~ msgid "text color #6 for nick"
|
||||
#~ msgstr "Textfarbe #6 für Nick"
|
||||
|
||||
#~ msgid "text color #7 for nick"
|
||||
#~ msgstr "Textfarbe #7 für Nick"
|
||||
|
||||
#~ msgid "text color #8 for nick"
|
||||
#~ msgstr "Textfarbe #8 für Nick"
|
||||
|
||||
#~ msgid "text color #9 for nick"
|
||||
#~ msgstr "Textfarbe #9 für Nick"
|
||||
|
||||
#~ msgid "text color #10 for nick"
|
||||
#~ msgstr "Textfarbe #10 für Nick"
|
||||
|
||||
#~ msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
#~ msgstr "Farben: %s Buffer %s Nick1 %s Nick2 %s Nick3 %s Nick4"
|
||||
|
||||
#~ msgid ""
|
||||
#~ " server: send to this server (internal name)\n"
|
||||
#~ "nickname: user to send notice to\n"
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.4-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2010-12-09 22:59+0100\n"
|
||||
"POT-Creation-Date: 2010-12-20 12:52+0100\n"
|
||||
"PO-Revision-Date: 2010-11-06 11:56+0100\n"
|
||||
"Last-Translator: Elián Hanisch <lambdae2@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -44,8 +44,10 @@ msgstr ""
|
||||
msgid "Usage: %s [option...] [plugin:option...]\n"
|
||||
msgstr "Uso: %s [opción...] [plugin:opción...]\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" -a, --no-connect disable auto-connect to servers at startup\n"
|
||||
" -c, --colors display default colors in terminal\n"
|
||||
" -d, --dir <path> set WeeChat home directory (default: ~/.weechat)\n"
|
||||
" -h, --help this help\n"
|
||||
" -k, --keys display WeeChat default keys\n"
|
||||
@@ -1773,6 +1775,17 @@ msgstr "\t\tNuevo día, %s"
|
||||
msgid "debug level for plugin (\"core\" for WeeChat core)"
|
||||
msgstr "nivel de depurado para el plugin (\"core\" para el núcleo de WeeChat)"
|
||||
|
||||
msgid ""
|
||||
"custom color in palette, format is: \"alias;fg,bg;r/g/b\" where alias is "
|
||||
"color name, fg,bg is \"foreground,background\" (example: \"200,-1\"), r/g/b "
|
||||
"is redefinition of color (terminal must support it) (everything is optional "
|
||||
"in this format)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%sError: palette option must be numeric"
|
||||
msgstr "%sError: no se pudo guardar las opciones en %s"
|
||||
|
||||
msgid "Notify level for buffer"
|
||||
msgstr "Nivel de notificación para el buffer"
|
||||
|
||||
@@ -1816,9 +1829,6 @@ msgstr ""
|
||||
"formato de hora en el registro (ver el manual de strftime para los "
|
||||
"especificadores de fecha/hora)"
|
||||
|
||||
msgid "number of colors to use for nicks colors"
|
||||
msgstr "número de colores para usar en los colores de nombres de usuario"
|
||||
|
||||
msgid ""
|
||||
"if set, uses real white color, disabled by default for terms with white "
|
||||
"background (if you never use white background, you should turn on this "
|
||||
@@ -2116,42 +2126,16 @@ msgstr "color para los nombres de los canales"
|
||||
msgid "text color for nicks in chat window"
|
||||
msgstr "color para los apodos en la ventana de conversación"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for nicks (comma separated list of colors)"
|
||||
msgstr "color para los apodos en la ventana de conversación"
|
||||
|
||||
msgid "text color for local nick in chat window"
|
||||
msgstr "color para el apodo propio en la ventana de conversación"
|
||||
|
||||
msgid "text color for other nick in private buffer"
|
||||
msgstr "color para el otro apodo en una conversación privada"
|
||||
|
||||
msgid "text color #1 for nick"
|
||||
msgstr "color para el apodo #1"
|
||||
|
||||
msgid "text color #2 for nick"
|
||||
msgstr "color para el apodo #2"
|
||||
|
||||
msgid "text color #3 for nick"
|
||||
msgstr "color para el apodo #3"
|
||||
|
||||
msgid "text color #4 for nick"
|
||||
msgstr "color para el apodo #4"
|
||||
|
||||
msgid "text color #5 for nick"
|
||||
msgstr "color para el apodo #5"
|
||||
|
||||
msgid "text color #6 for nick"
|
||||
msgstr "color para el apodo #6"
|
||||
|
||||
msgid "text color #7 for nick"
|
||||
msgstr "color para el apodo #7"
|
||||
|
||||
msgid "text color #8 for nick"
|
||||
msgstr "color para el apodo #8"
|
||||
|
||||
msgid "text color #9 for nick"
|
||||
msgstr "color para el apodo #9"
|
||||
|
||||
msgid "text color #10 for nick"
|
||||
msgstr "color para el apodo #10"
|
||||
|
||||
msgid "text color for hostnames"
|
||||
msgstr "color para los hostnames"
|
||||
|
||||
@@ -2560,6 +2544,16 @@ msgstr ""
|
||||
"lectura - firma incorrecta (el formato del archivo de actualización puede "
|
||||
"haber cambiado desde la última versión)"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr "Información de la terminal:"
|
||||
|
||||
msgid "No color support in terminal."
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "Default colors:"
|
||||
msgstr "Atajos predefinidos restaurados"
|
||||
|
||||
msgid "Terminal lost, exiting WeeChat..."
|
||||
msgstr "Se perdió la terminal, cerrando WeeChat..."
|
||||
|
||||
@@ -2570,9 +2564,6 @@ msgstr "Señal %s recibida, cerrando WeeChat..."
|
||||
msgid "Signal SIGHUP received, reloading configuration files"
|
||||
msgstr "Señal SIGHUP recibida, recargando archivos de configuración"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr "Información de la terminal:"
|
||||
|
||||
#, c-format
|
||||
msgid " TERM='%s', size: %dx%d"
|
||||
msgstr " TERM='%s', tamaño: %dx%d"
|
||||
@@ -2993,9 +2984,9 @@ msgstr "mensaje de demostración sin un prefijo"
|
||||
msgid "%sdemo message with error prefix"
|
||||
msgstr "%smensaje de demostración con prefijo de error"
|
||||
|
||||
#, c-format
|
||||
msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
msgstr "colores: %s buffer %s apodo1 %s apodo2 %s apodo3 %s apodo4"
|
||||
#, fuzzy
|
||||
msgid "colors"
|
||||
msgstr "color"
|
||||
|
||||
msgid "Available infos:"
|
||||
msgstr "Infos disponibles:"
|
||||
@@ -7237,6 +7228,42 @@ msgstr ""
|
||||
msgid "Pointer"
|
||||
msgstr "Puntero"
|
||||
|
||||
#~ msgid "number of colors to use for nicks colors"
|
||||
#~ msgstr "número de colores para usar en los colores de nombres de usuario"
|
||||
|
||||
#~ msgid "text color #1 for nick"
|
||||
#~ msgstr "color para el apodo #1"
|
||||
|
||||
#~ msgid "text color #2 for nick"
|
||||
#~ msgstr "color para el apodo #2"
|
||||
|
||||
#~ msgid "text color #3 for nick"
|
||||
#~ msgstr "color para el apodo #3"
|
||||
|
||||
#~ msgid "text color #4 for nick"
|
||||
#~ msgstr "color para el apodo #4"
|
||||
|
||||
#~ msgid "text color #5 for nick"
|
||||
#~ msgstr "color para el apodo #5"
|
||||
|
||||
#~ msgid "text color #6 for nick"
|
||||
#~ msgstr "color para el apodo #6"
|
||||
|
||||
#~ msgid "text color #7 for nick"
|
||||
#~ msgstr "color para el apodo #7"
|
||||
|
||||
#~ msgid "text color #8 for nick"
|
||||
#~ msgstr "color para el apodo #8"
|
||||
|
||||
#~ msgid "text color #9 for nick"
|
||||
#~ msgstr "color para el apodo #9"
|
||||
|
||||
#~ msgid "text color #10 for nick"
|
||||
#~ msgstr "color para el apodo #10"
|
||||
|
||||
#~ msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
#~ msgstr "colores: %s buffer %s apodo1 %s apodo2 %s apodo3 %s apodo4"
|
||||
|
||||
#~ msgid "[-server server] receiver[,receiver] text"
|
||||
#~ msgstr "[-server servidor] destino[,destino] texto"
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.4-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2010-12-09 22:59+0100\n"
|
||||
"PO-Revision-Date: 2010-12-09 20:22+0100\n"
|
||||
"POT-Creation-Date: 2010-12-20 12:52+0100\n"
|
||||
"PO-Revision-Date: 2010-12-20 12:15+0100\n"
|
||||
"Last-Translator: Sebastien Helleu <flashcode@flashtux.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: French\n"
|
||||
@@ -46,6 +46,7 @@ msgstr "Utilisation: %s [option...] [extension:option...]\n"
|
||||
|
||||
msgid ""
|
||||
" -a, --no-connect disable auto-connect to servers at startup\n"
|
||||
" -c, --colors display default colors in terminal\n"
|
||||
" -d, --dir <path> set WeeChat home directory (default: ~/.weechat)\n"
|
||||
" -h, --help this help\n"
|
||||
" -k, --keys display WeeChat default keys\n"
|
||||
@@ -62,6 +63,7 @@ msgid ""
|
||||
" about possible options)\n"
|
||||
msgstr ""
|
||||
" -a, --no-connect désactiver l'auto-connexion aux serveurs au démarrage\n"
|
||||
" -c, --colors afficher les couleurs par défaut du terminal\n"
|
||||
" -d, --dir <rep> définir le répertoire de base pour WeeChat (défaut: ~/."
|
||||
"weechat)\n"
|
||||
" -h, --help cette aide\n"
|
||||
@@ -1789,6 +1791,21 @@ msgstr "\t\tJour changé: %s"
|
||||
msgid "debug level for plugin (\"core\" for WeeChat core)"
|
||||
msgstr "niveau de debug pour l'extension (\"core\" pour le coeur de WeeChat)"
|
||||
|
||||
msgid ""
|
||||
"custom color in palette, format is: \"alias;fg,bg;r/g/b\" where alias is "
|
||||
"color name, fg,bg is \"foreground,background\" (example: \"200,-1\"), r/g/b "
|
||||
"is redefinition of color (terminal must support it) (everything is optional "
|
||||
"in this format)"
|
||||
msgstr ""
|
||||
"couleur personnalisée dans la palette, le format est: \"alias;fg,bg;r/g/b\" "
|
||||
"où alias est le nom de la couleur, fg,bg est \"texte,fond\" (par exemple: "
|
||||
"\"200,-1\"), r/g/b est la redéfinition de la couleur (le terminal doit le "
|
||||
"supporter) (tout est optionnel dans ce format)"
|
||||
|
||||
#, c-format
|
||||
msgid "%sError: palette option must be numeric"
|
||||
msgstr "%sErreur: l'option de palette doit être numérique"
|
||||
|
||||
msgid "Notify level for buffer"
|
||||
msgstr "Niveau de notification pour le tampon"
|
||||
|
||||
@@ -1836,9 +1853,6 @@ msgstr ""
|
||||
"format \"${couleur}\", par exemple l'heure française: \"${lightblue}%H"
|
||||
"${white}%M${lightred}%S\""
|
||||
|
||||
msgid "number of colors to use for nicks colors"
|
||||
msgstr "nombre de couleurs à utiliser pour les couleurs des pseudos"
|
||||
|
||||
msgid ""
|
||||
"if set, uses real white color, disabled by default for terms with white "
|
||||
"background (if you never use white background, you should turn on this "
|
||||
@@ -2144,42 +2158,17 @@ msgstr "couleur du texte pour le nom des canaux"
|
||||
msgid "text color for nicks in chat window"
|
||||
msgstr "couleur du texte pour l'heure dans la fenêtre de discussion"
|
||||
|
||||
msgid "text color for nicks (comma separated list of colors)"
|
||||
msgstr ""
|
||||
"couleur du texte pour les pseudos (liste de couleurs séparées par une "
|
||||
"virgule)"
|
||||
|
||||
msgid "text color for local nick in chat window"
|
||||
msgstr "couleur du texte pour le pseudo local dans la fenêtre de discussion"
|
||||
|
||||
msgid "text color for other nick in private buffer"
|
||||
msgstr "couleur du texte pour l'autre pseudo dans le tampon privée"
|
||||
|
||||
msgid "text color #1 for nick"
|
||||
msgstr "couleur du texte n°1 pour le pseudo"
|
||||
|
||||
msgid "text color #2 for nick"
|
||||
msgstr "couleur du texte n°2 pour le pseudo"
|
||||
|
||||
msgid "text color #3 for nick"
|
||||
msgstr "couleur du texte n°3 pour le pseudo"
|
||||
|
||||
msgid "text color #4 for nick"
|
||||
msgstr "couleur du texte n°4 le pseudo"
|
||||
|
||||
msgid "text color #5 for nick"
|
||||
msgstr "couleur du texte n°5 pour le pseudo"
|
||||
|
||||
msgid "text color #6 for nick"
|
||||
msgstr "couleur du texte n°6 pour le pseudo"
|
||||
|
||||
msgid "text color #7 for nick"
|
||||
msgstr "couleur du texte n°7 pour le pseudo"
|
||||
|
||||
msgid "text color #8 for nick"
|
||||
msgstr "couleur du texte n°8 pour le pseudo"
|
||||
|
||||
msgid "text color #9 for nick"
|
||||
msgstr "couleur du texte n°9 pour le pseudo"
|
||||
|
||||
msgid "text color #10 for nick"
|
||||
msgstr "couleur du texte n°10 pour le pseudo"
|
||||
|
||||
msgid "text color for hostnames"
|
||||
msgstr "couleur du texte pour les noms d'hôtes"
|
||||
|
||||
@@ -2598,6 +2587,15 @@ msgstr ""
|
||||
"lecture - mauvaise signature (le format de fichier upgrade a peut-être "
|
||||
"changé depuis la dernière version)"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr "Infos sur le terminal:"
|
||||
|
||||
msgid "No color support in terminal."
|
||||
msgstr "Pas de support pour la couleur dans le terminal."
|
||||
|
||||
msgid "Default colors:"
|
||||
msgstr "Couleurs par défaut:"
|
||||
|
||||
msgid "Terminal lost, exiting WeeChat..."
|
||||
msgstr "Terminal perdu, sortie de WeeChat..."
|
||||
|
||||
@@ -2608,9 +2606,6 @@ msgstr "Signal %s reçu, sortie de WeeChat..."
|
||||
msgid "Signal SIGHUP received, reloading configuration files"
|
||||
msgstr "Signal SIGHUP reçu, rechargement des fichiers de configuration"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr "Infos sur le terminal:"
|
||||
|
||||
#, c-format
|
||||
msgid " TERM='%s', size: %dx%d"
|
||||
msgstr " TERM='%s', taille: %dx%d"
|
||||
@@ -3041,9 +3036,8 @@ msgstr "message de démonstration sans préfixe"
|
||||
msgid "%sdemo message with error prefix"
|
||||
msgstr "%smessage de démonstration avec préfixe d'erreur"
|
||||
|
||||
#, c-format
|
||||
msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
msgstr "couleurs: %s tampon %s pseudo1 %s pseudo2 %s pseudo3 %s pseudo4"
|
||||
msgid "colors"
|
||||
msgstr "couleurs"
|
||||
|
||||
msgid "Available infos:"
|
||||
msgstr "Infos disponibles:"
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.4-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2010-12-09 22:59+0100\n"
|
||||
"POT-Creation-Date: 2010-12-20 12:52+0100\n"
|
||||
"PO-Revision-Date: 2010-11-05 17:17+0100\n"
|
||||
"Last-Translator: Andras Voroskoi <voroskoi@frugalware.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -46,6 +46,7 @@ msgstr ""
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" -a, --no-connect disable auto-connect to servers at startup\n"
|
||||
" -c, --colors display default colors in terminal\n"
|
||||
" -d, --dir <path> set WeeChat home directory (default: ~/.weechat)\n"
|
||||
" -h, --help this help\n"
|
||||
" -k, --keys display WeeChat default keys\n"
|
||||
@@ -1584,6 +1585,17 @@ msgstr "A mai dátum: %s\n"
|
||||
msgid "debug level for plugin (\"core\" for WeeChat core)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"custom color in palette, format is: \"alias;fg,bg;r/g/b\" where alias is "
|
||||
"color name, fg,bg is \"foreground,background\" (example: \"200,-1\"), r/g/b "
|
||||
"is redefinition of color (terminal must support it) (everything is optional "
|
||||
"in this format)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%sError: palette option must be numeric"
|
||||
msgstr "%s nem sikerült a modul opciókat elmenteni\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Notify level for buffer"
|
||||
msgstr "szobanév nem található a pufferhez"
|
||||
@@ -1619,9 +1631,6 @@ msgid ""
|
||||
"french time: \"${lightblue}%H${white}%M${lightred}%S\""
|
||||
msgstr "új nap kezdetével megjelenő időbélyeg"
|
||||
|
||||
msgid "number of colors to use for nicks colors"
|
||||
msgstr "nevek színezéséhez használt színek száma"
|
||||
|
||||
msgid ""
|
||||
"if set, uses real white color, disabled by default for terms with white "
|
||||
"background (if you never use white background, you should turn on this "
|
||||
@@ -1898,6 +1907,10 @@ msgstr "szobanevek színe az eseményekben"
|
||||
msgid "text color for nicks in chat window"
|
||||
msgstr "idő színe a beszédablakban"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for nicks (comma separated list of colors)"
|
||||
msgstr "idő színe a beszédablakban"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for local nick in chat window"
|
||||
msgstr "a név előtt megjelenítendő szöveg a beszédablakban"
|
||||
@@ -1906,46 +1919,6 @@ msgstr "a név előtt megjelenítendő szöveg a beszédablakban"
|
||||
msgid "text color for other nick in private buffer"
|
||||
msgstr "másik fél nevének színe privát beszélgetésben"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #1 for nick"
|
||||
msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #2 for nick"
|
||||
msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #3 for nick"
|
||||
msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #4 for nick"
|
||||
msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #5 for nick"
|
||||
msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #6 for nick"
|
||||
msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #7 for nick"
|
||||
msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #8 for nick"
|
||||
msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #9 for nick"
|
||||
msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #10 for nick"
|
||||
msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for hostnames"
|
||||
msgstr "gépnevek színe"
|
||||
@@ -2364,6 +2337,16 @@ msgid ""
|
||||
"version)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr ""
|
||||
|
||||
msgid "No color support in terminal."
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "Default colors:"
|
||||
msgstr "Alapértelmezett billentyűparancsok visszaállítva\n"
|
||||
|
||||
msgid "Terminal lost, exiting WeeChat..."
|
||||
msgstr ""
|
||||
|
||||
@@ -2375,9 +2358,6 @@ msgstr ""
|
||||
msgid "Signal SIGHUP received, reloading configuration files"
|
||||
msgstr "%s nem sikerült a konfigurációs fájlt elmenteni\n"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid " TERM='%s', size: %dx%d"
|
||||
msgstr ""
|
||||
@@ -2760,9 +2740,9 @@ msgstr ""
|
||||
msgid "%sdemo message with error prefix"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
msgstr ""
|
||||
#, fuzzy
|
||||
msgid "colors"
|
||||
msgstr "üzenetek színe"
|
||||
|
||||
msgid "Available infos:"
|
||||
msgstr ""
|
||||
@@ -6869,6 +6849,49 @@ msgstr ""
|
||||
msgid "Pointer"
|
||||
msgstr "perc"
|
||||
|
||||
#~ msgid "number of colors to use for nicks colors"
|
||||
#~ msgstr "nevek színezéséhez használt színek száma"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #1 for nick"
|
||||
#~ msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #2 for nick"
|
||||
#~ msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #3 for nick"
|
||||
#~ msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #4 for nick"
|
||||
#~ msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #5 for nick"
|
||||
#~ msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #6 for nick"
|
||||
#~ msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #7 for nick"
|
||||
#~ msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #8 for nick"
|
||||
#~ msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #9 for nick"
|
||||
#~ msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #10 for nick"
|
||||
#~ msgstr "név színe"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "[-server server] receiver[,receiver] text"
|
||||
#~ msgstr "fogadó [,fogadó] szöveg"
|
||||
|
||||
@@ -20,8 +20,8 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.4-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2010-12-09 22:59+0100\n"
|
||||
"PO-Revision-Date: 2010-12-04 11:57+0100\n"
|
||||
"POT-Creation-Date: 2010-12-20 12:52+0100\n"
|
||||
"PO-Revision-Date: 2010-12-10 14:11+0100\n"
|
||||
"Last-Translator: Marco Paolone <marcopaolone@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
"Language: Italian\n"
|
||||
@@ -43,8 +43,10 @@ msgstr ""
|
||||
msgid "Usage: %s [option...] [plugin:option...]\n"
|
||||
msgstr "Utilizzo: %s [opzione...] [plugin:opzione...]\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" -a, --no-connect disable auto-connect to servers at startup\n"
|
||||
" -c, --colors display default colors in terminal\n"
|
||||
" -d, --dir <path> set WeeChat home directory (default: ~/.weechat)\n"
|
||||
" -h, --help this help\n"
|
||||
" -k, --keys display WeeChat default keys\n"
|
||||
@@ -1780,6 +1782,17 @@ msgstr "\t\tOggi è %s"
|
||||
msgid "debug level for plugin (\"core\" for WeeChat core)"
|
||||
msgstr "livello di debug per il plugin (\"core\" per il core di WeeChat)"
|
||||
|
||||
msgid ""
|
||||
"custom color in palette, format is: \"alias;fg,bg;r/g/b\" where alias is "
|
||||
"color name, fg,bg is \"foreground,background\" (example: \"200,-1\"), r/g/b "
|
||||
"is redefinition of color (terminal must support it) (everything is optional "
|
||||
"in this format)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%sError: palette option must be numeric"
|
||||
msgstr "%sErrore: impossibile salvare le opzioni in %s"
|
||||
|
||||
msgid "Notify level for buffer"
|
||||
msgstr "Livello di notifica per il buffer"
|
||||
|
||||
@@ -1816,17 +1829,15 @@ msgstr ""
|
||||
"message=messaggi+eventi, highlight=solo eventi, none=non viene mai "
|
||||
"visualizzato nella hotlist"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"time format for each line displayed in buffers (see man strftime for date/"
|
||||
"time specifiers), colors are allowed with format \"${color}\", for example "
|
||||
"french time: \"${lightblue}%H${white}%M${lightred}%S\""
|
||||
msgstr ""
|
||||
"formato dell'ora per ogni riga visualizzata nei buffer (consultare man "
|
||||
"strftime per gli specificatori data/ora)"
|
||||
|
||||
msgid "number of colors to use for nicks colors"
|
||||
msgstr "numero di colori da utilizzare per i colori dei nick"
|
||||
"strftime per gli specificatori data/ora), i colori sono consentiti nel "
|
||||
"formato \"${colore}\", nell'orario italiano ad esempio: \"${lightblue}%H"
|
||||
"${white}%M{lightred}%S\""
|
||||
|
||||
msgid ""
|
||||
"if set, uses real white color, disabled by default for terms with white "
|
||||
@@ -1868,7 +1879,6 @@ msgstr ""
|
||||
"le parole potrebbero cominciare o terminare con \"*\" per un riscontro "
|
||||
"parziale)"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"regular expression used to check if a message has highlight or not, at least "
|
||||
"one match in string must be surrounded by word chars (alphanumeric, \"-\", "
|
||||
@@ -2131,42 +2141,16 @@ msgstr "colore del testo per i nomi dei canali"
|
||||
msgid "text color for nicks in chat window"
|
||||
msgstr "colore del testo per i nick nella finestra di chat"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for nicks (comma separated list of colors)"
|
||||
msgstr "colore del testo per i nick nella finestra di chat"
|
||||
|
||||
msgid "text color for local nick in chat window"
|
||||
msgstr "colore del testo per il nick locale nella finestra di chat"
|
||||
|
||||
msgid "text color for other nick in private buffer"
|
||||
msgstr "colore del testo per gli altri nick nel buffer privato"
|
||||
|
||||
msgid "text color #1 for nick"
|
||||
msgstr "colore del testo #1 per il nick"
|
||||
|
||||
msgid "text color #2 for nick"
|
||||
msgstr "colore del testo #2 per il nick"
|
||||
|
||||
msgid "text color #3 for nick"
|
||||
msgstr "colore del testo #3 per il nick"
|
||||
|
||||
msgid "text color #4 for nick"
|
||||
msgstr "colore del testo #4 per il nick"
|
||||
|
||||
msgid "text color #5 for nick"
|
||||
msgstr "colore del testo #5 per il nick"
|
||||
|
||||
msgid "text color #6 for nick"
|
||||
msgstr "colore del testo #6 per il nick"
|
||||
|
||||
msgid "text color #7 for nick"
|
||||
msgstr "colore del testo #7 per il nick<"
|
||||
|
||||
msgid "text color #8 for nick"
|
||||
msgstr "colore del testo #8 per il nick<"
|
||||
|
||||
msgid "text color #9 for nick"
|
||||
msgstr "colore del testo #9 per il nick<"
|
||||
|
||||
msgid "text color #10 for nick"
|
||||
msgstr "colore del testo #10 per il nick<"
|
||||
|
||||
msgid "text color for hostnames"
|
||||
msgstr "colore del testo per i nomi host"
|
||||
|
||||
@@ -2574,6 +2558,16 @@ msgstr ""
|
||||
"lettura - firma errata (l'aggiornamento del formato del file potrebbe essere "
|
||||
"cambiato dall'ultima versione)"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr "Informazioni sul terminale:"
|
||||
|
||||
msgid "No color support in terminal."
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "Default colors:"
|
||||
msgstr "Rmodifier predefiniti:"
|
||||
|
||||
msgid "Terminal lost, exiting WeeChat..."
|
||||
msgstr "Terminale perduto, chiusura di WeeChat..."
|
||||
|
||||
@@ -2584,9 +2578,6 @@ msgstr "Ricevuto segnale %s, chiusura di WeeChat..."
|
||||
msgid "Signal SIGHUP received, reloading configuration files"
|
||||
msgstr "Ricevuto segnale SIGHUP, caricamento dei file di configurazione"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr "Informazioni sul terminale:"
|
||||
|
||||
#, c-format
|
||||
msgid " TERM='%s', size: %dx%d"
|
||||
msgstr " TERM='%s', dimensione %dx%d"
|
||||
@@ -3011,9 +3002,9 @@ msgstr "messaggio dimostrativo senza prefisso"
|
||||
msgid "%sdemo message with error prefix"
|
||||
msgstr "%smessaggio dimostrativo con il prefisso di errore"
|
||||
|
||||
#, c-format
|
||||
msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
msgstr "colori: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
#, fuzzy
|
||||
msgid "colors"
|
||||
msgstr "colore"
|
||||
|
||||
msgid "Available infos:"
|
||||
msgstr "Informazioni disponibili:"
|
||||
@@ -3516,15 +3507,13 @@ msgstr ""
|
||||
msgid "connect to IRC server(s)"
|
||||
msgstr "connette ad uno o più server IRC"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"[servername [servername ...] | hostname[/port] [-option[=value]] [-nooption] "
|
||||
"| -all | -open] [-nojoin] [-switch]"
|
||||
msgstr ""
|
||||
"[-all [-nojoin] | -open [-nojoin] | nome_server [nome_server ...] [-nojoin] "
|
||||
"| nome_host[/porta] [-opzione[=valore]] [-nooption]"
|
||||
"[nome_server [nome_server ...] | nome_host[/porta] [-opzione[=valore]] [-"
|
||||
"nooption] | -all | -open] [-nojoin] [-switch]"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"servername: internal server name to connect (server must have been created "
|
||||
"by /server add)\n"
|
||||
@@ -3547,26 +3536,28 @@ msgid ""
|
||||
" /connect my.server.org/6697 -ssl -password=test\n"
|
||||
" /connect -switch"
|
||||
msgstr ""
|
||||
" -all: connette a tutti i server definiti nella configurazione\n"
|
||||
" -open: connette a tutti i server aperti ai quali non si è attualmente "
|
||||
"connessi\n"
|
||||
"nome_server: nome interno del server a cui connettersi (il server deve "
|
||||
"essere stato creato con /server add)\n"
|
||||
" -nojoin: non entrare in nessun canale (anche se l'ingresso automatico è "
|
||||
"attivo sul server)\n"
|
||||
" nome_host: nome host (oppure IP) del server\n"
|
||||
" porta: porta per il server (6667 è la predefinita)\n"
|
||||
" opzione: imposta opzione per il server (per le opzioni bool, il valore "
|
||||
"può essere omesso)\n"
|
||||
" nooption: imposta il valore bool dell'opzione su off (per esempio: -"
|
||||
"nossl)\n"
|
||||
" -all: connette a tutti i server definiti nella configurazione\n"
|
||||
" -open: connette a tutti i server aperti ai quali non si è attualmente "
|
||||
"connessi\n"
|
||||
" -nojoin: non entrare in nessun canale (anche se l'ingresso automatico è "
|
||||
"attivo sul server)\n"
|
||||
" -switch: passa al server successivo\n"
|
||||
"\n"
|
||||
"Esempi:\n"
|
||||
" /connect freenode\n"
|
||||
" /connect irc.oftc.net/6667\n"
|
||||
" /connect irc6.oftc.net/6667 -ipv6\n"
|
||||
" /connect irc6.oftc.net/6697 -ipv6 -ssl\n"
|
||||
" /connect mio.server.org/6697 -ssl -password=test"
|
||||
" /connect mio.server.org/6697 -ssl -password=test\n"
|
||||
" /connect -switch"
|
||||
|
||||
msgid "send a CTCP message (Client-To-Client Protocol)"
|
||||
msgstr "invia un messaggio CTCP (Protocollo Client-A-Client)"
|
||||
@@ -4113,21 +4104,20 @@ msgstr ""
|
||||
msgid "reconnect to server(s)"
|
||||
msgstr "riconnette a uno (o più) server"
|
||||
|
||||
#, fuzzy
|
||||
msgid "[servername [servername ...] | -all] [-nojoin] [-switch]"
|
||||
msgstr "[-all [-nojoin] | nome_server [nome_server ...] [-nojoin]]"
|
||||
msgstr "[nome_server [nome_server ...] | -all [-nojoin] [switch]"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
"servername: server name to reconnect\n"
|
||||
" -all: reconnect to all servers\n"
|
||||
" -nojoin: do not join any channel (even if autojoin is enabled on server)\n"
|
||||
" -switch: switch to next server address"
|
||||
msgstr ""
|
||||
" -all: riconnetti a tutti i server\n"
|
||||
"nome_server: nome del server a cui riconnettersi\n"
|
||||
" -all: riconnetti a tutti i server\n"
|
||||
" nojoin: non entrare in nessun canale (anche se l'ingresso automatico è "
|
||||
"abilitato sul server)"
|
||||
"abilitato sul server)\n"
|
||||
" -switch: passa al server successivo"
|
||||
|
||||
msgid "tell the server to reload its config file"
|
||||
msgstr "chiede al server di ricaricare il proprio file di configurazione"
|
||||
@@ -6417,7 +6407,6 @@ msgid "[list | listfull | add protocol.name port | del protocol.name | raw]"
|
||||
msgstr ""
|
||||
"[list | listfull | add protocollo.nome porta | del protocollo.nome | raw]"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" list: list relay clients (only active relays)\n"
|
||||
" listfull: list relay clients (verbose, all relays)\n"
|
||||
@@ -6436,17 +6425,22 @@ msgid ""
|
||||
" irc proxy, for server \"freenode\":\n"
|
||||
" /relay add irc.freenode 8000"
|
||||
msgstr ""
|
||||
" list: elenca i client relay (solo quelli attivi)\n"
|
||||
" listfull: elenca i client relay (dettagliato, tutti i relay)\n"
|
||||
" listrelay: elenca i relay (nome e porta)\n"
|
||||
" add: aggiungi relay per un protocollo + nome\n"
|
||||
" del: rimuovi relay per un protocollo + nome\n"
|
||||
" list: elenca i client relay (solo quelli attivi)\n"
|
||||
" listfull: elenca i client relay (dettagliato, tutti i relay)\n"
|
||||
" listrelay: elenca i relay (nome e porta)\n"
|
||||
" add: aggiungi relay per un protocollo + nome\n"
|
||||
" del: rimuovi relay per un protocollo + nome\n"
|
||||
"protocollo.nome: protocollo e nome con cui effettuare il relay\n"
|
||||
" per esempio: irc.freenode\n"
|
||||
" porta: porta utilizzata per il relay\n"
|
||||
"\t raw: apre il buffer con dati Relay\n"
|
||||
" al momento, è supportato solo il protocollo \"irc\"\n"
|
||||
" ad esempio: irc.freenode\n"
|
||||
" porta: porta utilizzata per il relay\n"
|
||||
" raw: apre il buffer con dati Relay\n"
|
||||
"\n"
|
||||
"Senza argomento, il comando apre i buffer con l'elenco dei client relay."
|
||||
"Senza argomento, il comando apre i buffer con l'elenco dei client relay.\n"
|
||||
"\n"
|
||||
"Esempio:\n"
|
||||
" proxy irc, per il server \"freenode\":\n"
|
||||
" /relay add irc.freenode.net 8000"
|
||||
|
||||
msgid "all possible protocol.name for relay plugin"
|
||||
msgstr "protocollo.nome possibile per il plugin relay"
|
||||
@@ -7287,6 +7281,42 @@ msgstr "Tabella hash (output)"
|
||||
msgid "Pointer"
|
||||
msgstr "Puntatore"
|
||||
|
||||
#~ msgid "number of colors to use for nicks colors"
|
||||
#~ msgstr "numero di colori da utilizzare per i colori dei nick"
|
||||
|
||||
#~ msgid "text color #1 for nick"
|
||||
#~ msgstr "colore del testo #1 per il nick"
|
||||
|
||||
#~ msgid "text color #2 for nick"
|
||||
#~ msgstr "colore del testo #2 per il nick"
|
||||
|
||||
#~ msgid "text color #3 for nick"
|
||||
#~ msgstr "colore del testo #3 per il nick"
|
||||
|
||||
#~ msgid "text color #4 for nick"
|
||||
#~ msgstr "colore del testo #4 per il nick"
|
||||
|
||||
#~ msgid "text color #5 for nick"
|
||||
#~ msgstr "colore del testo #5 per il nick"
|
||||
|
||||
#~ msgid "text color #6 for nick"
|
||||
#~ msgstr "colore del testo #6 per il nick"
|
||||
|
||||
#~ msgid "text color #7 for nick"
|
||||
#~ msgstr "colore del testo #7 per il nick<"
|
||||
|
||||
#~ msgid "text color #8 for nick"
|
||||
#~ msgstr "colore del testo #8 per il nick<"
|
||||
|
||||
#~ msgid "text color #9 for nick"
|
||||
#~ msgstr "colore del testo #9 per il nick<"
|
||||
|
||||
#~ msgid "text color #10 for nick"
|
||||
#~ msgstr "colore del testo #10 per il nick<"
|
||||
|
||||
#~ msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
#~ msgstr "colori: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
|
||||
#~ msgid ""
|
||||
#~ " server: send to this server (internal name)\n"
|
||||
#~ "nickname: user to send notice to\n"
|
||||
@@ -7314,10 +7344,10 @@ msgstr "Puntatore"
|
||||
#~ "nick"
|
||||
|
||||
#~ msgid "path for writing incoming files"
|
||||
#~ msgstr "percorso per il salvataggio dei file locali"
|
||||
#~ msgstr "percorso per il salvataggio dei file in arrivo"
|
||||
|
||||
#~ msgid ""
|
||||
#~ "path for reading files when sending (when no path is specified by user)"
|
||||
#~ msgstr ""
|
||||
#~ "percorso per la lettura dei file all'invio (se non specificato "
|
||||
#~ "percorso per la lettura dei file in fase di invio (se non specificato "
|
||||
#~ "dall'utente)"
|
||||
|
||||
@@ -21,7 +21,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.4-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2010-12-09 22:59+0100\n"
|
||||
"POT-Creation-Date: 2010-12-20 12:52+0100\n"
|
||||
"PO-Revision-Date: 2010-11-06 11:56+0100\n"
|
||||
"Last-Translator: Krzysztof Koroscik <soltys@szluug.org>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -45,8 +45,10 @@ msgstr ""
|
||||
msgid "Usage: %s [option...] [plugin:option...]\n"
|
||||
msgstr "Użycie: %s [argumenty...] [wtyczka:opcje...]\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" -a, --no-connect disable auto-connect to servers at startup\n"
|
||||
" -c, --colors display default colors in terminal\n"
|
||||
" -d, --dir <path> set WeeChat home directory (default: ~/.weechat)\n"
|
||||
" -h, --help this help\n"
|
||||
" -k, --keys display WeeChat default keys\n"
|
||||
@@ -1781,6 +1783,17 @@ msgstr "\t\tDzień zmienił się na %s"
|
||||
msgid "debug level for plugin (\"core\" for WeeChat core)"
|
||||
msgstr "poziom debugowania dla wtyczki (\"core\" dla rdzenia WeeChat)"
|
||||
|
||||
msgid ""
|
||||
"custom color in palette, format is: \"alias;fg,bg;r/g/b\" where alias is "
|
||||
"color name, fg,bg is \"foreground,background\" (example: \"200,-1\"), r/g/b "
|
||||
"is redefinition of color (terminal must support it) (everything is optional "
|
||||
"in this format)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%sError: palette option must be numeric"
|
||||
msgstr "%sBłąd: nie udało się zapisać ustawień do %s"
|
||||
|
||||
msgid "Notify level for buffer"
|
||||
msgstr "Poziom powiadomień dla buforu"
|
||||
|
||||
@@ -1825,9 +1838,6 @@ msgstr ""
|
||||
"format czasu użyty w plikach z logami (zobacz man strftime dla "
|
||||
"specyfikatorów daty/czasu)"
|
||||
|
||||
msgid "number of colors to use for nicks colors"
|
||||
msgstr "liczba kolorów do użycia dla kolorowania nicków"
|
||||
|
||||
msgid ""
|
||||
"if set, uses real white color, disabled by default for terms with white "
|
||||
"background (if you never use white background, you should turn on this "
|
||||
@@ -2121,42 +2131,16 @@ msgstr "kolor nazw kanałów"
|
||||
msgid "text color for nicks in chat window"
|
||||
msgstr "kolor nicków w oknie rozmowy"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for nicks (comma separated list of colors)"
|
||||
msgstr "kolor nicków w oknie rozmowy"
|
||||
|
||||
msgid "text color for local nick in chat window"
|
||||
msgstr "kolor lokalnego nicka w oknie rozmowy"
|
||||
|
||||
msgid "text color for other nick in private buffer"
|
||||
msgstr "kolor innego nicka w prywatnym buforze"
|
||||
|
||||
msgid "text color #1 for nick"
|
||||
msgstr "kolor #1 nicka"
|
||||
|
||||
msgid "text color #2 for nick"
|
||||
msgstr "kolor #2 nicka"
|
||||
|
||||
msgid "text color #3 for nick"
|
||||
msgstr "kolor #3 nicka"
|
||||
|
||||
msgid "text color #4 for nick"
|
||||
msgstr "kolor #4 nicka"
|
||||
|
||||
msgid "text color #5 for nick"
|
||||
msgstr "kolor #5 nicka"
|
||||
|
||||
msgid "text color #6 for nick"
|
||||
msgstr "kolor #6 nicka"
|
||||
|
||||
msgid "text color #7 for nick"
|
||||
msgstr "kolor #7 nicka"
|
||||
|
||||
msgid "text color #8 for nick"
|
||||
msgstr "kolor #8 nicka"
|
||||
|
||||
msgid "text color #9 for nick"
|
||||
msgstr "kolor #9 nicka"
|
||||
|
||||
msgid "text color #10 for nick"
|
||||
msgstr "kolor #10 nicka"
|
||||
|
||||
msgid "text color for hostnames"
|
||||
msgstr "kolor nazw hostów"
|
||||
|
||||
@@ -2556,6 +2540,16 @@ msgid ""
|
||||
msgstr ""
|
||||
"odczyt - zła sygnatura (format pliku mógł ulec zmianie od poprzedniej wersji)"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr "Informacje terminala:"
|
||||
|
||||
msgid "No color support in terminal."
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "Default colors:"
|
||||
msgstr "Przywrócono domyślne przypisania klawiszy"
|
||||
|
||||
msgid "Terminal lost, exiting WeeChat..."
|
||||
msgstr "Utracono terminal, wychodzę z WeeChat..."
|
||||
|
||||
@@ -2566,9 +2560,6 @@ msgstr "Otrzymano sygnał %s, wychodzę z WeeChat..."
|
||||
msgid "Signal SIGHUP received, reloading configuration files"
|
||||
msgstr "Otrzymano sygnał SIGHUP, przeładowuję pliki konfiguracyjne"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr "Informacje terminala:"
|
||||
|
||||
#, c-format
|
||||
msgid " TERM='%s', size: %dx%d"
|
||||
msgstr " TERM='%s', rozmiar: %dx%d"
|
||||
@@ -2984,9 +2975,9 @@ msgstr "testowa wiadomość bez przedrostka"
|
||||
msgid "%sdemo message with error prefix"
|
||||
msgstr "%stestowa wiadomość z przedrostkiem"
|
||||
|
||||
#, c-format
|
||||
msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
msgstr "kolory: %s bufor %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
#, fuzzy
|
||||
msgid "colors"
|
||||
msgstr "kolor"
|
||||
|
||||
msgid "Available infos:"
|
||||
msgstr "Dostępne informacje:"
|
||||
@@ -7167,6 +7158,42 @@ msgstr ""
|
||||
msgid "Pointer"
|
||||
msgstr "Wskaźnik"
|
||||
|
||||
#~ msgid "number of colors to use for nicks colors"
|
||||
#~ msgstr "liczba kolorów do użycia dla kolorowania nicków"
|
||||
|
||||
#~ msgid "text color #1 for nick"
|
||||
#~ msgstr "kolor #1 nicka"
|
||||
|
||||
#~ msgid "text color #2 for nick"
|
||||
#~ msgstr "kolor #2 nicka"
|
||||
|
||||
#~ msgid "text color #3 for nick"
|
||||
#~ msgstr "kolor #3 nicka"
|
||||
|
||||
#~ msgid "text color #4 for nick"
|
||||
#~ msgstr "kolor #4 nicka"
|
||||
|
||||
#~ msgid "text color #5 for nick"
|
||||
#~ msgstr "kolor #5 nicka"
|
||||
|
||||
#~ msgid "text color #6 for nick"
|
||||
#~ msgstr "kolor #6 nicka"
|
||||
|
||||
#~ msgid "text color #7 for nick"
|
||||
#~ msgstr "kolor #7 nicka"
|
||||
|
||||
#~ msgid "text color #8 for nick"
|
||||
#~ msgstr "kolor #8 nicka"
|
||||
|
||||
#~ msgid "text color #9 for nick"
|
||||
#~ msgstr "kolor #9 nicka"
|
||||
|
||||
#~ msgid "text color #10 for nick"
|
||||
#~ msgstr "kolor #10 nicka"
|
||||
|
||||
#~ msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
#~ msgstr "kolory: %s bufor %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
|
||||
#~ msgid "[-server server] receiver[,receiver] text"
|
||||
#~ msgstr "[-server serwer] odbiorca[,odbiorca] tekst"
|
||||
|
||||
|
||||
+30
-40
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.4-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2010-12-09 22:59+0100\n"
|
||||
"POT-Creation-Date: 2010-12-20 12:52+0100\n"
|
||||
"PO-Revision-Date: 2010-11-13 09:26+0100\n"
|
||||
"Last-Translator: Ivan Sichmann Freitas <ivansichfreitas@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -43,8 +43,10 @@ msgstr ""
|
||||
msgid "Usage: %s [option...] [plugin:option...]\n"
|
||||
msgstr "Uso: %s [opção...] [plugin:opção...]\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" -a, --no-connect disable auto-connect to servers at startup\n"
|
||||
" -c, --colors display default colors in terminal\n"
|
||||
" -d, --dir <path> set WeeChat home directory (default: ~/.weechat)\n"
|
||||
" -h, --help this help\n"
|
||||
" -k, --keys display WeeChat default keys\n"
|
||||
@@ -1414,6 +1416,17 @@ msgstr ""
|
||||
msgid "debug level for plugin (\"core\" for WeeChat core)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"custom color in palette, format is: \"alias;fg,bg;r/g/b\" where alias is "
|
||||
"color name, fg,bg is \"foreground,background\" (example: \"200,-1\"), r/g/b "
|
||||
"is redefinition of color (terminal must support it) (everything is optional "
|
||||
"in this format)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%sError: palette option must be numeric"
|
||||
msgstr "%sErro: falhou ao salvar as opções para %s"
|
||||
|
||||
msgid "Notify level for buffer"
|
||||
msgstr ""
|
||||
|
||||
@@ -1447,9 +1460,6 @@ msgid ""
|
||||
"french time: \"${lightblue}%H${white}%M${lightred}%S\""
|
||||
msgstr ""
|
||||
|
||||
msgid "number of colors to use for nicks colors"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"if set, uses real white color, disabled by default for terms with white "
|
||||
"background (if you never use white background, you should turn on this "
|
||||
@@ -1686,42 +1696,15 @@ msgstr ""
|
||||
msgid "text color for nicks in chat window"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for nicks (comma separated list of colors)"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for local nick in chat window"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for other nick in private buffer"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #1 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #2 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #3 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #4 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #5 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #6 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #7 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #8 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #9 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #10 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for hostnames"
|
||||
msgstr ""
|
||||
|
||||
@@ -2083,6 +2066,16 @@ msgid ""
|
||||
"version)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr ""
|
||||
|
||||
msgid "No color support in terminal."
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "Default colors:"
|
||||
msgstr "comando padrão:"
|
||||
|
||||
msgid "Terminal lost, exiting WeeChat..."
|
||||
msgstr ""
|
||||
|
||||
@@ -2093,9 +2086,6 @@ msgstr ""
|
||||
msgid "Signal SIGHUP received, reloading configuration files"
|
||||
msgstr ""
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid " TERM='%s', size: %dx%d"
|
||||
msgstr ""
|
||||
@@ -2448,9 +2438,9 @@ msgstr ""
|
||||
msgid "%sdemo message with error prefix"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
msgstr ""
|
||||
#, fuzzy
|
||||
msgid "colors"
|
||||
msgstr "cor"
|
||||
|
||||
msgid "Available infos:"
|
||||
msgstr ""
|
||||
|
||||
@@ -20,7 +20,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: WeeChat 0.3.4-dev\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2010-12-09 22:59+0100\n"
|
||||
"POT-Creation-Date: 2010-12-20 12:52+0100\n"
|
||||
"PO-Revision-Date: 2010-11-05 17:17+0100\n"
|
||||
"Last-Translator: Pavel Shevchuk <stlwrt@gmail.com>\n"
|
||||
"Language-Team: weechat-dev <weechat-dev@nongnu.org>\n"
|
||||
@@ -48,6 +48,7 @@ msgstr ""
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
" -a, --no-connect disable auto-connect to servers at startup\n"
|
||||
" -c, --colors display default colors in terminal\n"
|
||||
" -d, --dir <path> set WeeChat home directory (default: ~/.weechat)\n"
|
||||
" -h, --help this help\n"
|
||||
" -k, --keys display WeeChat default keys\n"
|
||||
@@ -1593,6 +1594,17 @@ msgstr "Дата сменилась на %s\n"
|
||||
msgid "debug level for plugin (\"core\" for WeeChat core)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"custom color in palette, format is: \"alias;fg,bg;r/g/b\" where alias is "
|
||||
"color name, fg,bg is \"foreground,background\" (example: \"200,-1\"), r/g/b "
|
||||
"is redefinition of color (terminal must support it) (everything is optional "
|
||||
"in this format)"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy, c-format
|
||||
msgid "%sError: palette option must be numeric"
|
||||
msgstr "%s не могу сохранить конфигурационный файл pluginов\n"
|
||||
|
||||
#, fuzzy
|
||||
msgid "Notify level for buffer"
|
||||
msgstr "не найдено имя канала для буфера"
|
||||
@@ -1628,9 +1640,6 @@ msgid ""
|
||||
"french time: \"${lightblue}%H${white}%M${lightred}%S\""
|
||||
msgstr "отображение маркера даты при смене дня"
|
||||
|
||||
msgid "number of colors to use for nicks colors"
|
||||
msgstr "количество цветов для раскрашивания ников"
|
||||
|
||||
msgid ""
|
||||
"if set, uses real white color, disabled by default for terms with white "
|
||||
"background (if you never use white background, you should turn on this "
|
||||
@@ -1916,6 +1925,10 @@ msgstr "цвет имён при действиях"
|
||||
msgid "text color for nicks in chat window"
|
||||
msgstr "цвет времени в окне чата"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for nicks (comma separated list of colors)"
|
||||
msgstr "цвет времени в окне чата"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for local nick in chat window"
|
||||
msgstr "текст, который отображать до ника в окне чата"
|
||||
@@ -1924,46 +1937,6 @@ msgstr "текст, который отображать до ника в окн
|
||||
msgid "text color for other nick in private buffer"
|
||||
msgstr "цвет ника собеседника в окне привата"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #1 for nick"
|
||||
msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #2 for nick"
|
||||
msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #3 for nick"
|
||||
msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #4 for nick"
|
||||
msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #5 for nick"
|
||||
msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #6 for nick"
|
||||
msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #7 for nick"
|
||||
msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #8 for nick"
|
||||
msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #9 for nick"
|
||||
msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color #10 for nick"
|
||||
msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
msgid "text color for hostnames"
|
||||
msgstr "цвет hostname"
|
||||
@@ -2380,6 +2353,16 @@ msgid ""
|
||||
"version)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr ""
|
||||
|
||||
msgid "No color support in terminal."
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgid "Default colors:"
|
||||
msgstr "Комбинации клавиш по умолчанию восстановлены\n"
|
||||
|
||||
msgid "Terminal lost, exiting WeeChat..."
|
||||
msgstr ""
|
||||
|
||||
@@ -2391,9 +2374,6 @@ msgstr ""
|
||||
msgid "Signal SIGHUP received, reloading configuration files"
|
||||
msgstr "%s не могу сохранить конфигурационный файл\n"
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid " TERM='%s', size: %dx%d"
|
||||
msgstr ""
|
||||
@@ -2779,9 +2759,9 @@ msgstr ""
|
||||
msgid "%sdemo message with error prefix"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
msgstr ""
|
||||
#, fuzzy
|
||||
msgid "colors"
|
||||
msgstr "цвет чата"
|
||||
|
||||
msgid "Available infos:"
|
||||
msgstr ""
|
||||
@@ -6878,6 +6858,49 @@ msgstr ""
|
||||
msgid "Pointer"
|
||||
msgstr "минута"
|
||||
|
||||
#~ msgid "number of colors to use for nicks colors"
|
||||
#~ msgstr "количество цветов для раскрашивания ников"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #1 for nick"
|
||||
#~ msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #2 for nick"
|
||||
#~ msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #3 for nick"
|
||||
#~ msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #4 for nick"
|
||||
#~ msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #5 for nick"
|
||||
#~ msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #6 for nick"
|
||||
#~ msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #7 for nick"
|
||||
#~ msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #8 for nick"
|
||||
#~ msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #9 for nick"
|
||||
#~ msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "text color #10 for nick"
|
||||
#~ msgstr "цвет ника"
|
||||
|
||||
#, fuzzy
|
||||
#~ msgid "[-server server] receiver[,receiver] text"
|
||||
#~ msgstr "адресат[,адресат] текст"
|
||||
|
||||
+26
-39
@@ -7,7 +7,7 @@ msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: flashcode@flashtux.org\n"
|
||||
"POT-Creation-Date: 2010-12-09 22:59+0100\n"
|
||||
"POT-Creation-Date: 2010-12-20 12:52+0100\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
@@ -30,6 +30,7 @@ msgstr ""
|
||||
|
||||
msgid ""
|
||||
" -a, --no-connect disable auto-connect to servers at startup\n"
|
||||
" -c, --colors display default colors in terminal\n"
|
||||
" -d, --dir <path> set WeeChat home directory (default: ~/.weechat)\n"
|
||||
" -h, --help this help\n"
|
||||
" -k, --keys display WeeChat default keys\n"
|
||||
@@ -1354,6 +1355,17 @@ msgstr ""
|
||||
msgid "debug level for plugin (\"core\" for WeeChat core)"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"custom color in palette, format is: \"alias;fg,bg;r/g/b\" where alias is "
|
||||
"color name, fg,bg is \"foreground,background\" (example: \"200,-1\"), r/g/b "
|
||||
"is redefinition of color (terminal must support it) (everything is optional "
|
||||
"in this format)"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "%sError: palette option must be numeric"
|
||||
msgstr ""
|
||||
|
||||
msgid "Notify level for buffer"
|
||||
msgstr ""
|
||||
|
||||
@@ -1387,9 +1399,6 @@ msgid ""
|
||||
"french time: \"${lightblue}%H${white}%M${lightred}%S\""
|
||||
msgstr ""
|
||||
|
||||
msgid "number of colors to use for nicks colors"
|
||||
msgstr ""
|
||||
|
||||
msgid ""
|
||||
"if set, uses real white color, disabled by default for terms with white "
|
||||
"background (if you never use white background, you should turn on this "
|
||||
@@ -1626,42 +1635,15 @@ msgstr ""
|
||||
msgid "text color for nicks in chat window"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for nicks (comma separated list of colors)"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for local nick in chat window"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for other nick in private buffer"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #1 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #2 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #3 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #4 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #5 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #6 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #7 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #8 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #9 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color #10 for nick"
|
||||
msgstr ""
|
||||
|
||||
msgid "text color for hostnames"
|
||||
msgstr ""
|
||||
|
||||
@@ -2023,6 +2005,15 @@ msgid ""
|
||||
"version)"
|
||||
msgstr ""
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr ""
|
||||
|
||||
msgid "No color support in terminal."
|
||||
msgstr ""
|
||||
|
||||
msgid "Default colors:"
|
||||
msgstr ""
|
||||
|
||||
msgid "Terminal lost, exiting WeeChat..."
|
||||
msgstr ""
|
||||
|
||||
@@ -2033,9 +2024,6 @@ msgstr ""
|
||||
msgid "Signal SIGHUP received, reloading configuration files"
|
||||
msgstr ""
|
||||
|
||||
msgid "Terminal infos:"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid " TERM='%s', size: %dx%d"
|
||||
msgstr ""
|
||||
@@ -2387,8 +2375,7 @@ msgstr ""
|
||||
msgid "%sdemo message with error prefix"
|
||||
msgstr ""
|
||||
|
||||
#, c-format
|
||||
msgid "colors: %s buffer %s nick1 %s nick2 %s nick3 %s nick4"
|
||||
msgid "colors"
|
||||
msgstr ""
|
||||
|
||||
msgid "Available infos:"
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
|
||||
#include "weechat.h"
|
||||
#include "wee-config.h"
|
||||
#include "wee-hashtable.h"
|
||||
#include "wee-hook.h"
|
||||
#include "wee-list.h"
|
||||
#include "wee-proxy.h"
|
||||
@@ -705,6 +706,24 @@ completion_list_add_plugins_commands_cb (void *data,
|
||||
return WEECHAT_RC_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* completion_list_add_color_alias_cb: add color alias in completion
|
||||
*/
|
||||
|
||||
void
|
||||
completion_list_add_color_alias_cb (void *data,
|
||||
struct t_hashtable *hashtable,
|
||||
const void *key, const void *value)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) hashtable;
|
||||
(void) value;
|
||||
|
||||
gui_completion_list_add ((struct t_gui_completion *)data,
|
||||
(char *)key,
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
|
||||
/*
|
||||
* completion_list_add_config_option_values_cb: add option value to completion
|
||||
* list
|
||||
@@ -888,6 +907,12 @@ completion_list_add_config_option_values_cb (void *data,
|
||||
color_name,
|
||||
0, WEECHAT_LIST_POS_SORT);
|
||||
}
|
||||
if (gui_color_hash_palette_alias)
|
||||
{
|
||||
hashtable_map (gui_color_hash_palette_alias,
|
||||
&completion_list_add_color_alias_cb,
|
||||
completion);
|
||||
}
|
||||
gui_completion_list_add (completion, "++1",
|
||||
0, WEECHAT_LIST_POS_END);
|
||||
gui_completion_list_add (completion, "--1",
|
||||
|
||||
@@ -1260,12 +1260,9 @@ config_file_option_set (struct t_config_option *option, const char *value,
|
||||
number = strtol (value + 2, &error, 10);
|
||||
if (error && !error[0])
|
||||
{
|
||||
number = number % (num_colors + 1);
|
||||
value_int = (old_value + number) %
|
||||
(num_colors + 1);
|
||||
if (value_int > num_colors - 1)
|
||||
value_int -= num_colors;
|
||||
if (value_int <= num_colors - 1)
|
||||
if (gui_color_assign_by_diff (&value_int,
|
||||
gui_color_get_name (old_value),
|
||||
number))
|
||||
new_value_ok = 1;
|
||||
}
|
||||
}
|
||||
@@ -1275,19 +1272,15 @@ config_file_option_set (struct t_config_option *option, const char *value,
|
||||
number = strtol (value + 2, &error, 10);
|
||||
if (error && !error[0])
|
||||
{
|
||||
number = number % (num_colors + 1);
|
||||
value_int = (old_value + num_colors - number) %
|
||||
num_colors;
|
||||
if (value_int < 0)
|
||||
value_int += num_colors;
|
||||
if (value_int >= 0)
|
||||
if (gui_color_assign_by_diff (&value_int,
|
||||
gui_color_get_name (old_value),
|
||||
-1 * number))
|
||||
new_value_ok = 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_color_assign (&value_int, value);
|
||||
if ((value_int >= 0) && (value_int <= num_colors - 1))
|
||||
if (gui_color_assign (&value_int, value))
|
||||
new_value_ok = 1;
|
||||
}
|
||||
if (new_value_ok)
|
||||
|
||||
+151
-69
@@ -61,6 +61,7 @@
|
||||
|
||||
struct t_config_file *weechat_config_file = NULL;
|
||||
struct t_config_section *weechat_config_section_debug = NULL;
|
||||
struct t_config_section *weechat_config_section_color = NULL;
|
||||
struct t_config_section *weechat_config_section_proxy = NULL;
|
||||
struct t_config_section *weechat_config_section_bar = NULL;
|
||||
struct t_config_section *weechat_config_section_notify = NULL;
|
||||
@@ -77,7 +78,6 @@ struct t_config_option *config_startup_display_version;
|
||||
struct t_config_option *config_look_align_end_of_lines;
|
||||
struct t_config_option *config_look_buffer_notify_default;
|
||||
struct t_config_option *config_look_buffer_time_format;
|
||||
struct t_config_option *config_look_color_nicks_number;
|
||||
struct t_config_option *config_look_color_real_white;
|
||||
struct t_config_option *config_look_command_chars;
|
||||
struct t_config_option *config_look_confirm_quit;
|
||||
@@ -137,9 +137,9 @@ struct t_config_option *config_color_chat_buffer;
|
||||
struct t_config_option *config_color_chat_server;
|
||||
struct t_config_option *config_color_chat_channel;
|
||||
struct t_config_option *config_color_chat_nick;
|
||||
struct t_config_option *config_color_chat_nick_colors;
|
||||
struct t_config_option *config_color_chat_nick_self;
|
||||
struct t_config_option *config_color_chat_nick_other;
|
||||
struct t_config_option *config_color_chat_nick_colors[GUI_COLOR_NICK_NUMBER];
|
||||
struct t_config_option *config_color_chat_host;
|
||||
struct t_config_option *config_color_chat_delimiters;
|
||||
struct t_config_option *config_color_chat_highlight;
|
||||
@@ -660,6 +660,130 @@ config_weechat_debug_set (const char *plugin_name, const char *value)
|
||||
value);
|
||||
}
|
||||
|
||||
/*
|
||||
* config_weechat_palette_change_cb: called when a palette option is changed
|
||||
*/
|
||||
|
||||
void
|
||||
config_weechat_palette_change_cb (void *data,
|
||||
struct t_config_option *option)
|
||||
{
|
||||
char *error;
|
||||
int number;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) option;
|
||||
|
||||
error = NULL;
|
||||
number = (int)strtol (option->name, &error, 10);
|
||||
if (error && !error[0])
|
||||
{
|
||||
gui_color_palette_change (number, CONFIG_STRING(option));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* config_weechat_palette_create_option_cb: create option in "palette" section
|
||||
*/
|
||||
|
||||
int
|
||||
config_weechat_palette_create_option_cb (void *data,
|
||||
struct t_config_file *config_file,
|
||||
struct t_config_section *section,
|
||||
const char *option_name,
|
||||
const char *value)
|
||||
{
|
||||
struct t_config_option *ptr_option;
|
||||
char *error;
|
||||
int rc, number;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
|
||||
rc = WEECHAT_CONFIG_OPTION_SET_ERROR;
|
||||
|
||||
error = NULL;
|
||||
number = (int)strtol (option_name, &error, 10);
|
||||
if (error && !error[0])
|
||||
{
|
||||
if (option_name)
|
||||
{
|
||||
ptr_option = config_file_search_option (config_file, section,
|
||||
option_name);
|
||||
if (ptr_option)
|
||||
{
|
||||
if (value)
|
||||
rc = config_file_option_set (ptr_option, value, 1);
|
||||
else
|
||||
{
|
||||
config_file_option_free (ptr_option);
|
||||
rc = WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (value)
|
||||
{
|
||||
ptr_option = config_file_new_option (
|
||||
config_file, section,
|
||||
option_name, "string",
|
||||
_("custom color in palette, format is: \"alias;fg,bg;r/g/b\" "
|
||||
"where alias is color name, fg,bg is \"foreground,background\" "
|
||||
"(example: \"200,-1\"), r/g/b is redefinition of color "
|
||||
"(terminal must support it) (everything is optional "
|
||||
"in this format)"),
|
||||
NULL, 0, 0, "", value, 0, NULL, NULL,
|
||||
&config_weechat_palette_change_cb, NULL,
|
||||
NULL, NULL);
|
||||
rc = (ptr_option) ?
|
||||
WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE : WEECHAT_CONFIG_OPTION_SET_ERROR;
|
||||
if (ptr_option)
|
||||
gui_color_palette_add (number, value);
|
||||
}
|
||||
else
|
||||
rc = WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_chat_printf (NULL,
|
||||
_("%sError: palette option must be numeric"),
|
||||
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
|
||||
}
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
/*
|
||||
* config_weechat_palette_delete_option_cb: delete option in "palette" section
|
||||
*/
|
||||
|
||||
int
|
||||
config_weechat_palette_delete_option_cb (void *data,
|
||||
struct t_config_file *config_file,
|
||||
struct t_config_section *section,
|
||||
struct t_config_option *option)
|
||||
{
|
||||
char *error;
|
||||
int number;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) config_file;
|
||||
(void) section;
|
||||
|
||||
error = NULL;
|
||||
number = (int)strtol (option->name, &error, 10);
|
||||
if (error && !error[0])
|
||||
gui_color_palette_remove (number);
|
||||
|
||||
config_file_option_free (option);
|
||||
|
||||
return WEECHAT_CONFIG_OPTION_UNSET_OK_REMOVED;
|
||||
}
|
||||
|
||||
/*
|
||||
* config_weechat_proxy_read_cb: read proxy option in config file
|
||||
*/
|
||||
@@ -1331,11 +1455,6 @@ config_weechat_init_options ()
|
||||
"\"${color}\", for example french time: "
|
||||
"\"${lightblue}%H${white}%M${lightred}%S\""),
|
||||
NULL, 0, 0, "%H:%M:%S", NULL, 0, NULL, NULL, &config_change_buffer_time_format, NULL, NULL, NULL);
|
||||
config_look_color_nicks_number = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"color_nicks_number", "integer",
|
||||
N_("number of colors to use for nicks colors"),
|
||||
NULL, 1, 10, "10", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
config_look_color_real_white = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"color_real_white", "boolean",
|
||||
@@ -1606,6 +1725,19 @@ config_weechat_init_options ()
|
||||
"messages"),
|
||||
NULL, 0, 0, "%a, %d %b %Y %T", NULL, 0, NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
|
||||
/* palette */
|
||||
ptr_section = config_file_new_section (weechat_config_file, "palette",
|
||||
1, 1,
|
||||
NULL, NULL, NULL, NULL,
|
||||
NULL, NULL,
|
||||
&config_weechat_palette_create_option_cb, NULL,
|
||||
&config_weechat_palette_delete_option_cb, NULL);
|
||||
if (!ptr_section)
|
||||
{
|
||||
config_file_free (weechat_config_file);
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* colors */
|
||||
ptr_section = config_file_new_section (weechat_config_file, "color",
|
||||
0, 0,
|
||||
@@ -1617,6 +1749,8 @@ config_weechat_init_options ()
|
||||
return 0;
|
||||
}
|
||||
|
||||
weechat_config_section_color = ptr_section;
|
||||
|
||||
/* general color settings */
|
||||
config_color_separator = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
@@ -1729,6 +1863,13 @@ config_weechat_init_options ()
|
||||
N_("text color for nicks in chat window"),
|
||||
NULL, GUI_COLOR_CHAT_NICK, 0, "lightcyan", NULL, 0,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_nick_colors = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_colors", "string",
|
||||
N_("text color for nicks (comma separated list of colors)"),
|
||||
NULL, 0, 0, "cyan,magenta,green,brown,lightblue,default,lightcyan,"
|
||||
"lightmagenta,lightgreen,blue", NULL, 0,
|
||||
NULL, NULL, NULL, NULL, NULL, NULL);
|
||||
config_color_chat_nick_self = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_self", "color",
|
||||
@@ -1741,66 +1882,6 @@ config_weechat_init_options ()
|
||||
N_("text color for other nick in private buffer"),
|
||||
NULL, GUI_COLOR_CHAT_NICK_OTHER, 0, "cyan", NULL, 0,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_nick_colors[0] = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_color01", "color",
|
||||
N_("text color #1 for nick"),
|
||||
NULL, GUI_COLOR_CHAT_NICK1, 0, "cyan", NULL, 0,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_nick_colors[1] = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_color02", "color",
|
||||
N_("text color #2 for nick"),
|
||||
NULL, GUI_COLOR_CHAT_NICK2, 0, "magenta", NULL, 0,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_nick_colors[2] = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_color03", "color",
|
||||
N_("text color #3 for nick"),
|
||||
NULL, GUI_COLOR_CHAT_NICK3, 0, "green", NULL, 0,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_nick_colors[3] = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_color04", "color",
|
||||
N_("text color #4 for nick"),
|
||||
NULL, GUI_COLOR_CHAT_NICK4, 0, "brown", NULL, 0,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_nick_colors[4] = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_color05", "color",
|
||||
N_("text color #5 for nick"),
|
||||
NULL, GUI_COLOR_CHAT_NICK5, 0, "lightblue", NULL, 0,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_nick_colors[5] = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_color06", "color",
|
||||
N_("text color #6 for nick"),
|
||||
NULL, GUI_COLOR_CHAT_NICK6, 0, "default", NULL, 0,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_nick_colors[6] = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_color07", "color",
|
||||
N_("text color #7 for nick"),
|
||||
NULL, GUI_COLOR_CHAT_NICK7, 0, "lightcyan", NULL, 0,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_nick_colors[7] = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_color08", "color",
|
||||
N_("text color #8 for nick"),
|
||||
NULL, GUI_COLOR_CHAT_NICK8, 0, "lightmagenta", NULL, 0,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_nick_colors[8] = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_color09", "color",
|
||||
N_("text color #9 for nick"),
|
||||
NULL, GUI_COLOR_CHAT_NICK9, 0, "lightgreen", NULL, 0,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_nick_colors[9] = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_nick_color10", "color",
|
||||
N_("text color #10 for nick"),
|
||||
NULL, GUI_COLOR_CHAT_NICK10, 0, "blue", NULL, 0,
|
||||
NULL, NULL, &config_change_color, NULL, NULL, NULL);
|
||||
config_color_chat_host = config_file_new_option (
|
||||
weechat_config_file, ptr_section,
|
||||
"chat_host", "color",
|
||||
@@ -2232,9 +2313,9 @@ config_weechat_init ()
|
||||
_("FATAL: error initializing configuration options"));
|
||||
}
|
||||
|
||||
/* create timer to check if day has changed */
|
||||
if (!config_day_change_timer)
|
||||
{
|
||||
/* create timer to check if day has changed */
|
||||
gettimeofday (&tv_time, NULL);
|
||||
local_time = localtime (&tv_time.tv_sec);
|
||||
config_day_change_old_day = local_time->tm_mday;
|
||||
@@ -2244,8 +2325,9 @@ config_weechat_init ()
|
||||
0,
|
||||
&config_day_change_timer_cb,
|
||||
NULL);
|
||||
config_change_highlight_regex (NULL, NULL);
|
||||
}
|
||||
if (!config_highlight_regex)
|
||||
config_change_highlight_regex (NULL, NULL);
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -94,6 +94,7 @@ enum t_config_look_save_layout_on_exit
|
||||
};
|
||||
|
||||
extern struct t_config_file *weechat_config_file;
|
||||
extern struct t_config_section *weechat_config_section_color;
|
||||
extern struct t_config_section *weechat_config_section_proxy;
|
||||
extern struct t_config_section *weechat_config_section_bar;
|
||||
extern struct t_config_section *weechat_config_section_notify;
|
||||
@@ -108,7 +109,6 @@ extern struct t_config_option *config_look_buffer_notify_default;
|
||||
extern struct t_config_option *config_look_buffer_time_format;
|
||||
extern struct t_config_option *config_look_command_chars;
|
||||
extern struct t_config_option *config_look_confirm_quit;
|
||||
extern struct t_config_option *config_look_color_nicks_number;
|
||||
extern struct t_config_option *config_look_color_real_white;
|
||||
extern struct t_config_option *config_look_day_change;
|
||||
extern struct t_config_option *config_look_day_change_time_format;
|
||||
@@ -164,9 +164,9 @@ extern struct t_config_option *config_color_chat_buffer;
|
||||
extern struct t_config_option *config_color_chat_server;
|
||||
extern struct t_config_option *config_color_chat_channel;
|
||||
extern struct t_config_option *config_color_chat_nick;
|
||||
extern struct t_config_option *config_color_chat_nick_colors;
|
||||
extern struct t_config_option *config_color_chat_nick_self;
|
||||
extern struct t_config_option *config_color_chat_nick_other;
|
||||
extern struct t_config_option *config_color_chat_nick_colors[];
|
||||
extern struct t_config_option *config_color_chat_host;
|
||||
extern struct t_config_option *config_color_chat_delimiters;
|
||||
extern struct t_config_option *config_color_chat_highlight;
|
||||
|
||||
@@ -182,6 +182,32 @@ weelist_search (struct t_weelist *weelist, const char *data)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* weelist_search_pos: search data in a list (case sensitive), return position
|
||||
* of item found, -1 if not found
|
||||
*/
|
||||
|
||||
int
|
||||
weelist_search_pos (struct t_weelist *weelist, const char *data)
|
||||
{
|
||||
struct t_weelist_item *ptr_item;
|
||||
int i;
|
||||
|
||||
if (!weelist || !data)
|
||||
return -1;
|
||||
|
||||
i = 0;
|
||||
for (ptr_item = weelist->items; ptr_item;
|
||||
ptr_item = ptr_item->next_item)
|
||||
{
|
||||
if (strcmp (data, ptr_item->data) == 0)
|
||||
return i;
|
||||
i++;
|
||||
}
|
||||
/* data not found in list */
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
* weelist_casesearch: search data in a list (case unsensitive)
|
||||
*/
|
||||
@@ -204,6 +230,31 @@ weelist_casesearch (struct t_weelist *weelist, const char *data)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* weelist_casesearch_pos: search data in a list (case unsensitive), return
|
||||
* position of item found, -1 if not found
|
||||
*/
|
||||
|
||||
int
|
||||
weelist_casesearch_pos (struct t_weelist *weelist, const char *data)
|
||||
{
|
||||
struct t_weelist_item *ptr_item;
|
||||
int i;
|
||||
|
||||
if (!weelist || !data)
|
||||
return -1;
|
||||
|
||||
for (ptr_item = weelist->items; ptr_item;
|
||||
ptr_item = ptr_item->next_item)
|
||||
{
|
||||
if (string_strcasecmp (data, ptr_item->data) == 0)
|
||||
return i;
|
||||
i++;
|
||||
}
|
||||
/* data not found in list */
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
* weelist_get: get an item in a list by position (0 is first element)
|
||||
*/
|
||||
|
||||
@@ -41,8 +41,10 @@ extern struct t_weelist_item *weelist_add (struct t_weelist *weelist,
|
||||
void *user_data);
|
||||
extern struct t_weelist_item *weelist_search (struct t_weelist *weelist,
|
||||
const char *data);
|
||||
extern int weelist_search_pos (struct t_weelist *weelist, const char *data);
|
||||
extern struct t_weelist_item *weelist_casesearch (struct t_weelist *weelist,
|
||||
const char *data);
|
||||
extern int weelist_casesearch_pos (struct t_weelist *weelist, const char *data);
|
||||
extern struct t_weelist_item *weelist_get (struct t_weelist *weelist,
|
||||
int position);
|
||||
extern void weelist_set (struct t_weelist_item *item, const char *value);
|
||||
|
||||
+8
-1
@@ -110,6 +110,7 @@ weechat_display_usage (char *exec_name)
|
||||
string_iconv_fprintf (stdout, "\n\n");
|
||||
string_iconv_fprintf (stdout,
|
||||
_(" -a, --no-connect disable auto-connect to servers at startup\n"
|
||||
" -c, --colors display default colors in terminal\n"
|
||||
" -d, --dir <path> set WeeChat home directory (default: ~/.weechat)\n"
|
||||
" -h, --help this help\n"
|
||||
" -k, --keys display WeeChat default keys\n"
|
||||
@@ -173,7 +174,13 @@ weechat_parse_args (int argc, char *argv[])
|
||||
|
||||
for (i = 1; i < argc; i++)
|
||||
{
|
||||
if ((strcmp (argv[i], "-d") == 0)
|
||||
if ((strcmp (argv[i], "-c") == 0)
|
||||
|| (strcmp (argv[i], "--colors") == 0))
|
||||
{
|
||||
gui_color_display_terminal_colors ();
|
||||
weechat_shutdown (EXIT_SUCCESS, 0);
|
||||
}
|
||||
else if ((strcmp (argv[i], "-d") == 0)
|
||||
|| (strcmp (argv[i], "--dir") == 0))
|
||||
{
|
||||
if (i + 1 < argc)
|
||||
|
||||
@@ -156,7 +156,9 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window,
|
||||
int hide_chars_if_scrolling)
|
||||
{
|
||||
int weechat_color, x_with_hidden, size_on_screen, fg, bg, low_char, hidden;
|
||||
char str_fg[3], str_bg[3], utf_char[16], *next_char, *output;
|
||||
int pair;
|
||||
char str_fg[3], str_bg[3], str_pair[6], utf_char[16], *next_char, *output;
|
||||
char *error;
|
||||
|
||||
if (!string || !string[0])
|
||||
return 1;
|
||||
@@ -223,25 +225,42 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window,
|
||||
string += 6;
|
||||
}
|
||||
break;
|
||||
case GUI_COLOR_PAIR_CHAR: /* pair number */
|
||||
if ((isdigit (string[1])) && (isdigit (string[2]))
|
||||
&& (isdigit (string[3])) && (isdigit (string[4]))
|
||||
&& (isdigit (string[5])))
|
||||
{
|
||||
memcpy (str_pair, string + 1, 5);
|
||||
str_pair[5] = '\0';
|
||||
error = NULL;
|
||||
pair = (int)strtol (str_pair, &error, 10);
|
||||
if (error && !error[0])
|
||||
{
|
||||
gui_window_set_custom_color_pair (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
|
||||
pair);
|
||||
}
|
||||
string += 6;
|
||||
}
|
||||
break;
|
||||
case GUI_COLOR_BAR_CHAR: /* bar color */
|
||||
switch (string[1])
|
||||
{
|
||||
case GUI_COLOR_BAR_FG_CHAR:
|
||||
/* bar foreground */
|
||||
gui_window_set_custom_color_fg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
|
||||
CONFIG_INTEGER(bar_window->bar->options[GUI_BAR_OPTION_COLOR_FG]));
|
||||
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_FG]));
|
||||
string += 2;
|
||||
break;
|
||||
case GUI_COLOR_BAR_DELIM_CHAR:
|
||||
/* bar delimiter */
|
||||
gui_window_set_custom_color_fg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
|
||||
CONFIG_INTEGER(bar_window->bar->options[GUI_BAR_OPTION_COLOR_DELIM]));
|
||||
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_DELIM]));
|
||||
string += 2;
|
||||
break;
|
||||
case GUI_COLOR_BAR_BG_CHAR:
|
||||
/* bar background */
|
||||
gui_window_set_custom_color_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
|
||||
CONFIG_INTEGER(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
|
||||
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
|
||||
string += 2;
|
||||
break;
|
||||
case GUI_COLOR_BAR_START_INPUT_CHAR:
|
||||
@@ -282,9 +301,9 @@ gui_bar_window_print_string (struct t_gui_bar_window *bar_window,
|
||||
break;
|
||||
case GUI_COLOR_RESET_CHAR:
|
||||
gui_window_set_custom_color_fg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
|
||||
CONFIG_INTEGER(bar_window->bar->options[GUI_BAR_OPTION_COLOR_FG]));
|
||||
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_FG]));
|
||||
gui_window_set_custom_color_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
|
||||
CONFIG_INTEGER(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
|
||||
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
|
||||
gui_window_remove_color_style (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
|
||||
A_BOLD | A_UNDERLINE | A_REVERSE);
|
||||
string++;
|
||||
@@ -653,7 +672,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window,
|
||||
y = 0;
|
||||
gui_window_set_custom_color_fg_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
|
||||
CONFIG_COLOR(config_color_bar_more),
|
||||
CONFIG_INTEGER(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
|
||||
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
|
||||
mvwprintw (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
|
||||
y, x, "--");
|
||||
}
|
||||
@@ -666,7 +685,7 @@ gui_bar_window_draw (struct t_gui_bar_window *bar_window,
|
||||
y = (bar_window->height > 1) ? bar_window->height - 1 : 0;
|
||||
gui_window_set_custom_color_fg_bg (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
|
||||
CONFIG_COLOR(config_color_bar_more),
|
||||
CONFIG_INTEGER(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
|
||||
CONFIG_COLOR(bar_window->bar->options[GUI_BAR_OPTION_COLOR_BG]));
|
||||
mvwprintw (GUI_BAR_WINDOW_OBJECTS(bar_window)->win_bar,
|
||||
y, x, "++");
|
||||
}
|
||||
|
||||
@@ -179,8 +179,8 @@ char *
|
||||
gui_chat_string_next_char (struct t_gui_window *window,
|
||||
const unsigned char *string, int apply_style)
|
||||
{
|
||||
char str_fg[3], str_bg[3];
|
||||
int weechat_color, fg, bg;
|
||||
char str_fg[3], str_bg[3], str_pair[6], *error;
|
||||
int weechat_color, fg, bg, pair;
|
||||
|
||||
while (string[0])
|
||||
{
|
||||
@@ -245,6 +245,26 @@ gui_chat_string_next_char (struct t_gui_window *window,
|
||||
string += 6;
|
||||
}
|
||||
break;
|
||||
case GUI_COLOR_PAIR_CHAR: /* pair number */
|
||||
if ((isdigit (string[1])) && (isdigit (string[2]))
|
||||
&& (isdigit (string[3])) && (isdigit (string[4]))
|
||||
&& (isdigit (string[5])))
|
||||
{
|
||||
if (apply_style)
|
||||
{
|
||||
memcpy (str_pair, string + 1, 5);
|
||||
str_pair[5] = '\0';
|
||||
error = NULL;
|
||||
pair = (int)strtol (str_pair, &error, 10);
|
||||
if (error && !error[0])
|
||||
{
|
||||
gui_window_set_custom_color_pair (GUI_WINDOW_OBJECTS(window)->win_chat,
|
||||
pair);
|
||||
}
|
||||
}
|
||||
string += 6;
|
||||
}
|
||||
break;
|
||||
case GUI_COLOR_BAR_CHAR: /* bar color */
|
||||
switch (string[1])
|
||||
{
|
||||
|
||||
@@ -31,8 +31,11 @@
|
||||
|
||||
#include "../../core/weechat.h"
|
||||
#include "../../core/wee-config.h"
|
||||
#include "../../core/wee-hashtable.h"
|
||||
#include "../../core/wee-list.h"
|
||||
#include "../../core/wee-string.h"
|
||||
#include "../../core/wee-utf8.h"
|
||||
#include "../../plugins/plugin.h"
|
||||
#include "../gui-color.h"
|
||||
#include "../gui-chat.h"
|
||||
#include "gui-curses.h"
|
||||
@@ -84,29 +87,98 @@ gui_color_search (const char *color_name)
|
||||
|
||||
/*
|
||||
* gui_color_assign: assign a WeeChat color (read from config)
|
||||
* return 1 if ok, 0 if error
|
||||
*/
|
||||
|
||||
int
|
||||
gui_color_assign (int *color, const char *color_name)
|
||||
{
|
||||
int i;
|
||||
int color_index, pair;
|
||||
char *error;
|
||||
|
||||
/* look for curses colors in table */
|
||||
i = 0;
|
||||
while (gui_weechat_colors[i].string)
|
||||
/* search for color alias */
|
||||
pair = gui_color_palette_get_alias (color_name);
|
||||
if (pair >= 0)
|
||||
{
|
||||
if (string_strcasecmp (gui_weechat_colors[i].string, color_name) == 0)
|
||||
*color = GUI_COLOR_PAIR_FLAG | pair;
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* is it pair number? */
|
||||
error = NULL;
|
||||
pair = (int)strtol (color_name, &error, 10);
|
||||
if (color_name[0] && error && !error[0] && (pair >= 0))
|
||||
{
|
||||
/* color_name is a number, use this pair number */
|
||||
*color = GUI_COLOR_PAIR_FLAG | pair;
|
||||
return 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* search for basic WeeChat color */
|
||||
color_index = gui_color_search (color_name);
|
||||
if (color_index >= 0)
|
||||
{
|
||||
*color = i;
|
||||
*color = color_index;
|
||||
return 1;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
/* color not found */
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_assign_by_diff: assign color by difference
|
||||
* It is called when a color option is
|
||||
* set with value ++X or --X, to search
|
||||
* another color (for example ++1 is
|
||||
* next color/alias in list)
|
||||
* return 1 if ok, 0 if error
|
||||
*/
|
||||
|
||||
int
|
||||
gui_color_assign_by_diff (int *color, const char *color_name, int diff)
|
||||
{
|
||||
int index, list_size;
|
||||
struct t_weelist_item *ptr_item;
|
||||
const char *name;
|
||||
|
||||
index = weelist_search_pos (gui_color_list_with_alias, color_name);
|
||||
if (index < 0)
|
||||
index = 0;
|
||||
|
||||
list_size = weelist_size (gui_color_list_with_alias);
|
||||
|
||||
diff = diff % (list_size + 1);
|
||||
|
||||
if (diff > 0)
|
||||
{
|
||||
index = (index + diff) % (list_size + 1);
|
||||
while (index > list_size - 1)
|
||||
{
|
||||
index -= list_size;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
index = (index + list_size + diff) % list_size;
|
||||
while (index < 0)
|
||||
{
|
||||
index += list_size;
|
||||
}
|
||||
}
|
||||
|
||||
ptr_item = weelist_get (gui_color_list_with_alias, index);
|
||||
if (!ptr_item)
|
||||
return 0;
|
||||
name = weelist_string (ptr_item);
|
||||
if (name)
|
||||
return gui_color_assign (color, name);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_get_number: get number of available colors
|
||||
*/
|
||||
@@ -124,18 +196,40 @@ gui_color_get_number ()
|
||||
const char *
|
||||
gui_color_get_name (int num_color)
|
||||
{
|
||||
static char color[32][16];
|
||||
static int index_color = 0;
|
||||
struct t_gui_color_palette *ptr_color_palette;
|
||||
|
||||
if (num_color & GUI_COLOR_PAIR_FLAG)
|
||||
{
|
||||
ptr_color_palette = gui_color_palette_get (num_color & GUI_COLOR_PAIR_MASK);
|
||||
if (ptr_color_palette && ptr_color_palette->alias)
|
||||
return ptr_color_palette->alias;
|
||||
index_color = (index_color + 1) % 32;
|
||||
color[index_color][0] = '\0';
|
||||
snprintf (color[index_color], sizeof (color[index_color]),
|
||||
"%d", num_color & GUI_COLOR_PAIR_MASK);
|
||||
return color[index_color];
|
||||
}
|
||||
|
||||
return gui_weechat_colors[num_color].string;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_build: build a WeeChat color with foreground,
|
||||
* background and attributes (attributes are
|
||||
* given with foreground color, with a OR)
|
||||
* gui_color_build: build a WeeChat color with foreground and background
|
||||
* (foreground and background must be >= 0,
|
||||
* if they are >= 0x10000, then it is a pair number
|
||||
* (pair = value & 0xFFFF))
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_build (int number, int foreground, int background)
|
||||
{
|
||||
if (foreground < 0)
|
||||
foreground = 0;
|
||||
if (background < 0)
|
||||
background = 0;
|
||||
|
||||
if (!gui_color[number])
|
||||
{
|
||||
gui_color[number] = malloc (sizeof (*gui_color[number]));
|
||||
@@ -144,9 +238,20 @@ gui_color_build (int number, int foreground, int background)
|
||||
gui_color[number]->string = malloc (4);
|
||||
}
|
||||
|
||||
gui_color[number]->foreground = gui_weechat_colors[foreground].foreground;
|
||||
gui_color[number]->background = gui_weechat_colors[background].foreground;
|
||||
gui_color[number]->attributes = gui_weechat_colors[foreground].attributes;
|
||||
if (foreground & GUI_COLOR_PAIR_FLAG)
|
||||
{
|
||||
gui_color[number]->foreground = foreground;
|
||||
gui_color[number]->background = 0;
|
||||
gui_color[number]->attributes = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
if (background & GUI_COLOR_PAIR_FLAG)
|
||||
background = 0;
|
||||
gui_color[number]->foreground = gui_weechat_colors[foreground].foreground;
|
||||
gui_color[number]->background = gui_weechat_colors[background].foreground;
|
||||
gui_color[number]->attributes = gui_weechat_colors[foreground].attributes;
|
||||
}
|
||||
if (gui_color[number]->string)
|
||||
{
|
||||
snprintf (gui_color[number]->string, 4,
|
||||
@@ -170,6 +275,9 @@ gui_color_get_pair (int num_color)
|
||||
fg = gui_color[num_color]->foreground;
|
||||
bg = gui_color[num_color]->background;
|
||||
|
||||
if ((fg > 0) && (fg & GUI_COLOR_PAIR_FLAG))
|
||||
return fg & GUI_COLOR_PAIR_MASK;
|
||||
|
||||
if (((fg == -1) || (fg == 99))
|
||||
&& ((bg == -1) || (bg == 99)))
|
||||
return gui_color_last_pair;
|
||||
@@ -181,6 +289,34 @@ gui_color_get_pair (int num_color)
|
||||
return (bg * gui_color_num_bg) + fg + 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_init_pair: init a color pair
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_init_pair (int number)
|
||||
{
|
||||
struct t_gui_color_palette *ptr_color_palette;
|
||||
int fg, bg;
|
||||
|
||||
if ((number >= 1) && (number <= COLOR_PAIRS - 1))
|
||||
{
|
||||
ptr_color_palette = gui_color_palette_get (number);
|
||||
if (ptr_color_palette)
|
||||
{
|
||||
init_pair (number,
|
||||
ptr_color_palette->foreground,
|
||||
ptr_color_palette->background);
|
||||
}
|
||||
else
|
||||
{
|
||||
fg = (number - 1) % gui_color_num_bg;
|
||||
bg = ((number - 1) < gui_color_num_bg) ? -1 : (number - 1) / gui_color_num_bg;
|
||||
init_pair (number, fg, bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_init_pairs: init color pairs
|
||||
*/
|
||||
@@ -188,7 +324,8 @@ gui_color_get_pair (int num_color)
|
||||
void
|
||||
gui_color_init_pairs ()
|
||||
{
|
||||
int i, fg, bg, num_colors;
|
||||
int i, num_colors;
|
||||
struct t_gui_color_palette *ptr_color_palette;
|
||||
|
||||
/*
|
||||
* depending on terminal and $TERM value, we can have for example:
|
||||
@@ -199,29 +336,35 @@ gui_color_init_pairs ()
|
||||
* urxvt | xterm-256color | 256 | 32767
|
||||
* screen | screen | 8 | 64
|
||||
* screen | screen-256color | 256 | 32767
|
||||
*/
|
||||
*/
|
||||
|
||||
if (has_colors ())
|
||||
{
|
||||
gui_color_num_bg = (COLOR_PAIRS >= 256) ? 16 : 8;
|
||||
num_colors = (COLOR_PAIRS >= 256) ? 256 : COLOR_PAIRS;
|
||||
for (i = 1; i < num_colors; i++)
|
||||
{
|
||||
fg = (i - 1) % gui_color_num_bg;
|
||||
bg = ((i - 1) < gui_color_num_bg) ? -1 : (i - 1) / gui_color_num_bg;
|
||||
init_pair (i, fg, bg);
|
||||
}
|
||||
gui_color_last_pair = num_colors - 1;
|
||||
|
||||
/* WeeChat pairs */
|
||||
for (i = 1; i < num_colors; i++)
|
||||
{
|
||||
gui_color_init_pair (i);
|
||||
}
|
||||
|
||||
/* disable white on white, replaced by black on white */
|
||||
init_pair (gui_color_last_pair, -1, -1);
|
||||
ptr_color_palette = gui_color_palette_get (gui_color_last_pair);
|
||||
if (!ptr_color_palette)
|
||||
init_pair (gui_color_last_pair, -1, -1);
|
||||
|
||||
/*
|
||||
* white on default bg is default (-1) (for terminals with white/light
|
||||
* background)
|
||||
*/
|
||||
if (!CONFIG_BOOLEAN(config_look_color_real_white))
|
||||
init_pair (COLOR_WHITE + 1, -1, -1);
|
||||
{
|
||||
ptr_color_palette = gui_color_palette_get (COLOR_WHITE);
|
||||
if (!ptr_color_palette)
|
||||
init_pair (COLOR_WHITE + 1, -1, -1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -232,8 +375,6 @@ gui_color_init_pairs ()
|
||||
void
|
||||
gui_color_init_weechat ()
|
||||
{
|
||||
int i;
|
||||
|
||||
gui_color_build (GUI_COLOR_SEPARATOR, CONFIG_COLOR(config_color_separator), CONFIG_COLOR(config_color_chat_bg));
|
||||
|
||||
gui_color_build (GUI_COLOR_CHAT, CONFIG_COLOR(config_color_chat), CONFIG_COLOR(config_color_chat_bg));
|
||||
@@ -252,10 +393,6 @@ gui_color_init_weechat ()
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK, CONFIG_COLOR(config_color_chat_nick), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK_SELF, CONFIG_COLOR(config_color_chat_nick_self), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK_OTHER, CONFIG_COLOR(config_color_chat_nick_other), CONFIG_COLOR(config_color_chat_bg));
|
||||
for (i = 0; i < GUI_COLOR_NICK_NUMBER; i++)
|
||||
{
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK1 + i, CONFIG_COLOR(config_color_chat_nick_colors[i]), CONFIG_COLOR(config_color_chat_bg));
|
||||
}
|
||||
gui_color_build (GUI_COLOR_CHAT_HOST, CONFIG_COLOR(config_color_chat_host), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_DELIMITERS, CONFIG_COLOR(config_color_chat_delimiters), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_HIGHLIGHT, CONFIG_COLOR(config_color_chat_highlight), CONFIG_COLOR(config_color_chat_highlight_bg));
|
||||
@@ -263,6 +400,23 @@ gui_color_init_weechat ()
|
||||
gui_color_build (GUI_COLOR_CHAT_TEXT_FOUND, CONFIG_COLOR(config_color_chat_text_found), CONFIG_COLOR(config_color_chat_text_found_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_VALUE, CONFIG_COLOR(config_color_chat_value), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_PREFIX_BUFFER, CONFIG_COLOR(config_color_chat_prefix_buffer), CONFIG_COLOR(config_color_chat_bg));
|
||||
|
||||
/*
|
||||
* define old nick colors for compatibility on /upgrade with previous
|
||||
* versions: these colors have been removed in version 0.3.4 and replaced
|
||||
* by new option "weechat.color.chat_nick_colors", which is a list of
|
||||
* colors (without limit on number of colors)
|
||||
*/
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK1_OBSOLETE, gui_color_search ("cyan"), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK2_OBSOLETE, gui_color_search ("magenta"), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK3_OBSOLETE, gui_color_search ("green"), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK4_OBSOLETE, gui_color_search ("brown"), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK5_OBSOLETE, gui_color_search ("lightblue"), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK6_OBSOLETE, gui_color_search ("default"), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK7_OBSOLETE, gui_color_search ("lightcyan"), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK8_OBSOLETE, gui_color_search ("lightmagenta"), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK9_OBSOLETE, gui_color_search ("lightgreen"), CONFIG_COLOR(config_color_chat_bg));
|
||||
gui_color_build (GUI_COLOR_CHAT_NICK10_OBSOLETE, gui_color_search ("blue"), CONFIG_COLOR(config_color_chat_bg));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -294,6 +448,286 @@ gui_color_init ()
|
||||
}
|
||||
gui_color_init_pairs ();
|
||||
gui_color_init_weechat ();
|
||||
gui_color_palette_build_aliases ();
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_display_terminal_colors: display terminal colors
|
||||
* This is called by command line option
|
||||
* "-c" / "--colors"
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_display_terminal_colors ()
|
||||
{
|
||||
int lines, line, col, color;
|
||||
int color_support, colors, color_pairs, change_color;
|
||||
char str_line[1024], str_color[64];
|
||||
|
||||
color_support = 0;
|
||||
colors = 0;
|
||||
color_pairs = 0;
|
||||
change_color = 0;
|
||||
|
||||
initscr ();
|
||||
if (has_colors ())
|
||||
{
|
||||
color_support = 1;
|
||||
start_color ();
|
||||
use_default_colors ();
|
||||
colors = COLORS;
|
||||
color_pairs = COLOR_PAIRS;
|
||||
change_color = can_change_color () ? 1 : 0;
|
||||
refresh ();
|
||||
endwin ();
|
||||
}
|
||||
printf ("\n");
|
||||
printf ("%s $TERM=%s COLORS: %d, COLOR_PAIRS: %d, "
|
||||
"can_change_color: %s\n",
|
||||
_("Terminal infos:"),
|
||||
getenv ("TERM"), colors, color_pairs,
|
||||
(change_color) ? "yes" : "no");
|
||||
if (colors == 0)
|
||||
{
|
||||
printf ("%s\n", _("No color support in terminal."));
|
||||
}
|
||||
else
|
||||
{
|
||||
printf ("\n");
|
||||
printf ("%s\n", _("Default colors:"));
|
||||
printf ("------------------------------------------------------------"
|
||||
"--------------------\n");
|
||||
lines = (colors < 16) ? colors : 16;
|
||||
for (line = 0; line < lines; line++)
|
||||
{
|
||||
str_line[0] = '\0';
|
||||
for (col = 0; col < 16; col++)
|
||||
{
|
||||
color = (col * 16) + line;
|
||||
if (color < colors)
|
||||
{
|
||||
snprintf (str_color, sizeof (str_color),
|
||||
"\33[0;38;5;%dm %03d ", color, color);
|
||||
strcat (str_line, str_color);
|
||||
}
|
||||
}
|
||||
printf ("%s\n", str_line);
|
||||
}
|
||||
printf ("\33[0m");
|
||||
printf ("------------------------------------------------------------"
|
||||
"--------------------\n");
|
||||
}
|
||||
printf ("\n");
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_add_alias_cb: add an alias in hashtable with aliases
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_palette_add_alias_cb (void *data,
|
||||
struct t_hashtable *hashtable,
|
||||
const void *key, const void *value)
|
||||
{
|
||||
struct t_gui_color_palette *color_palette;
|
||||
char *error;
|
||||
int number;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) hashtable;
|
||||
|
||||
color_palette = (struct t_gui_color_palette *)value;
|
||||
|
||||
if (color_palette && color_palette->alias)
|
||||
{
|
||||
error = NULL;
|
||||
number = (int)strtol ((char *)key, &error, 10);
|
||||
if (error && !error[0])
|
||||
{
|
||||
hashtable_set (gui_color_hash_palette_alias,
|
||||
color_palette->alias,
|
||||
&number);
|
||||
}
|
||||
weelist_add (gui_color_list_with_alias, color_palette->alias,
|
||||
WEECHAT_LIST_POS_END, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_build_aliases: build aliases for palette
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_palette_build_aliases ()
|
||||
{
|
||||
int i;
|
||||
|
||||
if (!gui_color_hash_palette_alias || !gui_color_list_with_alias
|
||||
|| !gui_color_hash_palette_color)
|
||||
{
|
||||
gui_color_palette_alloc ();
|
||||
}
|
||||
|
||||
hashtable_remove_all (gui_color_hash_palette_alias);
|
||||
weelist_remove_all (gui_color_list_with_alias);
|
||||
for (i = 0; i < GUI_CURSES_NUM_WEECHAT_COLORS; i++)
|
||||
{
|
||||
weelist_add (gui_color_list_with_alias,
|
||||
gui_weechat_colors[i].string,
|
||||
WEECHAT_LIST_POS_END,
|
||||
NULL);
|
||||
}
|
||||
hashtable_map (gui_color_hash_palette_color,
|
||||
&gui_color_palette_add_alias_cb, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_new: create a new color in palette
|
||||
*/
|
||||
|
||||
struct t_gui_color_palette *
|
||||
gui_color_palette_new (int number, const char *value)
|
||||
{
|
||||
struct t_gui_color_palette *new_color_palette;
|
||||
char *pos_semicolon, *ptr_value, *pos, *pos2, *error1, *error2, *error3;
|
||||
char *str_alias, *str_pair, *str_rgb, str_number[64];
|
||||
int fg, bg, r, g, b;
|
||||
|
||||
if (!value)
|
||||
return NULL;
|
||||
|
||||
new_color_palette = malloc (sizeof (*new_color_palette));
|
||||
if (new_color_palette)
|
||||
{
|
||||
new_color_palette->alias = NULL;
|
||||
new_color_palette->foreground = number;
|
||||
new_color_palette->background = -1;
|
||||
new_color_palette->r = -1;
|
||||
new_color_palette->g = -1;
|
||||
new_color_palette->b = -1;
|
||||
|
||||
str_alias = NULL;
|
||||
str_pair = NULL;
|
||||
str_rgb = NULL;
|
||||
|
||||
pos_semicolon = strchr (value, ';');
|
||||
if (pos_semicolon)
|
||||
{
|
||||
if (pos_semicolon > value)
|
||||
{
|
||||
str_alias = string_strndup (value, pos_semicolon - value);
|
||||
}
|
||||
ptr_value = pos_semicolon + 1;
|
||||
if (ptr_value[0])
|
||||
{
|
||||
pos_semicolon = strchr (ptr_value, ';');
|
||||
if (pos_semicolon)
|
||||
{
|
||||
if (pos_semicolon > ptr_value)
|
||||
{
|
||||
str_pair = string_strndup (ptr_value,
|
||||
pos_semicolon - ptr_value);
|
||||
}
|
||||
ptr_value = pos_semicolon + 1;
|
||||
if (ptr_value[0])
|
||||
{
|
||||
str_rgb = strdup (ptr_value);
|
||||
}
|
||||
}
|
||||
else
|
||||
str_pair = strdup (ptr_value);
|
||||
}
|
||||
}
|
||||
else if (value[0])
|
||||
{
|
||||
str_alias = strdup (value);
|
||||
}
|
||||
|
||||
if (str_alias)
|
||||
{
|
||||
new_color_palette->alias = strdup (str_alias);
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf (str_number, sizeof (str_number), "%d", number);
|
||||
new_color_palette->alias = strdup (str_number);
|
||||
}
|
||||
|
||||
if (str_pair)
|
||||
{
|
||||
pos = strchr (str_pair, ',');
|
||||
if (pos)
|
||||
{
|
||||
pos[0] = '\0';
|
||||
error1 = NULL;
|
||||
fg = (int)strtol (str_pair, &error1, 10);
|
||||
error2 = NULL;
|
||||
bg = (int)strtol (pos + 1, &error2, 10);
|
||||
if (error1 && !error1[0] && error2 && !error2[0]
|
||||
&& (fg >= -1) && (bg >= -1))
|
||||
{
|
||||
new_color_palette->foreground = fg;
|
||||
new_color_palette->background = bg;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (str_rgb)
|
||||
{
|
||||
pos = strchr (str_rgb, '/');
|
||||
if (pos)
|
||||
{
|
||||
pos[0] = '\0';
|
||||
pos2 = strchr (pos + 1, '/');
|
||||
if (pos2)
|
||||
{
|
||||
pos2[0] = '\0';
|
||||
error1 = NULL;
|
||||
r = (int)strtol (str_rgb, &error1, 10);
|
||||
error2 = NULL;
|
||||
g = (int)strtol (pos + 1, &error2, 10);
|
||||
error3 = NULL;
|
||||
b = (int)strtol (pos2 + 1, &error3, 10);
|
||||
if (error1 && !error1[0] && error2 && !error2[0]
|
||||
&& error3 && !error3[0]
|
||||
&& (r >= 0) && (r <= 1000)
|
||||
&& (g >= 0) && (g <= 1000)
|
||||
&& (b >= 0) && (b <= 1000))
|
||||
{
|
||||
new_color_palette->r = r;
|
||||
new_color_palette->g = g;
|
||||
new_color_palette->b = b;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (str_alias)
|
||||
free (str_alias);
|
||||
if (str_pair)
|
||||
free (str_pair);
|
||||
if (str_rgb)
|
||||
free (str_rgb);
|
||||
}
|
||||
|
||||
return new_color_palette;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_free: free a color in palette
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_palette_free (struct t_gui_color_palette *color_palette)
|
||||
{
|
||||
if (!color_palette)
|
||||
return;
|
||||
|
||||
if (color_palette->alias)
|
||||
free (color_palette->alias);
|
||||
|
||||
free (color_palette);
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -235,9 +235,9 @@ gui_window_reset_style (WINDOW *window, int num_color)
|
||||
window_current_style_attr = 0;
|
||||
window_current_color_attr = 0;
|
||||
|
||||
wattroff (window, A_BOLD | A_UNDERLINE | A_REVERSE);
|
||||
wattron (window, COLOR_PAIR(gui_color_get_pair (num_color)) |
|
||||
gui_color[num_color]->attributes);
|
||||
wattroff (window, A_BOLD | A_UNDERLINE | A_REVERSE);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -296,9 +296,17 @@ gui_window_set_weechat_color (WINDOW *window, int num_color)
|
||||
{
|
||||
gui_window_reset_style (window, num_color);
|
||||
wattron (window, gui_color[num_color]->attributes);
|
||||
gui_window_set_color (window,
|
||||
gui_color[num_color]->foreground,
|
||||
gui_color[num_color]->background);
|
||||
if ((gui_color[num_color]->foreground > 0)
|
||||
&& (gui_color[num_color]->foreground & GUI_COLOR_PAIR_FLAG))
|
||||
{
|
||||
wattron (window, COLOR_PAIR(gui_color[num_color]->foreground & GUI_COLOR_PAIR_MASK));
|
||||
}
|
||||
else
|
||||
{
|
||||
gui_window_set_color (window,
|
||||
gui_color[num_color]->foreground,
|
||||
gui_color[num_color]->background);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -322,6 +330,21 @@ gui_window_set_custom_color_fg_bg (WINDOW *window, int fg, int bg)
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_window_set_custom_color_pair: set a custom color for a window
|
||||
* (pair number)
|
||||
*/
|
||||
|
||||
void
|
||||
gui_window_set_custom_color_pair (WINDOW *window, int pair)
|
||||
{
|
||||
if ((pair >= 0) && (pair <= gui_color_last_pair))
|
||||
{
|
||||
gui_window_remove_color_style (window, A_BOLD);
|
||||
wattron (window, COLOR_PAIR(pair));
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_window_set_custom_color_fg: set a custom color for a window
|
||||
* (foreground only)
|
||||
@@ -331,15 +354,22 @@ void
|
||||
gui_window_set_custom_color_fg (WINDOW *window, int fg)
|
||||
{
|
||||
int current_bg;
|
||||
|
||||
if ((fg >= 0) && (fg < GUI_CURSES_NUM_WEECHAT_COLORS))
|
||||
|
||||
if (fg >= 0)
|
||||
{
|
||||
current_bg = window_current_style_bg;
|
||||
gui_window_remove_color_style (window, A_BOLD);
|
||||
gui_window_set_color_style (window, gui_weechat_colors[fg].attributes);
|
||||
gui_window_set_color (window,
|
||||
gui_weechat_colors[fg].foreground,
|
||||
current_bg);
|
||||
if (fg & GUI_COLOR_PAIR_FLAG)
|
||||
{
|
||||
gui_window_set_custom_color_pair (window, fg & GUI_COLOR_PAIR_MASK);
|
||||
}
|
||||
else if (fg < GUI_CURSES_NUM_WEECHAT_COLORS)
|
||||
{
|
||||
current_bg = window_current_style_bg;
|
||||
gui_window_remove_color_style (window, A_BOLD);
|
||||
gui_window_set_color_style (window, gui_weechat_colors[fg].attributes);
|
||||
gui_window_set_color (window,
|
||||
gui_weechat_colors[fg].foreground,
|
||||
current_bg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -353,14 +383,21 @@ gui_window_set_custom_color_bg (WINDOW *window, int bg)
|
||||
{
|
||||
int current_attr, current_fg;
|
||||
|
||||
if ((bg >= 0) && (bg < GUI_CURSES_NUM_WEECHAT_COLORS))
|
||||
if (bg >= 0)
|
||||
{
|
||||
current_attr = window_current_style_attr;
|
||||
current_fg = window_current_style_fg;
|
||||
gui_window_set_color_style (window, current_attr);
|
||||
gui_window_set_color (window, current_fg,
|
||||
(gui_color_num_bg > 8) ?
|
||||
gui_weechat_colors[bg].background : gui_weechat_colors[bg].foreground);
|
||||
if (bg & GUI_COLOR_PAIR_FLAG)
|
||||
{
|
||||
gui_window_set_custom_color_pair (window, bg & GUI_COLOR_PAIR_MASK);
|
||||
}
|
||||
else if (bg < GUI_CURSES_NUM_WEECHAT_COLORS)
|
||||
{
|
||||
current_attr = window_current_style_attr;
|
||||
current_fg = window_current_style_fg;
|
||||
gui_window_set_color_style (window, current_attr);
|
||||
gui_window_set_color (window, current_fg,
|
||||
(gui_color_num_bg > 8) ?
|
||||
gui_weechat_colors[bg].background : gui_weechat_colors[bg].foreground);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -86,6 +86,7 @@ extern void gui_window_remove_color_style (WINDOW *window, int style);
|
||||
extern void gui_window_set_color (WINDOW *window, int fg, int bg);
|
||||
extern void gui_window_set_weechat_color (WINDOW *window, int num_color);
|
||||
extern void gui_window_set_custom_color_fg_bg (WINDOW *window, int fg, int bg);
|
||||
extern void gui_window_set_custom_color_pair (WINDOW *window, int pair);
|
||||
extern void gui_window_set_custom_color_fg (WINDOW *window, int fg);
|
||||
extern void gui_window_set_custom_color_bg (WINDOW *window, int bg);
|
||||
extern void gui_window_clrtoeol_with_current_bg (WINDOW *window);
|
||||
|
||||
@@ -101,6 +101,26 @@ gui_color_assign (int *color, const char *color_name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_assign_by_diff: assign color by difference
|
||||
* It is called when a color option is
|
||||
* set with value ++X or --X, to search
|
||||
* another color (for example ++1 is
|
||||
* next color/alias in list)
|
||||
* return 1 if ok, 0 if error
|
||||
*/
|
||||
|
||||
int
|
||||
gui_color_assign_by_diff (int *color, const char *color_name, int diff)
|
||||
{
|
||||
/* TODO: write this function for Gtk */
|
||||
(void) color;
|
||||
(void) color_name;
|
||||
(void) diff;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_get_number: get number of available colors
|
||||
*/
|
||||
@@ -147,6 +167,17 @@ gui_color_get_pair (int num_color)
|
||||
return (bg * 8) + fg;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_init_pair: init a color pair
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_init_pair (int number)
|
||||
{
|
||||
/* This function does nothing in Gtk GUI */
|
||||
(void) number;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_init_pairs: init color pairs
|
||||
*/
|
||||
@@ -215,6 +246,53 @@ gui_color_init ()
|
||||
gui_color_init_weechat ();
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_display_terminal_colors: display terminal colors
|
||||
* This is called by command line option
|
||||
* "-c" / "--colors"
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_display_terminal_colors ()
|
||||
{
|
||||
/* This function does nothing in Gtk GUI */
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_build_aliases: build aliases for palette
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_palette_build_aliases ()
|
||||
{
|
||||
/* This function does nothing in Gtk GUI */
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_new: create a new color in palette
|
||||
*/
|
||||
|
||||
struct t_gui_color_palette *
|
||||
gui_color_palette_new (int number, const char *value)
|
||||
{
|
||||
/* This function does nothing in Gtk GUI */
|
||||
(void) number;
|
||||
(void) value;
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_free: free a color in palette
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_palette_free (struct t_gui_color_palette *color_palette)
|
||||
{
|
||||
/* This function does nothing in Gtk GUI */
|
||||
(void) color_palette;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_end: end GUI colors
|
||||
*/
|
||||
|
||||
+32
-10
@@ -377,16 +377,38 @@ gui_bar_item_get_value (const char *name, struct t_gui_bar *bar,
|
||||
bar_color[0] = '\0';
|
||||
if (prefix || suffix)
|
||||
{
|
||||
snprintf (delimiter_color, sizeof (delimiter_color),
|
||||
"%c%c%02d",
|
||||
GUI_COLOR_COLOR_CHAR,
|
||||
GUI_COLOR_FG_CHAR,
|
||||
CONFIG_COLOR(bar->options[GUI_BAR_OPTION_COLOR_DELIM]));
|
||||
snprintf (bar_color, sizeof (bar_color),
|
||||
"%c%c%02d",
|
||||
GUI_COLOR_COLOR_CHAR,
|
||||
GUI_COLOR_FG_CHAR,
|
||||
CONFIG_COLOR(bar->options[GUI_BAR_OPTION_COLOR_FG]));
|
||||
if (CONFIG_COLOR(bar->options[GUI_BAR_OPTION_COLOR_DELIM]) & GUI_COLOR_PAIR_FLAG)
|
||||
{
|
||||
snprintf (delimiter_color, sizeof (delimiter_color),
|
||||
"%c%c%05d",
|
||||
GUI_COLOR_COLOR_CHAR,
|
||||
GUI_COLOR_PAIR_CHAR,
|
||||
CONFIG_COLOR(bar->options[GUI_BAR_OPTION_COLOR_DELIM]) & GUI_COLOR_PAIR_MASK);
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf (delimiter_color, sizeof (delimiter_color),
|
||||
"%c%c%02d",
|
||||
GUI_COLOR_COLOR_CHAR,
|
||||
GUI_COLOR_FG_CHAR,
|
||||
CONFIG_COLOR(bar->options[GUI_BAR_OPTION_COLOR_DELIM]));
|
||||
}
|
||||
if (CONFIG_COLOR(bar->options[GUI_BAR_OPTION_COLOR_FG]) & GUI_COLOR_PAIR_FLAG)
|
||||
{
|
||||
snprintf (bar_color, sizeof (bar_color),
|
||||
"%c%c%05d",
|
||||
GUI_COLOR_COLOR_CHAR,
|
||||
GUI_COLOR_PAIR_CHAR,
|
||||
CONFIG_COLOR(bar->options[GUI_BAR_OPTION_COLOR_FG]) & GUI_COLOR_PAIR_MASK);
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf (bar_color, sizeof (bar_color),
|
||||
"%c%c%02d",
|
||||
GUI_COLOR_COLOR_CHAR,
|
||||
GUI_COLOR_FG_CHAR,
|
||||
CONFIG_COLOR(bar->options[GUI_BAR_OPTION_COLOR_FG]));
|
||||
}
|
||||
}
|
||||
snprintf (result, length,
|
||||
"%s%s%s%s%s%s",
|
||||
|
||||
+237
-56
@@ -36,13 +36,22 @@
|
||||
|
||||
#include "../core/weechat.h"
|
||||
#include "../core/wee-config.h"
|
||||
#include "../core/wee-hashtable.h"
|
||||
#include "../core/wee-list.h"
|
||||
#include "../core/wee-string.h"
|
||||
#include "../core/wee-utf8.h"
|
||||
#include "../plugins/plugin.h"
|
||||
#include "gui-color.h"
|
||||
#include "gui-window.h"
|
||||
|
||||
|
||||
struct t_gui_color *gui_color[GUI_COLOR_NUM_COLORS]; /* GUI colors */
|
||||
|
||||
/* palette colors and aliases */
|
||||
struct t_hashtable *gui_color_hash_palette_color = NULL;
|
||||
struct t_hashtable *gui_color_hash_palette_alias = NULL;
|
||||
struct t_weelist *gui_color_list_with_alias = NULL;
|
||||
|
||||
|
||||
/*
|
||||
* gui_color_search_config: search a color with configuration option name
|
||||
@@ -52,27 +61,21 @@ struct t_gui_color *gui_color[GUI_COLOR_NUM_COLORS]; /* GUI colors */
|
||||
const char *
|
||||
gui_color_search_config (const char *color_name)
|
||||
{
|
||||
struct t_config_section *ptr_section;
|
||||
struct t_config_option *ptr_option;
|
||||
|
||||
if (color_name)
|
||||
{
|
||||
ptr_section = config_file_search_section (weechat_config_file,
|
||||
"color");
|
||||
if (ptr_section)
|
||||
for (ptr_option = weechat_config_section_color->options;
|
||||
ptr_option; ptr_option = ptr_option->next_option)
|
||||
{
|
||||
for (ptr_option = ptr_section->options; ptr_option;
|
||||
ptr_option = ptr_option->next_option)
|
||||
if (string_strcasecmp (ptr_option->name, color_name) == 0)
|
||||
{
|
||||
if (string_strcasecmp (ptr_option->name, color_name) == 0)
|
||||
if (ptr_option->min < 0)
|
||||
{
|
||||
if (ptr_option->min < 0)
|
||||
{
|
||||
return gui_color_get_custom (
|
||||
gui_color_get_name (CONFIG_COLOR(ptr_option)));
|
||||
}
|
||||
return GUI_COLOR(ptr_option->min);
|
||||
return gui_color_get_custom (
|
||||
gui_color_get_name (CONFIG_COLOR(ptr_option)));
|
||||
}
|
||||
return GUI_COLOR(ptr_option->min);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -88,13 +91,13 @@ gui_color_search_config (const char *color_name)
|
||||
const char *
|
||||
gui_color_get_custom (const char *color_name)
|
||||
{
|
||||
int fg, bg;
|
||||
static char color[20][16];
|
||||
int fg, bg, pair;
|
||||
static char color[32][16];
|
||||
static int index_color = 0;
|
||||
char *pos_comma, *str_fg, *pos_bg;
|
||||
char *pos_comma, *str_fg, *pos_bg, *error;
|
||||
|
||||
/* attribute or other color name (GUI dependent) */
|
||||
index_color = (index_color + 1) % 20;
|
||||
index_color = (index_color + 1) % 32;
|
||||
color[index_color][0] = '\0';
|
||||
|
||||
if (!color_name || !color_name[0])
|
||||
@@ -189,55 +192,86 @@ gui_color_get_custom (const char *color_name)
|
||||
else
|
||||
{
|
||||
/* custom color name (GUI dependent) */
|
||||
pos_comma = strchr (color_name, ',');
|
||||
if (pos_comma)
|
||||
pair = gui_color_palette_get_alias (color_name);
|
||||
if (pair >= 0)
|
||||
{
|
||||
if (pos_comma == color_name)
|
||||
str_fg = NULL;
|
||||
else
|
||||
str_fg = string_strndup (color_name, pos_comma - color_name);
|
||||
pos_bg = pos_comma + 1;
|
||||
snprintf (color[index_color], sizeof (color[index_color]),
|
||||
"%s%s%05d",
|
||||
GUI_COLOR_COLOR_STR,
|
||||
GUI_COLOR_PAIR_STR,
|
||||
pair);
|
||||
}
|
||||
else
|
||||
{
|
||||
str_fg = strdup (color_name);
|
||||
pos_bg = NULL;
|
||||
}
|
||||
|
||||
if (str_fg && pos_bg)
|
||||
{
|
||||
fg = gui_color_search (str_fg);
|
||||
bg = gui_color_search (pos_bg);
|
||||
if ((fg >= 0) && (bg >= 0))
|
||||
error = NULL;
|
||||
pair = (int)strtol (color_name, &error, 10);
|
||||
if (error && !error[0])
|
||||
{
|
||||
snprintf (color[index_color], sizeof (color[index_color]),
|
||||
"%s*%02d,%02d",
|
||||
GUI_COLOR_COLOR_STR, fg, bg);
|
||||
"%s%s%05d",
|
||||
GUI_COLOR_COLOR_STR,
|
||||
GUI_COLOR_PAIR_STR,
|
||||
pair);
|
||||
}
|
||||
}
|
||||
else if (str_fg && !pos_bg)
|
||||
{
|
||||
fg = gui_color_search (str_fg);
|
||||
if (fg >= 0)
|
||||
else
|
||||
{
|
||||
snprintf (color[index_color], sizeof (color[index_color]),
|
||||
"%sF%02d",
|
||||
GUI_COLOR_COLOR_STR, fg);
|
||||
pos_comma = strchr (color_name, ',');
|
||||
if (pos_comma)
|
||||
{
|
||||
if (pos_comma == color_name)
|
||||
str_fg = NULL;
|
||||
else
|
||||
str_fg = string_strndup (color_name, pos_comma - color_name);
|
||||
pos_bg = pos_comma + 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
str_fg = strdup (color_name);
|
||||
pos_bg = NULL;
|
||||
}
|
||||
|
||||
if (str_fg && pos_bg)
|
||||
{
|
||||
fg = gui_color_search (str_fg);
|
||||
bg = gui_color_search (pos_bg);
|
||||
if ((fg >= 0) && (bg >= 0))
|
||||
{
|
||||
snprintf (color[index_color], sizeof (color[index_color]),
|
||||
"%s%s%02d,%02d",
|
||||
GUI_COLOR_COLOR_STR,
|
||||
GUI_COLOR_FG_BG_STR,
|
||||
fg, bg);
|
||||
}
|
||||
}
|
||||
else if (str_fg && !pos_bg)
|
||||
{
|
||||
fg = gui_color_search (str_fg);
|
||||
if (fg >= 0)
|
||||
{
|
||||
snprintf (color[index_color], sizeof (color[index_color]),
|
||||
"%s%s%02d",
|
||||
GUI_COLOR_COLOR_STR,
|
||||
GUI_COLOR_FG_STR,
|
||||
fg);
|
||||
}
|
||||
}
|
||||
else if (!str_fg && pos_bg)
|
||||
{
|
||||
bg = gui_color_search (pos_bg);
|
||||
if (bg >= 0)
|
||||
{
|
||||
snprintf (color[index_color], sizeof (color[index_color]),
|
||||
"%s%s%02d",
|
||||
GUI_COLOR_COLOR_STR,
|
||||
GUI_COLOR_BG_STR,
|
||||
bg);
|
||||
}
|
||||
}
|
||||
|
||||
if (str_fg)
|
||||
free (str_fg);
|
||||
}
|
||||
}
|
||||
else if (!str_fg && pos_bg)
|
||||
{
|
||||
bg = gui_color_search (pos_bg);
|
||||
if (bg >= 0)
|
||||
{
|
||||
snprintf (color[index_color], sizeof (color[index_color]),
|
||||
"%sB%02d",
|
||||
GUI_COLOR_COLOR_STR, bg);
|
||||
}
|
||||
}
|
||||
|
||||
if (str_fg)
|
||||
free (str_fg);
|
||||
}
|
||||
|
||||
return color[index_color];
|
||||
@@ -288,6 +322,12 @@ gui_color_decode (const char *string, const char *replacement)
|
||||
&& ptr_string[4] && ptr_string[5])
|
||||
ptr_string += 6;
|
||||
break;
|
||||
case GUI_COLOR_PAIR_CHAR:
|
||||
if ((isdigit (ptr_string[1])) && (isdigit (ptr_string[2]))
|
||||
&& (isdigit (ptr_string[3])) && (isdigit (ptr_string[4]))
|
||||
&& (isdigit (ptr_string[5])))
|
||||
ptr_string += 6;
|
||||
break;
|
||||
case GUI_COLOR_BAR_CHAR:
|
||||
ptr_string++;
|
||||
switch (ptr_string[0])
|
||||
@@ -438,3 +478,144 @@ gui_color_free (struct t_gui_color *color)
|
||||
free (color);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_alloc: allocate hashtables and lists for palette
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_palette_alloc ()
|
||||
{
|
||||
if (!gui_color_hash_palette_color)
|
||||
{
|
||||
gui_color_hash_palette_color = hashtable_new (16,
|
||||
WEECHAT_HASHTABLE_STRING,
|
||||
WEECHAT_HASHTABLE_POINTER,
|
||||
NULL,
|
||||
NULL);
|
||||
}
|
||||
if (!gui_color_hash_palette_alias)
|
||||
{
|
||||
gui_color_hash_palette_alias = hashtable_new (16,
|
||||
WEECHAT_HASHTABLE_STRING,
|
||||
WEECHAT_HASHTABLE_INTEGER,
|
||||
NULL,
|
||||
NULL);
|
||||
}
|
||||
if (!gui_color_list_with_alias)
|
||||
{
|
||||
gui_color_list_with_alias = weelist_new ();
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_get_alias: get color pair number with alias
|
||||
* return -1 if alias is not found
|
||||
*/
|
||||
|
||||
int
|
||||
gui_color_palette_get_alias (const char *alias)
|
||||
{
|
||||
int *ptr_number;
|
||||
|
||||
if (gui_color_hash_palette_alias)
|
||||
{
|
||||
ptr_number = hashtable_get (gui_color_hash_palette_alias, alias);
|
||||
if (ptr_number)
|
||||
return *ptr_number;
|
||||
}
|
||||
|
||||
/* alias not found */
|
||||
return -1;
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_get: get a color palette with number
|
||||
*/
|
||||
|
||||
struct t_gui_color_palette *
|
||||
gui_color_palette_get (int number)
|
||||
{
|
||||
char str_number[64];
|
||||
|
||||
snprintf (str_number, sizeof (str_number), "%d", number);
|
||||
return hashtable_get (gui_color_hash_palette_color,
|
||||
str_number);
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_add: add a color in palette
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_palette_add (int number, const char *value)
|
||||
{
|
||||
struct t_gui_color_palette *new_color_palette, *ptr_color_palette;
|
||||
char str_number[64];
|
||||
|
||||
gui_color_palette_alloc ();
|
||||
|
||||
new_color_palette = gui_color_palette_new (number, value);
|
||||
if (!new_color_palette)
|
||||
return;
|
||||
|
||||
snprintf (str_number, sizeof (str_number), "%d", number);
|
||||
ptr_color_palette = hashtable_get (gui_color_hash_palette_color,
|
||||
str_number);
|
||||
if (ptr_color_palette)
|
||||
gui_color_palette_free (ptr_color_palette);
|
||||
hashtable_set (gui_color_hash_palette_color,
|
||||
str_number, new_color_palette);
|
||||
gui_color_palette_build_aliases ();
|
||||
|
||||
if (gui_init_ok)
|
||||
gui_color_init_pair (number);
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_remove: remove a color in palette
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_palette_remove (int number)
|
||||
{
|
||||
struct t_gui_color_palette *ptr_color_palette;
|
||||
char str_number[64];
|
||||
|
||||
gui_color_palette_alloc ();
|
||||
|
||||
snprintf (str_number, sizeof (str_number), "%d", number);
|
||||
ptr_color_palette = hashtable_get (gui_color_hash_palette_color,
|
||||
str_number);
|
||||
if (ptr_color_palette)
|
||||
{
|
||||
gui_color_palette_free (ptr_color_palette);
|
||||
hashtable_remove (gui_color_hash_palette_color, str_number);
|
||||
gui_color_palette_build_aliases ();
|
||||
if (gui_init_ok)
|
||||
gui_color_init_pair (number);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* gui_color_palette_change: change a color in palette
|
||||
*/
|
||||
|
||||
void
|
||||
gui_color_palette_change (int number, const char *value)
|
||||
{
|
||||
struct t_gui_color_palette *ptr_color_palette;
|
||||
char str_number[64];
|
||||
|
||||
gui_color_palette_alloc ();
|
||||
|
||||
snprintf (str_number, sizeof (str_number), "%d", number);
|
||||
ptr_color_palette = hashtable_get (gui_color_hash_palette_color,
|
||||
str_number);
|
||||
if (ptr_color_palette)
|
||||
{
|
||||
gui_color_palette_free (ptr_color_palette);
|
||||
hashtable_remove (gui_color_hash_palette_color, str_number);
|
||||
gui_color_palette_add (number, value);
|
||||
}
|
||||
}
|
||||
|
||||
+46
-12
@@ -20,8 +20,6 @@
|
||||
#ifndef __WEECHAT_GUI_COLOR_H
|
||||
#define __WEECHAT_GUI_COLOR_H 1
|
||||
|
||||
#define GUI_COLOR_NICK_NUMBER 10
|
||||
|
||||
enum t_gui_color_enum
|
||||
{
|
||||
GUI_COLOR_SEPARATOR = 0,
|
||||
@@ -42,16 +40,20 @@ enum t_gui_color_enum
|
||||
GUI_COLOR_CHAT_NICK,
|
||||
GUI_COLOR_CHAT_NICK_SELF,
|
||||
GUI_COLOR_CHAT_NICK_OTHER,
|
||||
GUI_COLOR_CHAT_NICK1,
|
||||
GUI_COLOR_CHAT_NICK2,
|
||||
GUI_COLOR_CHAT_NICK3,
|
||||
GUI_COLOR_CHAT_NICK4,
|
||||
GUI_COLOR_CHAT_NICK5,
|
||||
GUI_COLOR_CHAT_NICK6,
|
||||
GUI_COLOR_CHAT_NICK7,
|
||||
GUI_COLOR_CHAT_NICK8,
|
||||
GUI_COLOR_CHAT_NICK9,
|
||||
GUI_COLOR_CHAT_NICK10,
|
||||
/*
|
||||
* following obsolete colors are kept here for compatibility
|
||||
* with WeeChat <= 0.3.3
|
||||
*/
|
||||
GUI_COLOR_CHAT_NICK1_OBSOLETE, /* not used any more since WeeChat 0.3.4 */
|
||||
GUI_COLOR_CHAT_NICK2_OBSOLETE, /* not used any more since WeeChat 0.3.4 */
|
||||
GUI_COLOR_CHAT_NICK3_OBSOLETE, /* not used any more since WeeChat 0.3.4 */
|
||||
GUI_COLOR_CHAT_NICK4_OBSOLETE, /* not used any more since WeeChat 0.3.4 */
|
||||
GUI_COLOR_CHAT_NICK5_OBSOLETE, /* not used any more since WeeChat 0.3.4 */
|
||||
GUI_COLOR_CHAT_NICK6_OBSOLETE, /* not used any more since WeeChat 0.3.4 */
|
||||
GUI_COLOR_CHAT_NICK7_OBSOLETE, /* not used any more since WeeChat 0.3.4 */
|
||||
GUI_COLOR_CHAT_NICK8_OBSOLETE, /* not used any more since WeeChat 0.3.4 */
|
||||
GUI_COLOR_CHAT_NICK9_OBSOLETE, /* not used any more since WeeChat 0.3.4 */
|
||||
GUI_COLOR_CHAT_NICK10_OBSOLETE, /* not used any more since WeeChat 0.3.4 */
|
||||
GUI_COLOR_CHAT_HOST,
|
||||
GUI_COLOR_CHAT_DELIMITERS,
|
||||
GUI_COLOR_CHAT_HIGHLIGHT,
|
||||
@@ -97,6 +99,8 @@ enum t_gui_color_enum
|
||||
#define GUI_COLOR_BG_STR "B"
|
||||
#define GUI_COLOR_FG_BG_CHAR '*'
|
||||
#define GUI_COLOR_FG_BG_STR "*"
|
||||
#define GUI_COLOR_PAIR_CHAR '@'
|
||||
#define GUI_COLOR_PAIR_STR "@"
|
||||
#define GUI_COLOR_BAR_CHAR 'b'
|
||||
#define GUI_COLOR_BAR_STR "b"
|
||||
#define GUI_COLOR_BAR_FG_CHAR 'F'
|
||||
@@ -112,6 +116,9 @@ enum t_gui_color_enum
|
||||
#define GUI_COLOR_BAR_MOVE_CURSOR_CHAR '#'
|
||||
#define GUI_COLOR_BAR_MOVE_CURSOR_STR "#"
|
||||
|
||||
#define GUI_COLOR_PAIR_FLAG 0x10000
|
||||
#define GUI_COLOR_PAIR_MASK 0xFFFF
|
||||
|
||||
/* color structure */
|
||||
|
||||
struct t_gui_color
|
||||
@@ -122,9 +129,22 @@ struct t_gui_color
|
||||
char *string; /* WeeChat color: "\x19??", ?? is #color*/
|
||||
};
|
||||
|
||||
/* custom color in palette */
|
||||
|
||||
struct t_gui_color_palette
|
||||
{
|
||||
char *alias; /* alias name for this color pair */
|
||||
int foreground; /* foreground color */
|
||||
int background; /* background color */
|
||||
int r, g, b; /* red/green/blue values for color */
|
||||
};
|
||||
|
||||
/* color variables */
|
||||
|
||||
extern struct t_gui_color *gui_color[];
|
||||
extern struct t_hashtable *gui_color_hash_palette_color;
|
||||
extern struct t_hashtable *gui_color_hash_palette_alias;
|
||||
extern struct t_weelist *gui_color_list_with_alias;
|
||||
|
||||
/* color functions */
|
||||
|
||||
@@ -133,14 +153,28 @@ extern const char *gui_color_get_custom (const char *color_name);
|
||||
extern char *gui_color_decode (const char *string, const char *replacement);
|
||||
extern char *gui_color_string_replace_colors (const char *string);
|
||||
extern void gui_color_free (struct t_gui_color *color);
|
||||
extern void gui_color_palette_alloc ();
|
||||
extern int gui_color_palette_get_alias (const char *alias);
|
||||
extern struct t_gui_color_palette *gui_color_palette_get (int number);
|
||||
extern void gui_color_palette_add (int number, const char *value);
|
||||
extern void gui_color_palette_remove (int number);
|
||||
extern void gui_color_palette_change (int number, const char *value);
|
||||
|
||||
/* color functions (GUI dependent) */
|
||||
|
||||
extern int gui_color_search (const char *color_name);
|
||||
extern int gui_color_assign (int *color, char const *color_name);
|
||||
extern int gui_color_assign_by_diff (int *color, const char *color_name,
|
||||
int diff);
|
||||
extern int gui_color_get_number ();
|
||||
extern const char *gui_color_get_name (int num_color);
|
||||
extern void gui_color_init_pair (int number);
|
||||
extern void gui_color_init_pairs ();
|
||||
extern void gui_color_init_weechat ();
|
||||
extern void gui_color_display_terminal_colors ();
|
||||
extern void gui_color_palette_build_aliases ();
|
||||
extern struct t_gui_color_palette *gui_color_palette_new (int number,
|
||||
const char *value);
|
||||
extern void gui_color_palette_free (struct t_gui_color_palette *color_palette);
|
||||
|
||||
#endif /* __WEECHAT_GUI_COLOR_H */
|
||||
|
||||
@@ -68,13 +68,12 @@ demo_printf_command_cb (void *data, struct t_gui_buffer *buffer, int argc,
|
||||
_("%sdemo message with error prefix"),
|
||||
weechat_prefix ("error"));
|
||||
weechat_printf (buffer,
|
||||
_("colors: %s buffer %s nick1 %s nick2 %s nick3 "
|
||||
"%s nick4"),
|
||||
"%s: %s chat_buffer %s chat_server "
|
||||
"%s chat_host",
|
||||
_("colors"),
|
||||
weechat_color ("chat_buffer"),
|
||||
weechat_color ("chat_nick_color1"),
|
||||
weechat_color ("chat_nick_color2"),
|
||||
weechat_color ("chat_nick_color3"),
|
||||
weechat_color ("chat_nick_color4"));
|
||||
weechat_color ("chat_server"),
|
||||
weechat_color ("chat_host"));
|
||||
}
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
|
||||
@@ -126,7 +126,9 @@ struct t_config_option *irc_config_network_send_unknown_commands;
|
||||
|
||||
struct t_config_option *irc_config_server_default[IRC_SERVER_NUM_OPTIONS];
|
||||
|
||||
struct t_hook *hook_config_color_nicks_number = NULL;
|
||||
struct t_hook *irc_config_hook_config_nick_colors = NULL;
|
||||
char **irc_config_nick_colors = NULL;
|
||||
int irc_config_num_nick_colors = 0;
|
||||
struct t_hashtable *irc_config_hashtable_nick_color_force = NULL;
|
||||
|
||||
int irc_config_write_temp_servers = 0;
|
||||
@@ -187,20 +189,41 @@ irc_config_compute_nick_colors ()
|
||||
}
|
||||
|
||||
/*
|
||||
* irc_config_change_look_color_nicks_number: called when the
|
||||
* "weechat.look.color_nicks_number"
|
||||
* option is changed
|
||||
* irc_config_set_nick_colors: set nick colors using option
|
||||
* "weechat.color.chat_nick_colors"
|
||||
*/
|
||||
|
||||
void
|
||||
irc_config_set_nick_colors ()
|
||||
{
|
||||
if (irc_config_nick_colors)
|
||||
{
|
||||
weechat_string_free_split (irc_config_nick_colors);
|
||||
irc_config_nick_colors = NULL;
|
||||
irc_config_num_nick_colors = 0;
|
||||
}
|
||||
|
||||
irc_config_nick_colors =
|
||||
weechat_string_split (weechat_config_string (weechat_config_get ("weechat.color.chat_nick_colors")),
|
||||
",", 0, 0,
|
||||
&irc_config_num_nick_colors);
|
||||
}
|
||||
|
||||
/*
|
||||
* irc_config_change_nick_colors_cb: callback called when option
|
||||
* "weechat.color.chat_nick_colors" is changed
|
||||
*/
|
||||
|
||||
int
|
||||
irc_config_change_look_color_nicks_number (void *data, const char *option,
|
||||
const char *value)
|
||||
irc_config_change_nick_colors_cb (void *data, const char *option,
|
||||
const char *value)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) data;
|
||||
(void) option;
|
||||
(void) value;
|
||||
|
||||
irc_config_set_nick_colors ();
|
||||
irc_config_compute_nick_colors ();
|
||||
|
||||
return WEECHAT_RC_OK;
|
||||
@@ -2254,8 +2277,8 @@ irc_config_init ()
|
||||
}
|
||||
irc_config_section_server = ptr_section;
|
||||
|
||||
hook_config_color_nicks_number = weechat_hook_config ("weechat.look.color_nicks_number",
|
||||
&irc_config_change_look_color_nicks_number, NULL);
|
||||
irc_config_hook_config_nick_colors = weechat_hook_config ("weechat.color.chat_nick_colors",
|
||||
&irc_config_change_nick_colors_cb, NULL);
|
||||
|
||||
return 1;
|
||||
}
|
||||
@@ -2299,13 +2322,19 @@ void
|
||||
irc_config_free ()
|
||||
{
|
||||
weechat_config_free (irc_config_file);
|
||||
|
||||
if (hook_config_color_nicks_number)
|
||||
|
||||
if (irc_config_hook_config_nick_colors)
|
||||
{
|
||||
weechat_unhook (hook_config_color_nicks_number);
|
||||
hook_config_color_nicks_number = NULL;
|
||||
weechat_unhook (irc_config_hook_config_nick_colors);
|
||||
irc_config_hook_config_nick_colors = NULL;
|
||||
}
|
||||
|
||||
if (irc_config_nick_colors)
|
||||
{
|
||||
weechat_string_free_split (irc_config_nick_colors);
|
||||
irc_config_nick_colors = NULL;
|
||||
irc_config_num_nick_colors = 0;
|
||||
}
|
||||
|
||||
if (irc_config_hashtable_nick_color_force)
|
||||
{
|
||||
weechat_hashtable_free (irc_config_hashtable_nick_color_force);
|
||||
|
||||
@@ -145,8 +145,12 @@ extern struct t_config_option *irc_config_network_send_unknown_commands;
|
||||
|
||||
extern struct t_config_option *irc_config_server_default[];
|
||||
|
||||
extern char **irc_config_nick_colors;
|
||||
extern int irc_config_num_nick_colors;
|
||||
|
||||
extern struct t_hashtable *irc_config_hashtable_nick_color_force;
|
||||
|
||||
extern void irc_config_set_nick_colors ();
|
||||
extern void irc_config_server_change_cb (void *data,
|
||||
struct t_config_option *option);
|
||||
struct t_config_option *irc_config_server_new_option (struct t_config_file *config_file,
|
||||
|
||||
+25
-10
@@ -141,6 +141,12 @@ irc_nick_hash_color (const char *nickname)
|
||||
int color;
|
||||
const char *ptr_nick;
|
||||
|
||||
if (!irc_config_nick_colors)
|
||||
irc_config_set_nick_colors ();
|
||||
|
||||
if (irc_config_num_nick_colors == 0)
|
||||
return 0;
|
||||
|
||||
color = 0;
|
||||
ptr_nick = nickname;
|
||||
while (ptr_nick && ptr_nick[0])
|
||||
@@ -148,8 +154,8 @@ irc_nick_hash_color (const char *nickname)
|
||||
color += weechat_utf8_char_int (ptr_nick);
|
||||
ptr_nick = weechat_utf8_next_char (ptr_nick);
|
||||
}
|
||||
return (color %
|
||||
weechat_config_integer (weechat_config_get ("weechat.look.color_nicks_number")));
|
||||
|
||||
return (color % irc_config_num_nick_colors);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -161,9 +167,15 @@ const char *
|
||||
irc_nick_find_color (const char *nickname)
|
||||
{
|
||||
int color;
|
||||
char *nickname2, color_name[64];
|
||||
char *nickname2;
|
||||
const char *forced_color;
|
||||
|
||||
if (!irc_config_nick_colors)
|
||||
irc_config_set_nick_colors ();
|
||||
|
||||
if (irc_config_num_nick_colors == 0)
|
||||
return weechat_color ("default");
|
||||
|
||||
nickname2 = irc_nick_strdup_for_color (nickname);
|
||||
|
||||
/* look if color is forced */
|
||||
@@ -186,9 +198,7 @@ irc_nick_find_color (const char *nickname)
|
||||
free (nickname2);
|
||||
|
||||
/* return color */
|
||||
snprintf (color_name, sizeof (color_name),
|
||||
"chat_nick_color%02d", color + 1);
|
||||
return weechat_color (color_name);
|
||||
return weechat_color (irc_config_nick_colors[color]);
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -200,8 +210,15 @@ const char *
|
||||
irc_nick_find_color_name (const char *nickname)
|
||||
{
|
||||
int color;
|
||||
char *nickname2, color_name[128];
|
||||
char *nickname2;
|
||||
const char *forced_color;
|
||||
static char *default_color = "default";
|
||||
|
||||
if (!irc_config_nick_colors)
|
||||
irc_config_set_nick_colors ();
|
||||
|
||||
if (irc_config_num_nick_colors == 0)
|
||||
return default_color;
|
||||
|
||||
nickname2 = irc_nick_strdup_for_color (nickname);
|
||||
|
||||
@@ -221,9 +238,7 @@ irc_nick_find_color_name (const char *nickname)
|
||||
free (nickname2);
|
||||
|
||||
/* return color name */
|
||||
snprintf (color_name, sizeof (color_name),
|
||||
"weechat.color.chat_nick_color%02d", color + 1);
|
||||
return weechat_config_color (weechat_config_get (color_name));
|
||||
return irc_config_nick_colors[color];
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -46,6 +46,8 @@ struct t_irc_nick
|
||||
extern int irc_nick_valid (struct t_irc_channel *channel,
|
||||
struct t_irc_nick *nick);
|
||||
extern int irc_nick_is_nick (const char *string);
|
||||
extern int irc_nick_config_colors_cb (void *data, const char *option,
|
||||
const char *value);
|
||||
extern const char *irc_nick_find_color (const char *nickname);
|
||||
extern const char *irc_nick_find_color_name (const char *nickname);
|
||||
extern int irc_nick_is_op (struct t_irc_server *server,
|
||||
|
||||
@@ -631,7 +631,7 @@ irc_redirect_message_match_hash (struct t_irc_redirect *redirect,
|
||||
if (!arguments_argv || (*value >= arguments_argc))
|
||||
return 0;
|
||||
|
||||
if (strcmp (arguments_argv[*value], redirect->string) != 0)
|
||||
if (weechat_strcasecmp (arguments_argv[*value], redirect->string) != 0)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -1946,7 +1946,7 @@ irc_server_msgq_flush ()
|
||||
&channel, &arguments);
|
||||
|
||||
/* convert charset for message */
|
||||
if (channel)
|
||||
if (channel && irc_channel_is_channel (channel))
|
||||
{
|
||||
snprintf (modifier_data, sizeof (modifier_data),
|
||||
"%s.%s.%s",
|
||||
|
||||
@@ -511,7 +511,9 @@ plugin_load (const char *filename)
|
||||
new_plugin->list_new = &weelist_new;
|
||||
new_plugin->list_add = &weelist_add;
|
||||
new_plugin->list_search = &weelist_search;
|
||||
new_plugin->list_search_pos = &weelist_search_pos;
|
||||
new_plugin->list_casesearch = &weelist_casesearch;
|
||||
new_plugin->list_casesearch_pos = &weelist_casesearch_pos;
|
||||
new_plugin->list_get = &weelist_get;
|
||||
new_plugin->list_set = &weelist_set;
|
||||
new_plugin->list_next = &weelist_next;
|
||||
|
||||
@@ -816,6 +816,41 @@ weechat_lua_api_list_search (lua_State *L)
|
||||
LUA_RETURN_STRING_FREE(result);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_lua_api_list_search_pos: search position of a string in list
|
||||
*/
|
||||
|
||||
static int
|
||||
weechat_lua_api_list_search_pos (lua_State *L)
|
||||
{
|
||||
const char *weelist, *data;
|
||||
int n, pos;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script || !lua_current_script->name)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_NOT_INIT(LUA_CURRENT_SCRIPT_NAME, "list_search_pos");
|
||||
LUA_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
n = lua_gettop (lua_current_interpreter);
|
||||
|
||||
if (n < 2)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_WRONG_ARGS(LUA_CURRENT_SCRIPT_NAME, "list_search_pos");
|
||||
LUA_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
weelist = lua_tostring (lua_current_interpreter, -2);
|
||||
data = lua_tostring (lua_current_interpreter, -1);
|
||||
|
||||
pos = weechat_list_search_pos (script_str2ptr (weelist), data);
|
||||
|
||||
LUA_RETURN_INT(pos);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_lua_api_list_casesearch: search a string in list (ignore case)
|
||||
*/
|
||||
@@ -853,6 +888,42 @@ weechat_lua_api_list_casesearch (lua_State *L)
|
||||
LUA_RETURN_STRING_FREE(result);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_lua_api_list_casesearch_pos: search position of a string in list
|
||||
* (ignore case)
|
||||
*/
|
||||
|
||||
static int
|
||||
weechat_lua_api_list_casesearch_pos (lua_State *L)
|
||||
{
|
||||
const char *weelist, *data;
|
||||
int n, pos;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) L;
|
||||
|
||||
if (!lua_current_script || !lua_current_script->name)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_NOT_INIT(LUA_CURRENT_SCRIPT_NAME, "list_casesearch_pos");
|
||||
LUA_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
n = lua_gettop (lua_current_interpreter);
|
||||
|
||||
if (n < 2)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_WRONG_ARGS(LUA_CURRENT_SCRIPT_NAME, "list_casesearch_pos");
|
||||
LUA_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
weelist = lua_tostring (lua_current_interpreter, -2);
|
||||
data = lua_tostring (lua_current_interpreter, -1);
|
||||
|
||||
pos = weechat_list_casesearch_pos (script_str2ptr (weelist), data);
|
||||
|
||||
LUA_RETURN_INT(pos);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_lua_api_list_get: get item by position
|
||||
*/
|
||||
@@ -7612,7 +7683,9 @@ const struct luaL_reg weechat_lua_api_funcs[] = {
|
||||
{ "list_new", &weechat_lua_api_list_new },
|
||||
{ "list_add", &weechat_lua_api_list_add },
|
||||
{ "list_search", &weechat_lua_api_list_search },
|
||||
{ "list_search_pos", &weechat_lua_api_list_search_pos },
|
||||
{ "list_casesearch", &weechat_lua_api_list_casesearch },
|
||||
{ "list_casesearch_pos", &weechat_lua_api_list_casesearch_pos },
|
||||
{ "list_get", &weechat_lua_api_list_get },
|
||||
{ "list_set", &weechat_lua_api_list_set },
|
||||
{ "list_next", &weechat_lua_api_list_next },
|
||||
|
||||
@@ -728,6 +728,39 @@ XS (XS_weechat_api_list_search)
|
||||
PERL_RETURN_STRING_FREE(result);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat::list_search_pos: search position of a string in list
|
||||
*/
|
||||
|
||||
XS (XS_weechat_api_list_search_pos)
|
||||
{
|
||||
char *weelist, *data;
|
||||
int pos;
|
||||
dXSARGS;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script || !perl_current_script->name)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_NOT_INIT(PERL_CURRENT_SCRIPT_NAME, "list_search_pos");
|
||||
PERL_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
if (items < 2)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_WRONG_ARGS(PERL_CURRENT_SCRIPT_NAME, "list_search_pos");
|
||||
PERL_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
weelist = SvPV (ST (0), PL_na);
|
||||
data = SvPV (ST (1), PL_na);
|
||||
|
||||
pos = weechat_list_search_pos (script_str2ptr (weelist), data);
|
||||
|
||||
PERL_RETURN_INT(pos);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat::list_casesearch: search a string in list (ignore case)
|
||||
*/
|
||||
@@ -761,6 +794,40 @@ XS (XS_weechat_api_list_casesearch)
|
||||
PERL_RETURN_STRING_FREE(result);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat::list_casesearch_pos: search position of a string in list
|
||||
* (ignore case)
|
||||
*/
|
||||
|
||||
XS (XS_weechat_api_list_casesearch_pos)
|
||||
{
|
||||
char *weelist, *data;
|
||||
int pos;
|
||||
dXSARGS;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) cv;
|
||||
|
||||
if (!perl_current_script || !perl_current_script->name)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_NOT_INIT(PERL_CURRENT_SCRIPT_NAME, "list_casesearch_pos");
|
||||
PERL_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
if (items < 2)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_WRONG_ARGS(PERL_CURRENT_SCRIPT_NAME, "list_casesearch_pos");
|
||||
PERL_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
weelist = SvPV (ST (0), PL_na);
|
||||
data = SvPV (ST (1), PL_na);
|
||||
|
||||
pos = weechat_list_casesearch_pos (script_str2ptr (weelist), data);
|
||||
|
||||
PERL_RETURN_INT(pos);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat::list_get: get item by position
|
||||
*/
|
||||
@@ -6553,7 +6620,9 @@ weechat_perl_api_init (pTHX)
|
||||
newXS ("weechat::list_new", XS_weechat_api_list_new, "weechat");
|
||||
newXS ("weechat::list_add", XS_weechat_api_list_add, "weechat");
|
||||
newXS ("weechat::list_search", XS_weechat_api_list_search, "weechat");
|
||||
newXS ("weechat::list_search_pos", XS_weechat_api_list_search_pos, "weechat");
|
||||
newXS ("weechat::list_casesearch", XS_weechat_api_list_casesearch, "weechat");
|
||||
newXS ("weechat::list_casesearch_pos", XS_weechat_api_list_casesearch_pos, "weechat");
|
||||
newXS ("weechat::list_get", XS_weechat_api_list_get, "weechat");
|
||||
newXS ("weechat::list_set", XS_weechat_api_list_set, "weechat");
|
||||
newXS ("weechat::list_next", XS_weechat_api_list_next, "weechat");
|
||||
|
||||
@@ -275,11 +275,14 @@ weechat_perl_exec (struct t_plugin_script *script,
|
||||
if (script->interpreter)
|
||||
PERL_SET_CONTEXT (script->interpreter);
|
||||
#else
|
||||
length = strlen (script->interpreter) + strlen (function) + 3;
|
||||
length = strlen ((script->interpreter) ? script->interpreter : perl_main) +
|
||||
strlen (function) + 3;
|
||||
func = (char *) malloc (length);
|
||||
if (!func)
|
||||
return NULL;
|
||||
snprintf (func, length, "%s::%s", (char *) script->interpreter, function);
|
||||
snprintf (func, length, "%s::%s",
|
||||
(char *) ((script->interpreter) ? script->interpreter : perl_main),
|
||||
function);
|
||||
#endif
|
||||
|
||||
ENTER;
|
||||
|
||||
@@ -768,6 +768,39 @@ weechat_python_api_list_search (PyObject *self, PyObject *args)
|
||||
PYTHON_RETURN_STRING_FREE(result);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_python_api_list_search_pos: search position of a string in list
|
||||
*/
|
||||
|
||||
static PyObject *
|
||||
weechat_python_api_list_search_pos (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *weelist, *data;
|
||||
int pos;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script || !python_current_script->name)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_NOT_INIT(PYTHON_CURRENT_SCRIPT_NAME, "list_search_pos");
|
||||
PYTHON_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
weelist = NULL;
|
||||
data = NULL;
|
||||
|
||||
if (!PyArg_ParseTuple (args, "ss", &weelist, &data))
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_WRONG_ARGS(PYTHON_CURRENT_SCRIPT_NAME, "list_search_pos");
|
||||
PYTHON_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
pos = weechat_list_search_pos (script_str2ptr (weelist), data);
|
||||
|
||||
PYTHON_RETURN_INT(pos);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_python_api_list_casesearch: search a string in list (ignore case)
|
||||
*/
|
||||
@@ -802,6 +835,40 @@ weechat_python_api_list_casesearch (PyObject *self, PyObject *args)
|
||||
PYTHON_RETURN_STRING_FREE(result);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_python_api_list_casesearch_pos: search position of a string in list
|
||||
* (ignore case)
|
||||
*/
|
||||
|
||||
static PyObject *
|
||||
weechat_python_api_list_casesearch_pos (PyObject *self, PyObject *args)
|
||||
{
|
||||
char *weelist, *data;
|
||||
int pos;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) self;
|
||||
|
||||
if (!python_current_script || !python_current_script->name)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_NOT_INIT(PYTHON_CURRENT_SCRIPT_NAME, "list_casesearch_pos");
|
||||
PYTHON_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
weelist = NULL;
|
||||
data = NULL;
|
||||
|
||||
if (!PyArg_ParseTuple (args, "ss", &weelist, &data))
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_WRONG_ARGS(PYTHON_CURRENT_SCRIPT_NAME, "list_casesearch_pos");
|
||||
PYTHON_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
pos = weechat_list_casesearch_pos (script_str2ptr (weelist), data);
|
||||
|
||||
PYTHON_RETURN_INT(pos);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_python_api_list_get: get item by position
|
||||
*/
|
||||
@@ -6886,7 +6953,9 @@ PyMethodDef weechat_python_funcs[] =
|
||||
{ "list_new", &weechat_python_api_list_new, METH_VARARGS, "" },
|
||||
{ "list_add", &weechat_python_api_list_add, METH_VARARGS, "" },
|
||||
{ "list_search", &weechat_python_api_list_search, METH_VARARGS, "" },
|
||||
{ "list_search_pos", &weechat_python_api_list_search_pos, METH_VARARGS, "" },
|
||||
{ "list_casesearch", &weechat_python_api_list_casesearch, METH_VARARGS, "" },
|
||||
{ "list_casesearch_pos", &weechat_python_api_list_casesearch_pos, METH_VARARGS, "" },
|
||||
{ "list_get", &weechat_python_api_list_get, METH_VARARGS, "" },
|
||||
{ "list_set", &weechat_python_api_list_set, METH_VARARGS, "" },
|
||||
{ "list_next", &weechat_python_api_list_next, METH_VARARGS, "" },
|
||||
|
||||
@@ -830,6 +830,42 @@ weechat_ruby_api_list_search (VALUE class, VALUE weelist, VALUE data)
|
||||
RUBY_RETURN_STRING(result);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_ruby_api_list_search_pos: search position of a string in list
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
weechat_ruby_api_list_search_pos (VALUE class, VALUE weelist, VALUE data)
|
||||
{
|
||||
char *c_weelist, *c_data;
|
||||
int pos;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script || !ruby_current_script->name)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_NOT_INIT(RUBY_CURRENT_SCRIPT_NAME, "list_search_pos");
|
||||
RUBY_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
if (NIL_P (weelist) || NIL_P (data))
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_WRONG_ARGS(RUBY_CURRENT_SCRIPT_NAME, "list_search_pos");
|
||||
RUBY_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
Check_Type (weelist, T_STRING);
|
||||
Check_Type (data, T_STRING);
|
||||
|
||||
c_weelist = StringValuePtr (weelist);
|
||||
c_data = StringValuePtr (data);
|
||||
|
||||
pos = weechat_list_search_pos (script_str2ptr(c_weelist), c_data);
|
||||
|
||||
RUBY_RETURN_INT(pos);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_ruby_api_list_casesearch: search a string in list (ignore case)
|
||||
*/
|
||||
@@ -866,6 +902,43 @@ weechat_ruby_api_list_casesearch (VALUE class, VALUE weelist, VALUE data)
|
||||
RUBY_RETURN_STRING(result);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_ruby_api_list_casesearch_pos: search position of a string in list
|
||||
* (ignore case)
|
||||
*/
|
||||
|
||||
static VALUE
|
||||
weechat_ruby_api_list_casesearch_pos (VALUE class, VALUE weelist, VALUE data)
|
||||
{
|
||||
char *c_weelist, *c_data;
|
||||
int pos;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) class;
|
||||
|
||||
if (!ruby_current_script || !ruby_current_script->name)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_NOT_INIT(RUBY_CURRENT_SCRIPT_NAME, "list_casesearch_pos");
|
||||
RUBY_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
if (NIL_P (weelist) || NIL_P (data))
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_WRONG_ARGS(RUBY_CURRENT_SCRIPT_NAME, "list_casesearch_pos");
|
||||
RUBY_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
Check_Type (weelist, T_STRING);
|
||||
Check_Type (data, T_STRING);
|
||||
|
||||
c_weelist = StringValuePtr (weelist);
|
||||
c_data = StringValuePtr (data);
|
||||
|
||||
pos = weechat_list_casesearch_pos (script_str2ptr(c_weelist), c_data);
|
||||
|
||||
RUBY_RETURN_INT(pos);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_ruby_api_list_get: get item by position
|
||||
*/
|
||||
@@ -7546,7 +7619,9 @@ weechat_ruby_api_init (VALUE ruby_mWeechat)
|
||||
rb_define_module_function (ruby_mWeechat, "list_new", &weechat_ruby_api_list_new, 0);
|
||||
rb_define_module_function (ruby_mWeechat, "list_add", &weechat_ruby_api_list_add, 4);
|
||||
rb_define_module_function (ruby_mWeechat, "list_search", &weechat_ruby_api_list_search, 2);
|
||||
rb_define_module_function (ruby_mWeechat, "list_search_pos", &weechat_ruby_api_list_search_pos, 2);
|
||||
rb_define_module_function (ruby_mWeechat, "list_casesearch", &weechat_ruby_api_list_casesearch, 2);
|
||||
rb_define_module_function (ruby_mWeechat, "list_casesearch_pos", &weechat_ruby_api_list_casesearch_pos, 2);
|
||||
rb_define_module_function (ruby_mWeechat, "list_get", &weechat_ruby_api_list_get, 2);
|
||||
rb_define_module_function (ruby_mWeechat, "list_set", &weechat_ruby_api_list_set, 2);
|
||||
rb_define_module_function (ruby_mWeechat, "list_next", &weechat_ruby_api_list_next, 1);
|
||||
|
||||
@@ -931,6 +931,41 @@ weechat_tcl_api_list_search (ClientData clientData, Tcl_Interp *interp,
|
||||
TCL_RETURN_STRING_FREE(result);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_tcl_api_list_search_pos: search position of a string in list
|
||||
*/
|
||||
|
||||
static int
|
||||
weechat_tcl_api_list_search_pos (ClientData clientData, Tcl_Interp *interp,
|
||||
int objc, Tcl_Obj *CONST objv[])
|
||||
{
|
||||
Tcl_Obj* objp;
|
||||
char *weelist, *data;
|
||||
int i, pos;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) clientData;
|
||||
|
||||
if (!tcl_current_script || !tcl_current_script->name)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_NOT_INIT(TCL_CURRENT_SCRIPT_NAME, "list_search_pos");
|
||||
TCL_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
if (objc < 3)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_WRONG_ARGS(TCL_CURRENT_SCRIPT_NAME, "list_search_pos");
|
||||
TCL_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
weelist = Tcl_GetStringFromObj (objv[1], &i);
|
||||
data = Tcl_GetStringFromObj (objv[2], &i);
|
||||
|
||||
pos = weechat_list_search_pos (script_str2ptr (weelist), data);
|
||||
|
||||
TCL_RETURN_INT(pos);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_tcl_api_list_casesearch: search a string in list (ignore case)
|
||||
*/
|
||||
@@ -967,6 +1002,42 @@ weechat_tcl_api_list_casesearch (ClientData clientData, Tcl_Interp *interp,
|
||||
TCL_RETURN_STRING_FREE(result);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_tcl_api_list_casesearch_pos: search position of a string in list
|
||||
* (ignore case)
|
||||
*/
|
||||
|
||||
static int
|
||||
weechat_tcl_api_list_casesearch_pos (ClientData clientData, Tcl_Interp *interp,
|
||||
int objc, Tcl_Obj *CONST objv[])
|
||||
{
|
||||
Tcl_Obj* objp;
|
||||
char *weelist, *data;
|
||||
int i, pos;
|
||||
|
||||
/* make C compiler happy */
|
||||
(void) clientData;
|
||||
|
||||
if (!tcl_current_script || !tcl_current_script->name)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_NOT_INIT(TCL_CURRENT_SCRIPT_NAME, "list_casesearch_pos");
|
||||
TCL_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
if (objc < 3)
|
||||
{
|
||||
WEECHAT_SCRIPT_MSG_WRONG_ARGS(TCL_CURRENT_SCRIPT_NAME, "list_casesearch_pos");
|
||||
TCL_RETURN_INT(-1);
|
||||
}
|
||||
|
||||
weelist = Tcl_GetStringFromObj (objv[1], &i);
|
||||
data = Tcl_GetStringFromObj (objv[2], &i);
|
||||
|
||||
pos = weechat_list_casesearch_pos (script_str2ptr (weelist), data);
|
||||
|
||||
TCL_RETURN_INT(pos);
|
||||
}
|
||||
|
||||
/*
|
||||
* weechat_tcl_api_list_get: get item by position
|
||||
*/
|
||||
@@ -7405,8 +7476,12 @@ void weechat_tcl_api_init (Tcl_Interp *interp)
|
||||
weechat_tcl_api_list_add, (ClientData)NULL, (Tcl_CmdDeleteProc*)NULL);
|
||||
Tcl_CreateObjCommand (interp, "weechat::list_search",
|
||||
weechat_tcl_api_list_search, (ClientData)NULL, (Tcl_CmdDeleteProc*)NULL);
|
||||
Tcl_CreateObjCommand (interp, "weechat::list_search_pos",
|
||||
weechat_tcl_api_list_search_pos, (ClientData)NULL, (Tcl_CmdDeleteProc*)NULL);
|
||||
Tcl_CreateObjCommand (interp, "weechat::list_casesearch",
|
||||
weechat_tcl_api_list_casesearch, (ClientData)NULL, (Tcl_CmdDeleteProc*)NULL);
|
||||
Tcl_CreateObjCommand (interp, "weechat::list_casesearch_pos",
|
||||
weechat_tcl_api_list_casesearch_pos, (ClientData)NULL, (Tcl_CmdDeleteProc*)NULL);
|
||||
Tcl_CreateObjCommand (interp, "weechat::list_get",
|
||||
weechat_tcl_api_list_get, (ClientData)NULL, (Tcl_CmdDeleteProc*)NULL);
|
||||
Tcl_CreateObjCommand (interp, "weechat::list_set",
|
||||
|
||||
@@ -45,7 +45,7 @@ struct timeval;
|
||||
*/
|
||||
|
||||
/* API version (used to check that plugin has same API and can be loaded) */
|
||||
#define WEECHAT_PLUGIN_API_VERSION "20101125-01"
|
||||
#define WEECHAT_PLUGIN_API_VERSION "20101220-01"
|
||||
|
||||
/* macros for defining plugin infos */
|
||||
#define WEECHAT_PLUGIN_NAME(__name) \
|
||||
@@ -237,8 +237,12 @@ struct t_weechat_plugin
|
||||
void *user_data);
|
||||
struct t_weelist_item *(*list_search) (struct t_weelist *weelist,
|
||||
const char *data);
|
||||
int (*list_search_pos) (struct t_weelist *weelist,
|
||||
const char *data);
|
||||
struct t_weelist_item *(*list_casesearch) (struct t_weelist *weelist,
|
||||
const char *data);
|
||||
int (*list_casesearch_pos) (struct t_weelist *weelist,
|
||||
const char *data);
|
||||
struct t_weelist_item *(*list_get) (struct t_weelist *weelist,
|
||||
int position);
|
||||
void (*list_set) (struct t_weelist_item *item, const char *value);
|
||||
@@ -899,8 +903,12 @@ extern int weechat_plugin_end (struct t_weechat_plugin *plugin);
|
||||
weechat_plugin->list_add(__list, __string, __where, __user_data)
|
||||
#define weechat_list_search(__list, __string) \
|
||||
weechat_plugin->list_search(__list, __string)
|
||||
#define weechat_list_search_pos(__list, __string) \
|
||||
weechat_plugin->list_search_pos(__list, __string)
|
||||
#define weechat_list_casesearch(__list, __string) \
|
||||
weechat_plugin->list_casesearch(__list, __string)
|
||||
#define weechat_list_casesearch_pos(__list, __string) \
|
||||
weechat_plugin->list_casesearch_pos(__list, __string)
|
||||
#define weechat_list_get(__list, __index) \
|
||||
weechat_plugin->list_get(__list, __index)
|
||||
#define weechat_list_set(__item, __value) \
|
||||
|
||||
Reference in New Issue
Block a user