summaryrefslogtreecommitdiff
path: root/doc/en/autogen/weechat_commands.xml
blob: b5c8c33506011e7d55e90fe1c622137d59c4f6e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<?xml version="1.0" encoding="UTF-8"?>
<!--
     ********* WARNING! *********

     This file is autogenerated with docgen.pl script. *** DO NOT EDIT! ***
     docgen.pl builds XML doc files to include in many languages
-->

<command>/bar  [add barname type[,cond1,cond2,...] position size separator item1,item2,...] | [default] | [del barname|-all] | [set barname option value] | [hide|show|toggle barname] | [scroll barname buffer scroll_value] | [list] | [listfull] | [listitems]</command>
<programlisting>
manage bars

          add: add a new bar
      barname: name of bar (must be unique)
         type:   root: outside windows),
               window: inside windows, with optional conditions (see below)
    cond1,...: condition(s) for displaying bar (only for type "window"):
                 active: on active window
               inactive: on inactive windows
               nicklist: on windows with nicklist
               without condition, bar is always displayed
     position: bottom, top, left or right
      filling: horizontal, vertical, columns_horizontal or columns_vertical
         size: size of bar (in chars)
    separator: 1 for using separator (line), 0 or nothing means no separator
    item1,...: items for this bar (items can be separated by comma (space between items) or "+" (glued items))
      default: create default bars
          del: delete a bar (or all bars with -all)
          set: set a value for a bar property
       option: option to change (for options list, look at /set weechat.bar.&lt;barname&gt;.*)
        value: new value for option
         hide: hide a bar
         show: show an hidden bar
       toggle: hide/show a bar
       scroll: scroll bar up/down
       buffer: name of buffer to scroll ('*' means current buffer, you should use '*' for root bars)
 scroll_value: value for scroll: 'x' or 'y', followed by '+', '-', 'b' (beginning) or 'e' (end), value (for +/-), and optional %% (to scroll by %% of width/height, otherwise value is number of chars)
         list: list all bars
     listfull: list all bars (verbose)
    listitems: list all bar items

Examples:
  create a bar with time, buffer number + name, and completion:
    /bar add mybar root bottom 1 0 [time],buffer_number+:+buffer_name,completion
  hide a bar:
    /bar hide mybar
  scroll nicklist 10 lines down on current buffer:
    /bar scroll nicklist * y+10
  scroll nicklist one page up on #weechat buffer:
    /bar scroll nicklist #weechat y-100%
  scroll to end of nicklist on current buffer:
    /bar scroll nicklist * ye
</programlisting>

<command>/buffer  [clear [number | -all] | move number | close | list | notify level | localvar | set property value | number | name]</command>
<programlisting>
manage buffers

   clear: clear buffer content (-all for all buffers, number for a buffer, or nothing for current buffer)
    move: move buffer in the list (may be relative, for example -1)
   close: close buffer
    list: list buffers (no parameter implies this list)
  notify: set notify level for current buffer
localvar: display local variables for current buffer
     set: set a property for current buffer
  number: jump to buffer by number
server,
    name: jump to buffer by (partial) name

Examples:
clear current buffer: /buffer clear
   clear all buffers: /buffer clear -all
         move buffer: /buffer move 5
        close buffer: /buffer close
    jump to #weechat: /buffer #weechat
 jump to next buffer: /buffer +1
</programlisting>

<command>/command  plugin command</command>
<programlisting>
launch explicit WeeChat or plugin command

 plugin: plugin name ('weechat' for WeeChat internal command)
command: command to execute (a '/' is automatically added if not found at beginning of command)
</programlisting>

<command>/debug  [list | plugin level | dump | buffer | windows]</command>
<programlisting>
control debug for core/plugins

 plugin: name of plugin ("core" for WeeChat core)
  level: debug level for plugin (0 = disable debug)
   dump: save memory dump in WeeChat log file (same dump is written when WeeChat crashes)
 buffer: dump buffer content with hexadecimal values in log file
windows: display windows tree
   text: send "debug" signal with "text" as argument
</programlisting>

<command>/filter  [list] | [enable|disable|toggle [name]] | [add name plugin.buffer tags regex] | [del name|-all]</command>
<programlisting>
filter messages in buffers, to hide/show them according to tags or regex

         list: list all filters
       enable: enable filters (filters are enabled by default)
      disable: disable filters
       toggle: toggle filters
         name: filter name
          add: add a filter
          del: delete a filter
         -all: delete all filters
plugin.buffer: plugin and buffer where filter is active ("*" for all buffers)
         tags: comma separated list of tags, for example: "irc_join,irc_part,irc_quit"
        regex: regular expression to search in line (use \t to separate prefix from message)

The default key alt+'=' toggles filtering on/off.

Examples:
  use IRC smart filter for join/part/quit messages:
    /filter add irc_smart * irc_smart_filter *
  filter all IRC join/part/quit messages:
    /filter add joinquit * irc_join,irc_part,irc_quit *
  filter nick "toto" on IRC channel #weechat:
    /filter add toto irc.freenode.#weechat * toto\t
  filter lines containing word "spam":
    /filter add filterspam * * spam
  filter lines containing "weechat sucks" on IRC channel #weechat:
    /filter add sucks irc.freenode.#weechat * weechat sucks
</programlisting>

<command>/help  [command | option]</command>
<programlisting>
display help about commands and options

command: a command name
 option: an option name (use /set to see list)
</programlisting>

<command>/history  [clear | value]</command>
<programlisting>
show buffer command history

clear: clear history
value: number of history entries to show
</programlisting>

<command>/input  return | complete_next | complete_previous | search_next | delete_previous_char | delete_next_char | delete_previous_word | delete_next_word | delete_beginning_of_line | delete_end_of_line | delete_line | clipboard_paste | transpose_chars | move_beginning_of_line | move_end_of_line | move_previous_char | move_next_char | move_previous_word | move_next_word | history_previous | history_next | history_global_previous | history_global_next | jump_smart | jump_last_buffer | jump_previous_buffer | hotlist_clear | grab_key | scroll_unread | set_unread | set_unread_current_buffer | insert [args]</command>
<programlisting>
functions for command line

Cette commande est utilisée par les associations de touches ou les extensions.
</programlisting>

<command>/key  [bind key [command [args]]] | [unbind key] | [reset -yes] | [missing]</command>
<programlisting>
bind/unbind keys

   bind: bind a command to a key or display command bound to key
 unbind: remove a key binding
  reset: restore bindings to the default values and delete ALL personal bindings (use carefully!)
missing: add missing keys (using default bindings)
</programlisting>

<command>/layout  [[save | apply | reset] [buffers | windows]]</command>
<programlisting>
save/apply/reset layout for buffers and windows

   save: save current layout
  apply: apply saved layout
  reset: remove saved layout
buffers: save/apply only buffers (order of buffers)
windows: save/apply only windows (buffer displayed by each window)

Without argument, this command displays saved layout.
</programlisting>

<command>/plugin  [list [name]] | [listfull [name]] | [load filename] | [autoload] | [reload [name]] | [unload [name]]</command>
<programlisting>
list/load/unload plugins

    list: list loaded plugins
listfull: list loaded plugins (verbose)
    load: load a plugin
autoload: autoload plugins in system or user directory
  reload: reload one plugin (if no name given, unload all plugins, then autoload plugins)
  unload: unload one or all plugins

Without argument, this command lists loaded plugins.
</programlisting>

<command>/proxy  [add proxyname type address port [username [password]]] | [del proxyname|-all] | [set proxyname option value] | [list]</command>
<programlisting>
manage proxies

          add: add a new proxy
    proxyname: name of proxy (must be unique)
         type: http, socks4 or socks5
      address: IP or hostname
         port: port
     username: username (optional)
     password: password (optional)
          del: delete a proxy (or all proxies with -all)
          set: set a value for a proxy property
       option: option to change (for options list, look at /set weechat.proxy.&lt;proxyname&gt;.*)
        value: new value for option
         list: list all proxies

Examples:
  create a http proxy, running on local host, port 8888:
    /proxy add local http 127.0.0.1 8888
  create a http proxy using IPv6 protocol:
    /proxy add local http 127.0.0.1 8888
    /proxy set local ipv6 on
  create a socks5 proxy with username/password:
    /proxy add myproxy socks5 sample.host.org 3128 myuser mypass
  delete a proxy:
    /proxy del myproxy
</programlisting>

<command>/quit</command>
<programlisting>
quit WeeChat
</programlisting>

<command>/reload  [file [file...]]</command>
<programlisting>
reload configuration files from disk

file: configuration file to reload

Without argument, all files (WeeChat and plugins) are reloaded.
</programlisting>

<command>/save  [file [file...]]</command>
<programlisting>
save configuration files to disk

file: configuration file to save

Without argument, all files (WeeChat and plugins) are saved.
</programlisting>

<command>/set  [option [value]]</command>
<programlisting>
set config options

option: name of an option
 value: new value for option

New value can be, according to variable type:
  boolean: on, off or toggle
  integer: number, ++number or --number
  string : any string ("" for empty string)
  color  : color name, ++number or --number

For all types, you can use null to remove option value (undefined value). This works only for some special plugin variables.
</programlisting>

<command>/unset  [option]</command>
<programlisting>
unset/reset config options

option: name of an option (may begin or end with "*" to mass-reset options, use carefully!)

According to option, it's reset (for standard options) or removed (for optional settings, like server values).
</programlisting>

<command>/upgrade  [path_to_binary]</command>
<programlisting>
upgrade WeeChat without disconnecting from servers

path_to_binary: path to WeeChat binary (default is current binary)

This command run again a WeeChat binary, so it should have been compiled or installed with a package manager before running this command.
</programlisting>

<command>/uptime  [-o]</command>
<programlisting>
show WeeChat uptime

-o: send uptime to current buffer as input
</programlisting>

<command>/version  [-o]</command>
<programlisting>
show WeeChat version and compilation date

-o: send version to current buffer as input
</programlisting>

<command>/window  [list | -1 | +1 | b# | up | down | left | right | splith [pct] | splitv [pct] | resize pct | merge [all] | page_up | page_down | refresh | scroll | scroll_up | scroll_down | scroll_top | scroll_bottom | scroll_previous_highlight | scroll_next_highlight | zoom]</command>
<programlisting>
manage windows

  list: list opened windows (no parameter implies this list)
           -1: jump to previous window
           +1: jump to next window
           b#: jump to next window displaying buffer number #
           up: switch to window above current one
         down: switch to window below current one
         left: switch to window on the left
        right: switch to window on the right
       splith: split current window horizontally
       splitv: split current window vertically
       resize: resize window size, new size is &lt;pct&gt; percentage of parent window
        merge: merge window with another (all = keep only one window)

      page_up: scroll one page up
    page_down: scroll one page down
      refresh: refresh screen
       scroll: scroll number of lines (+/-N) or with time: s=seconds, m=minutes, h=hours, d=days, M=months, y=years
    scroll_up: scroll a few lines up
  scroll_down: scroll a few lines down
   scroll_top: scroll to top of buffer
scroll_bottom: scroll to bottom of buffer
scroll_previous_highlight: scroll to previous highlight
scroll_next_highlight: scroll to next highlight
         zoom: zoom on window

For splith and splitv, pct is a percentage which represents size of new window, computed with current window as size reference. For example 25 means create a new window with size = current_size / 4

Examples:
  jump to window displaying buffer #1: /window b1  scroll 2 lines up: /window scroll -2
  scroll 2 days up: /window scroll -2d
  scroll to beginning of current day: /window scroll -d
</programlisting>