Syntax rewrite for S-commands

Rewrote the syntax documentation for all commands starting with S.
This commit is contained in:
Geert Hauwaerts 2014-07-30 14:29:06 +02:00
parent 4beebe3238
commit 822db3090f
9 changed files with 222 additions and 88 deletions

View File

@ -1,10 +1,24 @@
%9Syntax:%9
@SYNTAX:save@ @SYNTAX:save@
-formats: Save all /FORMATs into theme file %9Parameters:%9
Saves the current Irssi configuration into the configuration -formats: Saves all the formats into the theme file.
file.
See also: RELOAD The file to save the configuration or theme into; if no parameter is given,
the active configuration or theme file will be used.
%9Description:%9
Saves the configuration file.
%9Examples:%9
/SAVE
/SAVE -formats
/SAVE ~/.irssi/config-new
%9See also:%9 SET, RELOAD

View File

@ -1,8 +1,25 @@
%9Syntax:%9
@SYNTAX:sconnect@ @SYNTAX:sconnect@
IRC Operator command. Makes an IRC server connect %9Parameters:%9
to another server. This is CONNECT on the protocol level.
See also: OPER, SQUIT, RESTART The server to connect to, the connection port and the remote server that
initiates the connection attempt.
If no remote server is given, the server you are currently connected to will
be used.
%9Description:%9
Connect a server to the IRC network; this command is restricted to IRC
operators.
%9Examples:%9
/SCONNECT ircsource.irssi.org
/SCONNECT ircsource.irssi.org 6667 be.hub
%9See also:%9 DIE, KILL, OPER, RESTART, SQUIT

View File

@ -1,19 +1,32 @@
%9Syntax:%9
@SYNTAX:script@ @SYNTAX:script@
Irssi has very powerful support for scripts written in Perl - they can extend functionality of Irssi in almost unlimited way, and they still keep the client's core unbloated, light and fast. You can control loading and execution of such scripts by this command. %9Parameters:%9
Without any parameters, /SCRIPT acts in same way as if you would call /SCRIPT LIST. LIST: Displays the list of loaded scripts.
EXEC: Executes the given code.
LOAD: Loads the given script into the memory and executes it.
UNLOAD: Unloads the given script from the memory.
RESET: Unloads all the scripts.
-permanent: In combination with EXEC, the code will be loaded into the
memory.
/SCRIPT LIST displays list of all currently loaded scripts, together with full path to their source files. If no argument is given, the list of active scripts will be displayed.
/SCRIPT EXEC executes the <commands> as a little perl script. It doesn't preserve it loaded in memory, unless -permanent is specified. %9Description:%9
/SCRIPT LOAD loads the <script> in memory and executes it. Interact with the Perl engine to execute scripts.
/SCRIPT UNLOAD unloads the <script> from memory. %9Examples:%9
/SCRIPT RESET unloads all loaded scripts and resets the perl interpreter. /SCRIPT
/SCRIPT LIST
/SCRIPT LOAD ~/.irssi/scripts/nickserv.pl
/SCRIPT UNLOAD nickserv
/SCRIPT RESET
/SCRIPT EXEC foreach my $channel (Irssi::channels()) { Irssi::print($channel->{name} . " @ " . $channel->{server}->{tag}); }
See also: LOAD, UNLOAD %9See also:%9 LOAD, SAVE, UNLOAD

View File

@ -1,20 +1,37 @@
%9Syntax:%9
@SYNTAX:scrollback@ @SYNTAX:scrollback@
/SCROLLBACK, or the default alias /SB: %9Parameters:%9
/SB LEVELCLEAR CLEAR: Clears the screen and the buffer of all text.
- Remove lines with level matching one of those LEVELCLEAR: Clears the screen and the buffer of text matching the given
specified in the comma-separated list <level>. levels.
/SB CLEAR GOTO: Go to the given position.
- Clear screen, free all memory used by texts in window. HOME: Go to the start of the buffer.
/SB HOME END: Go to the end of the buffer.
- Jump to start of the buffer.
/SB END
- Jump to end of the buffer.
/SB GOTO [[-|+]line#|time]
- Jump to specified line or timestamp.
time format is [dd[.mm] | -<days ago>] hh:mi[:ss].
See also: SET SCROLL -all: Applies to all windows instead of only the active one.
-level: The levels, separated by a comman, to match.
The line number, timestamp to jump to or the window reference number to
clear.
%9Description:%9
Manipulate the text in the window to go to a to the given line number, or
clear the buffers.
The timestamp format is format is "[dd[.mm] | -<days ago>] hh:mi[:ss]".
%9Examples:%9
/SCROLLBACK CLEAR
/SCROLLBACK LEVELCLEAR -level NOTICES
/SCROLLBACK GOTO 100
/SCROLLBACK HOME
/SCROLLBACK END
%9See also:%9 CLEAR, WINDOW

View File

@ -1,23 +1,33 @@
%9Syntax:%9
@SYNTAX:set@ @SYNTAX:set@
You can view or change the settings with /SET command. %9Parameters:%9
/SET without any arguments displays all the settings. -clear: Removes the setting's value from the configuration.
/SET <key> displays settings whose key (partly) matches <key> -default: Restore the setting to its default value.
/SET <key> <value> sets <key> to <value>
Boolean settings accept only values ON, OFF and TOGGLE. You can The setting and the value; if no value is given, the list of settings that
also use /TOGGLE command to change them, so /TOGGLE <key> behaves matched will be returned. If no arguments are given, all the settings will
like /SET <key> TOGGLE. /TOGGLE also accepts arguments ON and OFF be displayed.
when /TOGGLE behaves exactly like /SET.
Remember that changes are not saved until you use /SAVE! %9Description:%9
Examples: Modifies the value of a setting; boolean settings accept only ON, OFF and
/SET autolog OFF - Sets value for setting 'autolog' TOGGLE.
/SET close - Shows all settings whose variable name
contains 'close'. Very practical. Please remember that you need to use the SAVE command to store the changes
into your configuration.
See also: TOGGLE %9Examples:%9
/SET
/SET nick mike
/SET -clear nick
/SET log_timestamp %H:%H:%S
/SET -default log_timestamp
/SET close
%9See also:%9 SAVE, TOGGLE

View File

@ -1,24 +1,29 @@
%9Syntax:%9
@SYNTAX:silence@ @SYNTAX:silence@
Works only in some IRC networks. %9Parameters:%9
SILENCE is similar in many respects to IGNORE, except that it is The nickname or hostname to silence; you must prepend it by the "+" or "-"
server-based. What this means is the server will never even send character to indicate whether the entry should be added or removed.
you messages from anyone you have silenced, whereas it will with
IGNORE, where your client is responsible for filtering the messages
out. This has the advantage of not bogging your client down with
excessive data as it tries to filter out messages. The silence list
is lost when you disconnect. SILENCE only affects private messages
and invites.
The default behavior is to SILENCE a nick!user@host pattern, and If no arguments are given, the list of silence entries will be displayed.
if such a pattern is not passed as the argument, it must be prepended
with a plus ('+') to be added to your silence list. If a pattern is %9Description:%9
prepended with a minus ('-'), it will be removed from your silence list.
If you only specify a nickname, you can list the patterns in the Manages the server side ignore list; users or hostnames that match an entry
silence list owned by that nickname. If no arguments are given, your on the list are not able to send you any messages or invites.
own silence list is displayed.
This command does not work on all IRC networks.
See also: IGNORE, ACCEPT
%9Examples:%9
/SILENCE
/SILENCE +mike
/SILENCE -mike
/SILENCE +*!*@*.irssi.org
/SILENCE -*!*@*.irssi.org
%9See also:%9 ACCEPT, IGNORE

View File

@ -1,8 +1,20 @@
%9Syntax:%9
@SYNTAX:squit@ @SYNTAX:squit@
IRC Operator command. Splits the given server and all servers %9Parameters:%9
behind it from your side of the IRC network.
See also: SCONNECT, OPER, DIE, RESTART The server and the disconnect reason.
%9Description:%9
Disconnects a server from the IRC network; this command is restricted to
IRC operators.
%9Examples:%9
/SQUIT ircsource.irssi.org I'm fixing a desync!
%9See also:%9 DIE, OPER, SCONNECT

View File

@ -1,23 +1,43 @@
%9Syntax:%9
@SYNTAX:stats@ @SYNTAX:stats@
Shows some irc server usage statistics. Available types vary slightly %9Parameters:%9
per server; some common ones are:
c - Shows C and N lines for a given server. These are The statistic identifier and the remote server; if no remote server is
the names of the servers that are allowed to connect. given, the active server will be used.
h - Shows H and L lines for a given server (Hubs and Leaves).
k - Show K lines for a server. This shows who is not %9Description:%9
allowed to connect and possibly at what time they are
not allowed to connect. Displays statistics from the IRC server; some statistics require you to have
i - Shows I lines. This is who CAN connect to a server. IRC operators privileges and might differ between IRC networks.
l - Shows information about amount of information passed
to servers and users. Common statistics:
m - Shows a count for the number of times the various
commands have been used since the server was booted. C: Displays the servers the server may connect to.
o - Shows the list of authorized operators on the server. H: Displays hub server the server may connect to.
p - Shows online operators and their idle times. K: Displays the permanent blacklist of hostnames which are prohibited
u - Shows the uptime for a server. from connecting to the server.
y - Shows Y lines, which lists the various connection k: Displays the temporary blacklist of hostname which are prohibited
classes for a given server. from connecting to the server.
? - Shows information about servers connected to a server. I: Displays the list of hostnames which are allowed to connect to the
server.
L: Displays the list of connected users and servers.
M: Displays the list of commands and how many times they have been
issued.
O: Displays the list of hostnames and users which are allowed to
become IRC operators.
P: Displays the ports the server is listening on.
p: Displays the IRC operators and their idle time.
u: Displays the uptime of the server.
Y: Displays the list of connection groups users are placed into.
?: Displays information about the utilized bandwidth.
%9Examples:%9
/STATS p
/STATS I ircsource.irssi.org
%9See also:%9 MOTD, OPER

View File

@ -1,10 +1,36 @@
%9Syntax:%9
@SYNTAX:statusbar@ @SYNTAX:statusbar@
Commands for modifying the statusbar. %9Parameters:%9
/STATUSBAR ENABLE: Enables the statusbar.
- Display all statusbars. DISABLE: Disabled the statusbar.
RESET: Restores the default statusbar configuration.
TYPE: Identifies the type of statusbar.
PLACEMENT: Identifies the placement of the statusbar.
POSITION: Identifies the position of the statusbar.
VISIBLE: Identifies the visibility of the statusbar.
ADD: Adds a statusbar into the configuration.
REMOVE: Removes a statusbar from the configuration.
The name of the statusbar; if no argument is given, the list of statusbars
will be displayed.
%9Description:%9
Modified the attributes of the statusbar.
%9Examples:%9
/STATUSBAR
/STATUSBAR window
/STATUSBAR window REMOVE time
/STATUSBAR window ADD time
/STATUSBAR window RESET
/STATUSBAR topic DISABLE
/STATUSBAR topic ENABLE
%9See also:%9 WINDOW
/STATUSBAR <name>
- display elements of statusbar <name>