2015-03-11 20:15:23 +01:00
//
// This file is auto-generated by script docgen.py.
// DO NOT EDIT BY HAND!
//
2011-08-03 20:10:11 +02:00
[[command_weechat_away]]
2016-05-14 23:44:36 +02:00
* `+away+`: set or remove away status
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/away [-all] [<message>]
2013-08-20 14:30:50 +02:00
-all: set or remove away status on all connected servers
2011-02-04 22:12:19 +01:00
message: message for away (if no message is given, away status is removed)
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_bar]]
2016-05-14 23:44:36 +02:00
* `+bar+`: manage bars
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/bar list|listfull|listitems
2014-12-28 11:42:57 +01:00
add <name> <type>[,<conditions>] <position> <size> <separator> <item1>[,<item2>...]
2011-03-18 15:36:52 +01:00
default [input|title|status|nicklist]
2011-02-04 22:12:19 +01:00
del <name>|-all
set <name> <option> <value>
hide|show|toggle <name>
2011-07-29 19:46:02 +02:00
scroll <name> <window> <scroll_value>
2011-02-04 22:12:19 +01:00
list: list all bars
listfull: list all bars (verbose)
listitems: list all bar items
add: add a new bar
name: name of bar (must be unique)
type: root: outside windows,
window: inside windows, with optional conditions (see below)
2014-12-28 11:42:57 +01:00
conditions: the conditions to display the bar:
2011-02-04 22:12:19 +01:00
active: on active window
inactive: on inactive windows
nicklist: on windows with nicklist
2012-11-02 09:37:15 +01:00
other condition: see /help weechat.bar.xxx.conditions and /help eval
2014-12-28 11:42:57 +01:00
without conditions, the bar is always displayed
2011-02-04 22:12:19 +01:00
position: bottom, top, left or right
size: size of bar (in chars)
separator: 1 for using separator (line), 0 or nothing means no separator
item1,...: items for this bar (items can be separated by comma (space between items) or "+" (glued items))
2011-03-18 15:36:52 +01:00
default: create a default bar (all default bars if no bar name is given)
2011-02-04 22:12:19 +01:00
del: delete a bar (or all bars with -all)
set: set a value for a bar property
option: option to change (for options list, look at /set weechat.bar.<barname>.*)
value: new value for option
hide: hide a bar
show: show an hidden bar
toggle: hide/show a bar
scroll: scroll bar
2011-07-29 19:46:02 +02:00
window: window number (use '*' for current window or for root bars)
2011-07-26 18:50:29 +02:00
scroll_value: value for scroll: 'x' or 'y' (optional), followed by '+', '-', 'b' (beginning) or 'e' (end), value (for +/-), and optional % (to scroll by % of width/height, otherwise value is number of chars)
2011-02-04 22:12:19 +01:00
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 to end of nicklist on current buffer:
/bar scroll nicklist * ye
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_buffer]]
2016-05-14 23:44:36 +02:00
* `+buffer+`: manage buffers
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/buffer list
2014-04-05 16:30:13 +02:00
clear [<number>|<name>|-merged|-all [<number>|<name>...]]
2014-03-19 10:15:57 +01:00
move <number>|-|+
2012-07-29 20:08:52 +02:00
swap <number1>|<name1> [<number2>|<name2>]
2016-08-14 11:35:59 +02:00
cycle <number>|<name> [<number>|<name>...]]
2014-04-05 16:30:13 +02:00
merge <number>
2011-08-04 17:24:53 +02:00
unmerge [<number>|-all]
2014-04-05 18:43:11 +02:00
hide [<number>|<name>|-all [<number>|<name>...]]
unhide [<number>|<name>|-all [<number>|<name>...]]
2013-12-11 19:08:49 +01:00
renumber [<number1> [<number2> [<start>]]]
2011-07-27 13:52:08 +02:00
close [<n1>[-<n2>]|<name>]
2011-02-04 22:12:19 +01:00
notify <level>
localvar
set <property> <value>
get <property>
2014-03-19 10:15:57 +01:00
<number>|-|+|<name>
2011-02-04 22:12:19 +01:00
list: list buffers (without argument, this list is displayed)
clear: clear buffer content (number for a buffer, -merged for merged buffers, -all for all buffers, or nothing for current buffer)
2014-03-19 10:15:57 +01:00
move: move buffer in the list (may be relative, for example -1); "-" = move to first buffer number, "+" = move to last buffer number + 1
2012-07-29 20:08:52 +02:00
swap: swap two buffers (swap with current buffer if only one number/name given)
2016-08-14 11:35:59 +02:00
cycle: jump loop between a list of buffers
2011-02-04 22:12:19 +01:00
merge: merge current buffer to another buffer (chat area will be mix of both buffers)
(by default ctrl-x switches between merged buffers)
unmerge: unmerge buffer from other buffers which have same number
2014-04-05 16:30:13 +02:00
hide: hide the buffer
unhide: unhide the buffer
2013-12-11 19:08:49 +01:00
renumber: renumber buffers (works only if option weechat.look.buffer_auto_renumber is off)
2011-07-27 13:52:08 +02:00
close: close buffer (number/range or name is optional)
2011-02-04 22:12:19 +01:00
notify: set notify level for current buffer: this level determines whether buffer will be added to hotlist or not:
none: never
highlight: for highlights only
message: for messages from users + highlights
all: all messages
reset: reset to default value (all)
localvar: display local variables for current buffer
set: set a property for current buffer
get: display a property of current buffer
number: jump to buffer by number, possible prefix:
'+': relative jump, add number to current
'-': relative jump, sub number to current
'*': jump to number, using option "weechat.look.jump_current_to_previous_buffer"
2014-03-19 10:15:57 +01:00
-: jump to first buffer number
+: jump to last buffer number
2011-02-04 22:12:19 +01:00
name: jump to buffer by (partial) name
Examples:
clear current buffer:
/buffer clear
move buffer to number 5:
/buffer move 5
2012-07-29 20:08:52 +02:00
swap buffer 1 with 3:
/buffer swap 1 3
swap buffer #weechat with current buffer:
/buffer swap #weechat
2016-08-14 11:35:59 +02:00
jump on #chan1, #chan2, #chan3 and loop:
/buffer cycle #chan1 #chan2 #chan3
2011-02-04 22:12:19 +01:00
merge with core buffer:
/buffer merge 1
unmerge buffer:
/buffer unmerge
close current buffer:
/buffer close
close buffers 5 to 7:
/buffer close 5-7
jump to #weechat:
/buffer #weechat
jump to next buffer:
/buffer +1
2014-03-19 10:15:57 +01:00
jump to last buffer number:
/buffer +
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_color]]
2016-05-14 23:44:36 +02:00
* `+color+`: define color aliases and display palette of colors
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-05-11 18:40:20 +02:00
/color alias <color> <name>
2011-02-04 22:12:19 +01:00
unalias <color>
reset
2014-03-15 15:08:49 +01:00
term2rgb <color>
rgb2term <rgb> [<limit>]
2013-07-28 12:34:55 +02:00
-o
2011-02-04 22:12:19 +01:00
2014-03-15 15:08:49 +01:00
alias: add an alias for a color
unalias: delete an alias
color: color number (greater than or equal to 0, max depends on terminal, commonly 63 or 255)
name: alias name for color (for example: "orange")
2016-02-12 07:39:38 +01:00
reset: reset all color pairs (required when no more color pairs are available if automatic reset is disabled, see option "weechat.look.color_pairs_auto_reset")
2014-03-15 15:08:49 +01:00
term2rgb: convert a terminal color (0-255) to RGB color
rgb2term: convert a RGB color to terminal color (0-255)
limit: number of colors to use in terminal table (starting from 0); default is 256
-o: send terminal/colors info to current buffer as input
2011-02-04 22:12:19 +01:00
Without argument, this command displays colors in a new buffer.
Examples:
add alias "orange" for color 214:
/color alias 214 orange
delete color 214:
/color unalias 214
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_command]]
2016-05-14 23:44:36 +02:00
* `+command+`: launch explicit WeeChat or plugin command
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2014-05-13 22:12:19 +02:00
/command [-buffer <name>] <plugin> <command>
2011-02-04 22:12:19 +01:00
2014-05-13 22:12:19 +02:00
-buffer: execute the command on this buffer
plugin: execute the command from this plugin; 'core' for a WeeChat command, '*' for automatic plugin (it depends on the buffer where the command is executed)
2011-02-04 22:12:19 +01:00
command: command to execute (a '/' is automatically added if not found at beginning of command)
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_cursor]]
2016-05-14 23:44:36 +02:00
* `+cursor+`: free movement of cursor on screen to execute actions on specific areas of screen
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-07-26 18:50:29 +02:00
/cursor go chat|<bar>|<x>,<y>
move up|down|left|right|area_up|area_down|area_left|area_right
stop
go: move cursor to chat area, a bar (using bar name) or coordinates "x,y"
move: move cursor with direction
stop: stop cursor mode
Without argument, this command toggles cursor mode.
When mouse is enabled (see /help mouse), by default a middle click will start cursor mode at this point.
2015-04-19 09:09:09 +02:00
Default keys in cursor mode on chat messages:
m quote message
q quote prefix + message
Q quote time + prefix + message
Default keys in cursor mode on nicklist:
b ban nick (/ban)
k kick nick (/kick)
K kick and ban nick (/kickban)
q open query with nick (/query)
w query information about user (/whois)
2011-07-26 18:50:29 +02:00
Examples:
go to nicklist:
/cursor go nicklist
go to coordinates x=10, y=5:
/cursor go 10,5
2013-11-04 21:41:34 +01:00
----
2011-07-26 18:50:29 +02:00
2011-08-03 20:10:11 +02:00
[[command_weechat_debug]]
2016-05-14 23:44:36 +02:00
* `+debug+`: control debug for core/plugins
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/debug list
set <plugin> <level>
dump [<plugin>]
2011-08-14 11:30:08 +02:00
buffer|color|infolists|memory|tags|term|windows
mouse|cursor [verbose]
2011-06-26 18:15:42 +02:00
hdata [free]
2011-06-01 09:07:17 +02:00
list: list plugins with debug levels
set: set debug level for plugin
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
color: display infos about current color pairs
2011-07-26 18:50:29 +02:00
cursor: toggle debug for cursor mode
2013-02-16 09:57:40 +01:00
dirs: display directories
2011-06-26 18:15:42 +02:00
hdata: display infos about hdata (with free: remove all hdata in memory)
2011-12-07 17:43:36 +01:00
hooks: display infos about hooks
2011-06-01 09:07:17 +02:00
infolists: display infos about infolists
2013-11-17 20:49:37 +01:00
libs: display infos about external libraries used
2011-06-01 09:07:17 +02:00
memory: display infos about memory usage
2011-07-26 18:50:29 +02:00
mouse: toggle debug for mouse
2011-06-13 15:25:38 +02:00
tags: display tags for lines
2011-06-01 09:07:17 +02:00
term: display infos about terminal
windows: display windows tree
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2012-11-02 09:37:15 +01:00
[[command_weechat_eval]]
2016-05-14 23:44:36 +02:00
* `+eval+`: evaluate expression
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2015-01-30 09:00:27 +01:00
/eval [-n|-s] <expression>
2013-08-04 08:56:56 +02:00
[-n] -c <expression1> <operator> <expression2>
2012-11-02 09:37:15 +01:00
-n: display result without sending it to buffer (debug mode)
2015-01-30 09:58:36 +01:00
-s: split expression before evaluating it (many commands can be separated by semicolons)
2013-08-04 08:56:56 +02:00
-c: evaluate as condition: use operators and parentheses, return a boolean value ("0" or "1")
2014-06-29 11:48:04 +02:00
expression: expression to evaluate, variables with format ${variable} are replaced (see below); many commands can be separated by semicolons
2012-11-02 09:37:15 +01:00
operator: a logical or comparison operator:
- logical operators:
&& boolean "and"
|| boolean "or"
- comparison operators:
== equal
!= not equal
<= less or equal
< less
>= greater or equal
> greater
2014-01-09 17:21:19 +01:00
=~ is matching POSIX extended regex
!~ is NOT matching POSIX extended regex
2012-11-02 09:37:15 +01:00
An expression is considered as "true" if it is not NULL, not empty, and different from "0".
The comparison is made using integers if the two expressions are valid integers.
To force a string comparison, add double quotes around each expression, for example:
50 > 100 ==> 0
"50" > "100" ==> 1
2014-04-20 09:25:40 +02:00
Some variables are replaced in expression, using the format ${variable}, variable can be, by order of priority:
2015-06-30 20:25:35 +02:00
1. an evaluated sub-string (format: "eval:xxx")
2. a string with escaped chars (format: "esc:xxx" or "\xxx")
3. a string with chars to hide (format: "hide:char,string")
4. a color (format: "color:xxx")
5. an info (format: "info:name,arguments", arguments are optional)
6. current date/time (format: "date" or "date:format")
7. an environment variable (format: "env:XXX")
8. an option (format: "file.section.option")
9. a local variable in buffer
10. a hdata name/variable (the value is automatically converted to string), by default "window" and "buffer" point to current window/buffer.
2012-11-02 09:37:15 +01:00
Format for hdata can be one of following:
hdata.var1.var2...: start with a hdata (pointer must be known), and ask variables one after one (other hdata can be followed)
2015-06-23 21:30:58 +02:00
hdata[list].var1.var2...: start with a hdata using a list, for example:
2012-11-02 09:37:15 +01:00
${buffer[gui_buffers].full_name}: full name of first buffer in linked list of buffers
${plugin[weechat_plugins].name}: name of first plugin in linked list of plugins
2015-06-23 21:30:58 +02:00
hdata[pointer].var1.var2...: start with a hdata using a pointer, for example:
${buffer[0x1234abcd].full_name}: full name of the buffer with this pointer (can be used in triggers)
2012-11-02 09:37:15 +01:00
For name of hdata and variables, please look at "Plugin API reference", function "weechat_hdata_get".
2014-02-28 14:55:58 +01:00
Examples (simple strings):
2014-10-25 09:44:04 +02:00
/eval -n ${info:version} ==> 0.4.3
2015-04-26 11:50:39 +02:00
/eval -n ${env:HOME} ==> /home/user
2014-10-25 09:44:04 +02:00
/eval -n ${weechat.look.scroll_amount} ==> 3
/eval -n ${window} ==> 0x2549aa0
/eval -n ${window.buffer} ==> 0x2549320
/eval -n ${window.buffer.full_name} ==> core.weechat
/eval -n ${window.buffer.number} ==> 1
/eval -n ${\t} ==> <tab>
/eval -n ${hide:-,${relay.network.password}} ==> --------
2015-06-30 20:25:35 +02:00
/eval -n ${date:%H:%M:%S} ==> 07:46:40
2014-02-28 14:55:58 +01:00
Examples (conditions):
2014-10-25 09:44:04 +02:00
/eval -n -c ${window.buffer.number} > 2 ==> 0
/eval -n -c ${window.win_width} > 100 ==> 1
/eval -n -c (8 > 12) || (5 > 2) ==> 1
/eval -n -c (8 > 12) && (5 > 2) ==> 0
/eval -n -c abcd =~ ^ABC ==> 1
/eval -n -c abcd =~ (?-i)^ABC ==> 0
/eval -n -c abcd =~ (?-i)^abc ==> 1
/eval -n -c abcd !~ abc ==> 0
2013-11-04 21:41:34 +01:00
----
2012-11-02 09:37:15 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_filter]]
2016-05-14 23:44:36 +02:00
* `+filter+`: filter messages in buffers, to hide/show them according to tags or regex
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/filter list
2014-04-01 16:00:44 +02:00
enable|disable|toggle [<name>|@]
2011-03-09 10:13:41 +01:00
add <name> <buffer>[,<buffer>...] <tags> <regex>
2014-02-19 10:35:39 +01:00
rename <name> <new_name>
2011-02-04 22:12:19 +01:00
del <name>|-all
2011-03-09 10:13:41 +01:00
list: list all filters
enable: enable filters (filters are enabled by default)
disable: disable filters
toggle: toggle filters
2014-04-01 16:00:44 +02:00
name: filter name ("@" = enable/disable all filters in current buffer)
2011-03-09 10:13:41 +01:00
add: add a filter
2014-02-19 10:35:39 +01:00
rename: rename a filter
2011-03-09 10:13:41 +01:00
del: delete a filter
-all: delete all filters
buffer: comma separated list of buffers where filter is active:
2014-08-29 18:21:48 +02:00
- this is full name including plugin (example: "irc.freenode.#weechat" or "irc.server.freenode")
2011-03-09 10:13:41 +01:00
- "*" means all buffers
- a name starting with '!' is excluded
2014-04-12 23:07:06 +02:00
- wildcard "*" is allowed
2013-12-14 11:26:03 +01:00
tags: comma separated list of tags, for example "irc_join,irc_part,irc_quit"
2013-12-14 11:43:58 +01:00
- logical "and": use "+" between tags (for example: "nick_toto+irc_action")
2014-04-12 23:07:06 +02:00
- wildcard "*" is allowed
2014-05-08 11:01:07 +02:00
- if tag starts with '!', then it is excluded and must NOT be in message
2014-01-09 17:21:19 +01:00
regex: POSIX extended regular expression to search in line
2011-03-09 10:13:41 +01:00
- use '\t' to separate prefix from message, special chars like '|' must be escaped: '\|'
- if regex starts with '!', then matching result is reversed (use '\!' to start with '!')
- two regular expressions are created: one for prefix and one for message
2012-01-22 13:48:42 +01:00
- regex are case insensitive, they can start by "(?-i)" to become case sensitive
2011-02-04 22:12:19 +01:00
The default key alt+'=' toggles filtering on/off.
Tags most commonly used:
no_filter, no_highlight, no_log, log0..log9 (log level),
2011-04-11 13:57:00 +02:00
notify_none, notify_message, notify_private, notify_highlight,
2012-04-03 21:22:53 +02:00
nick_xxx (xxx is nick in message), prefix_nick_ccc (ccc is color of nick),
2014-04-12 13:25:58 +02:00
host_xxx (xxx is username + host in message),
2013-01-29 20:20:22 +01:00
irc_xxx (xxx is command name or number, see /server raw or /debug tags),
2011-02-04 22:12:19 +01:00
irc_numeric, irc_error, irc_action, irc_ctcp, irc_ctcp_reply, irc_smart_filter, away_info.
2011-06-13 15:25:38 +02:00
To see tags for lines in buffers: /debug tags
2011-02-04 22:12:19 +01:00
Examples:
2011-03-09 10:13:41 +01:00
use IRC smart filter on all buffers:
2011-02-04 22:12:19 +01:00
/filter add irc_smart * irc_smart_filter *
2011-03-09 10:13:41 +01:00
use IRC smart filter on all buffers except those with "#weechat" in name:
/filter add irc_smart *,!*#weechat* irc_smart_filter *
2011-02-04 22:12:19 +01:00
filter all IRC join/part/quit messages:
/filter add joinquit * irc_join,irc_part,irc_quit *
filter nicks displayed when joining channels or with /names:
/filter add nicks * irc_366 *
filter nick "toto" on IRC channel #weechat:
2011-10-27 16:03:03 +02:00
/filter add toto irc.freenode.#weechat nick_toto *
2013-12-14 11:26:03 +01:00
filter IRC join/action messages from nick "toto":
/filter add toto * nick_toto+irc_join,nick_toto+irc_action *
2011-02-04 22:12:19 +01:00
filter lines containing "weechat sucks" on IRC channel #weechat:
/filter add sucks irc.freenode.#weechat * weechat sucks
2015-03-24 06:56:15 +01:00
filter lines that are strictly equal to "WeeChat sucks" on all buffers:
/filter add sucks2 * * (?-i)^WeeChat sucks$
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_help]]
2016-05-14 23:44:36 +02:00
* `+help+`: display help about commands and options
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-07 18:33:05 +01:00
/help -list|-listfull [<plugin> [<plugin>...]]
<command>
2011-02-04 22:12:19 +01:00
<option>
2011-02-07 18:33:05 +01:00
-list: list commands, by plugin (without argument, this list is displayed)
-listfull: list commands with description, by plugin
plugin: list commands for this plugin
command: a command name
option: an option name (use /set to see list)
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_history]]
2016-05-14 23:44:36 +02:00
* `+history+`: show buffer command history
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/history clear
<value>
clear: clear history
value: number of history entries to show
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_input]]
2016-05-14 23:44:36 +02:00
* `+input+`: functions for command line
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/input <action> [<arguments>]
list of actions:
return: simulate key "enter"
complete_next: complete word with next completion
complete_previous: complete word with previous completion
2015-07-26 19:55:24 +02:00
search_text_here: search text in buffer at current position
2011-02-04 22:12:19 +01:00
search_text: search text in buffer
2011-07-05 15:36:42 +02:00
search_switch_case: switch exact case for search
2013-08-17 11:51:50 +02:00
search_switch_regex: switch search type: string/regular expression
search_switch_where: switch search in messages/prefixes
2011-07-05 15:36:42 +02:00
search_previous: search previous line
search_next: search next line
2015-07-26 19:55:24 +02:00
search_stop_here: stop search at current position
2011-07-05 15:36:42 +02:00
search_stop: stop search
2011-02-04 22:12:19 +01:00
delete_previous_char: delete previous char
delete_next_char: delete next char
delete_previous_word: delete previous word
delete_next_word: delete next word
delete_beginning_of_line: delete from beginning of line until cursor
delete_end_of_line: delete from cursor until end of line
delete_line: delete entire line
clipboard_paste: paste from clipboard
transpose_chars: transpose two chars
undo: undo last command line action
redo: redo last command line action
move_beginning_of_line: move cursor to beginning of line
move_end_of_line: move cursor to end of line
move_previous_char: move cursor to previous char
move_next_char: move cursor to next char
move_previous_word: move cursor to previous word
move_next_word: move cursor to next word
history_previous: recall previous command in current buffer history
history_next: recall next command in current buffer history
history_global_previous: recall previous command in global history
history_global_next: recall next command in global history
jump_smart: jump to next buffer with activity
2011-11-08 18:51:15 +01:00
jump_last_buffer_displayed: jump to last buffer displayed (before last jump to a buffer)
2011-02-04 22:12:19 +01:00
jump_previously_visited_buffer: jump to previously visited buffer
jump_next_visited_buffer: jump to next visited buffer
2016-08-16 21:22:28 +02:00
hotlist_clear: clear hotlist (optional argument: "lowest" to clear only lowest level in hotlist, "highest" to clear only highest level in hotlist, or level mask: integer which is a combination of 1=join/part, 2=message, 4=private, 8=highlight)
2011-07-26 18:50:29 +02:00
grab_key: grab a key (optional argument: delay for end of grab, default is 500 milliseconds)
grab_key_command: grab a key with its associated command (optional argument: delay for end of grab, default is 500 milliseconds)
2011-07-30 15:44:55 +02:00
grab_mouse: grab mouse event code
grab_mouse_area: grab mouse event code with area
2011-02-04 22:12:19 +01:00
set_unread: set unread marker for all buffers
set_unread_current_buffer: set unread marker for current buffer
switch_active_buffer: switch to next merged buffer
switch_active_buffer_previous: switch to previous merged buffer
2012-08-30 10:46:42 +02:00
zoom_merged_buffer: zoom on merged buffer
2014-01-24 12:53:23 +01:00
insert: insert text in command line (escaped chars are allowed, see /help print)
2014-05-13 22:40:46 +02:00
send: send text to the buffer
2012-03-04 10:32:55 +01:00
paste_start: start paste (bracketed paste mode)
paste_stop: stop paste (bracketed paste mode)
2011-02-04 22:12:19 +01:00
This command is used by key bindings or plugins.
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_key]]
2016-05-14 23:44:36 +02:00
* `+key+`: bind/unbind keys
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-07-05 15:36:42 +02:00
/key list|listdefault|listdiff [<context>]
2011-02-04 22:12:19 +01:00
bind <key> [<command> [<args>]]
2011-07-05 15:36:42 +02:00
bindctxt <context> <key> [<command> [<args>]]
2011-02-04 22:12:19 +01:00
unbind <key>
2011-07-05 15:36:42 +02:00
unbindctxt <context> <key>
2011-02-04 22:12:19 +01:00
reset <key>
2011-07-05 15:36:42 +02:00
resetctxt <context> <key>
resetall -yes [<context>]
missing [<context>]
2011-02-04 22:12:19 +01:00
list: list all current keys (without argument, this list is displayed)
listdefault: list default keys
listdiff: list differences between current and default keys (keys added, redefined or deleted)
2011-07-05 15:36:42 +02:00
context: name of context ("default" or "search")
bind: bind a command to a key or display command bound to key (for context "default")
bindctxt: bind a command to a key or display command bound to key, for given context
2012-05-05 20:04:02 +02:00
command: command (many commands can be separated by semicolons)
2011-07-05 15:36:42 +02:00
unbind: remove a key binding (for context "default")
unbindctxt: remove a key binding for given context
reset: reset a key to default binding (for context "default")
resetctxt: reset a key to default binding, for given context
2011-02-04 22:12:19 +01:00
resetall: restore bindings to the default values and delete ALL personal bindings (use carefully!)
missing: add missing keys (using default bindings), useful after installing new WeeChat version
When binding a command to a key, it is recommended to use key alt+k (or Esc then k), and then press the key to bind: this will insert key code in command line.
2011-08-15 21:49:20 +02:00
For context "mouse" (possible in context "cursor" too), key has format: "@area:key" or "@area1>area2:key" where area can be:
2011-07-30 08:56:42 +02:00
*: any area on screen
2011-08-08 11:24:26 +02:00
chat: chat area (any buffer)
chat(xxx): char area for buffer with name "xxx" (full name including plugin)
2011-07-30 08:56:42 +02:00
bar(*): any bar
bar(xxx): bar "xxx"
item(*): any bar item
2011-07-26 18:50:29 +02:00
item(xxx): bar item "xxx"
2014-04-12 23:07:06 +02:00
Wildcard "*" is allowed in key to match many mouse events.
2011-08-26 18:32:33 +02:00
A special value for command with format "hsignal:name" can be used for context mouse, this will send the hsignal "name" with the focus hashtable as argument.
2011-08-20 10:52:27 +02:00
Another special value "-" can be used to disable key (it will be ignored when looking for keys).
2011-07-26 18:50:29 +02:00
2011-02-04 22:12:19 +01:00
Examples:
2015-11-04 18:14:07 +01:00
key alt-t to toggle nicklist bar:
/key bind meta-t /bar toggle nicklist
2011-02-04 22:12:19 +01:00
key alt-r to jump to #weechat IRC channel:
/key bind meta-r /buffer #weechat
restore default binding for key alt-r:
/key reset meta-r
2011-07-05 15:36:42 +02:00
key "tab" to stop search in buffer:
/key bindctxt search ctrl-I /input search_stop
2011-07-26 18:50:29 +02:00
middle button of mouse on a nick to retrieve info on nick:
/key bindctxt mouse @item(buffer_nicklist):button3 /msg nickserv info ${nick}
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_layout]]
2016-05-14 23:44:36 +02:00
* `+layout+`: manage buffers/windows layouts
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2013-12-30 15:40:56 +01:00
/layout store [<name>] [buffers|windows]
2013-03-17 08:28:41 +01:00
apply [<name>] [buffers|windows]
leave
2013-12-13 12:50:36 +01:00
del [<name>] [buffers|windows]
2013-03-17 08:28:41 +01:00
rename <name> <new_name>
2011-02-04 22:12:19 +01:00
2013-12-30 15:40:56 +01:00
store: store current buffers/windows in a layout
2014-01-21 22:03:12 +01:00
apply: apply stored layout
2013-03-17 08:28:41 +01:00
leave: leave current layout (does not update any layout)
2014-01-21 22:03:12 +01:00
del: delete buffers and/or windows in a stored layout
2013-12-13 12:50:36 +01:00
(if neither "buffers" nor "windows" is given after the name, the layout is deleted)
2013-03-17 08:28:41 +01:00
rename: rename a layout
2014-01-21 22:03:12 +01:00
name: name for stored layout (default is "default")
buffers: store/apply only buffers (order of buffers)
windows: store/apply only windows (buffer displayed by each window)
2011-02-04 22:12:19 +01:00
2014-01-21 22:03:12 +01:00
Without argument, this command displays stored layouts.
2016-02-12 07:39:38 +01:00
The current layout can be saved on /quit command with the option "weechat.look.save_layout_on_exit".
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_mouse]]
2016-05-14 23:44:36 +02:00
* `+mouse+`: mouse control
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-07-26 18:50:29 +02:00
/mouse enable|disable|toggle [<delay>]
enable: enable mouse
disable: disable mouse
toggle: toggle mouse
delay: delay (in seconds) after which initial mouse state is restored (useful to temporarily disable mouse)
2011-12-25 21:52:35 +01:00
The mouse state is saved in option "weechat.look.mouse".
2011-07-26 18:50:29 +02:00
Examples:
enable mouse:
/mouse enable
toggle mouse for 5 seconds:
/mouse toggle 5
2013-11-04 21:41:34 +01:00
----
2011-07-26 18:50:29 +02:00
2011-08-03 20:10:11 +02:00
[[command_weechat_mute]]
2016-05-14 23:44:36 +02:00
* `+mute+`: execute a command silently
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2014-03-04 16:12:56 +01:00
/mute [-core | -current | -buffer <name>] <command>
2011-02-04 22:12:19 +01:00
2014-03-04 16:12:56 +01:00
-core: no output on WeeChat core buffer
2011-05-13 16:46:44 +02:00
-current: no output on current buffer
2011-02-04 22:12:19 +01:00
-buffer: no output on specified buffer
name: full buffer name (examples: "irc.server.freenode", "irc.freenode.#weechat")
command: command to execute silently (a '/' is automatically added if not found at beginning of command)
2014-03-04 16:12:56 +01:00
If no target is specified (-core, -current or -buffer), then default is to mute all buffers.
2011-02-04 22:12:19 +01:00
Examples:
config save:
/mute save
message to current IRC channel:
/mute -current msg * hi!
message to #weechat channel:
/mute -buffer irc.freenode.#weechat msg #weechat hi!
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_plugin]]
2016-05-14 23:44:36 +02:00
* `+plugin+`: list/load/unload plugins
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/plugin list|listfull [<name>]
2011-10-29 11:16:45 +02:00
load <filename> [<arguments>]
autoload [<arguments>]
2015-03-21 08:44:47 +01:00
reload [<name>|* [<arguments>]]
2011-10-29 11:16:45 +02:00
unload [<name>]
list: list loaded plugins
listfull: list loaded plugins (verbose)
load: load a plugin
autoload: autoload plugins in system or user directory
reload: reload a plugin (if no name given, unload all plugins, then autoload plugins)
unload: unload a plugin (if no name given, unload all plugins)
filename: plugin (file) to load
name: a plugin name
arguments: arguments given to plugin on load
2011-02-04 22:12:19 +01:00
Without argument, this command lists loaded plugins.
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
2014-01-19 23:29:00 +01:00
[[command_weechat_print]]
2016-05-14 23:44:36 +02:00
* `+print+`: display text on a buffer
2014-01-19 23:29:00 +01:00
----
2014-02-17 11:12:36 +01:00
/print [-buffer <number>|<name>] [-core] [-escape] [-date <date>] [-tags <tags>] [-action|-error|-join|-network|-quit] [<text>]
-stdout|-stderr [<text>]
2014-02-20 11:00:24 +01:00
-beep
2014-01-19 23:29:00 +01:00
2014-04-12 08:59:06 +02:00
-buffer: display text in this buffer (default: buffer where command is executed)
-core: alias of "-buffer core.weechat"
-current: display text on current buffer
-escape: interpret escaped chars (for example \a, \07, \x07)
-date: message date, format can be:
-n: 'n' seconds before now
+n: 'n' seconds in the future
n: 'n' seconds since the Epoch (see man time)
date/time (ISO 8601): yyyy-mm-ddThh:mm:ss, example: 2014-01-19T04:32:55
time: hh:mm:ss (example: 04:32:55)
-tags: comma-separated list of tags (see /help filter for a list of tags most commonly used)
text: text to display (prefix and message must be separated by "\t", if text starts with "-", then add a "\" before)
-stdout: display text on stdout (escaped chars are interpreted)
-stderr: display text on stderr (escaped chars are interpreted)
-beep: alias of "-stderr \a"
2014-01-19 23:29:00 +01:00
The options -action ... -quit use the prefix defined in options "weechat.look.prefix_*".
2014-01-24 12:53:23 +01:00
Following escaped chars are supported:
\" \\ \a \b \e \f \n \r \t \v \0ooo \xhh \uhhhh \Uhhhhhhhh
2014-01-19 23:29:00 +01:00
Examples:
display a reminder on core buffer with a highlight:
/print -core -tags notify_highlight Reminder: buy milk
display an error on core buffer:
/print -core -error Some error here
display message on core buffer with prefix "abc":
2014-01-22 15:44:00 +01:00
/print -core abc\tThe message
2014-01-19 23:29:00 +01:00
display a message on channel #weechat:
/print -buffer irc.freenode.#weechat Message on #weechat
2014-01-24 12:53:23 +01:00
display a snowman (U+2603):
/print -escape \u2603
2014-01-19 23:29:00 +01:00
send alert (BEL):
2014-02-20 11:00:24 +01:00
/print -beep
2014-01-19 23:29:00 +01:00
----
2011-08-03 20:10:11 +02:00
[[command_weechat_proxy]]
2016-05-14 23:44:36 +02:00
* `+proxy+`: manage proxies
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/proxy list
add <name> <type> <address> <port> [<username> [<password>]]
del <name>|-all
set <name> <option> <value>
list: list all proxies
add: add a new proxy
name: 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.<proxyname>.*)
value: new value for option
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
Examples:
2015-06-04 22:00:10 +02:00
add a http proxy, running on local host, port 8888:
2011-02-04 22:12:19 +01:00
/proxy add local http 127.0.0.1 8888
2015-06-04 22:00:10 +02:00
add a http proxy using IPv6 protocol:
2012-09-20 07:55:58 +02:00
/proxy add local http ::1 8888
2011-02-04 22:12:19 +01:00
/proxy set local ipv6 on
2015-06-04 22:00:10 +02:00
add a socks5 proxy with username/password:
2011-02-04 22:12:19 +01:00
/proxy add myproxy socks5 sample.host.org 3128 myuser mypass
delete a proxy:
/proxy del myproxy
2013-11-04 21:41:34 +01:00
----
2009-05-28 16:07:40 +02:00
2011-08-03 20:10:11 +02:00
[[command_weechat_quit]]
2016-05-14 23:44:36 +02:00
* `+quit+`: quit WeeChat
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/quit [-yes] [<arguments>]
2009-05-28 16:07:40 +02:00
2016-02-12 07:39:38 +01:00
-yes: required if option "weechat.look.confirm_quit" is enabled
2011-02-04 22:12:19 +01:00
arguments: text sent with signal "quit"
(for example irc plugin uses this text to send quit message to server)
2016-02-12 07:39:38 +01:00
By default when quitting the configuration files are saved (see option "weechat.look.save_config_on_exit") and the current layout can be saved (see option "weechat.look.save_layout_on_exit").
2013-11-04 21:41:34 +01:00
----
2010-02-09 13:21:05 +01:00
2011-08-03 20:10:11 +02:00
[[command_weechat_reload]]
2016-05-14 23:44:36 +02:00
* `+reload+`: reload configuration files from disk
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/reload [<file> [<file>...]]
2010-02-09 13:21:05 +01:00
2011-02-04 22:12:19 +01:00
file: configuration file to reload (without extension ".conf")
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
Without argument, all files (WeeChat and plugins) are reloaded.
2013-11-04 21:41:34 +01:00
----
2009-05-28 16:07:40 +02:00
2011-08-09 09:10:26 +02:00
[[command_weechat_repeat]]
2016-05-14 23:44:36 +02:00
* `+repeat+`: execute a command several times
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-08-09 09:10:26 +02:00
/repeat [-interval <delay>] <count> <command>
delay: delay between execution of commands (in milliseconds)
count: number of times to execute command
command: command to execute (a '/' is automatically added if not found at beginning of command)
All commands are executed on buffer where this command was issued.
Example:
scroll 2 pages up:
/repeat 2 /window page_up
2013-11-04 21:41:34 +01:00
----
2011-08-09 09:10:26 +02:00
2011-08-03 20:10:11 +02:00
[[command_weechat_save]]
2016-05-14 23:44:36 +02:00
* `+save+`: save configuration files to disk
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/save [<file> [<file>...]]
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
file: configuration file to save (without extension ".conf")
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
Without argument, all files (WeeChat and plugins) are saved.
2016-02-12 07:39:38 +01:00
By default all configuration files are saved to disk on /quit command (see option "weechat.look.save_config_on_exit").
2013-11-04 21:41:34 +01:00
----
2009-05-28 16:07:40 +02:00
2013-08-02 20:16:47 +02:00
[[command_weechat_secure]]
2016-05-14 23:44:36 +02:00
* `+secure+`: manage secured data (passwords or private data encrypted in file sec.conf)
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2013-08-02 20:16:47 +02:00
/secure passphrase <passphrase>|-delete
decrypt <passphrase>|-discard
set <name> <value>
del <name>
passphrase: change the passphrase (without passphrase, data is stored as plain text in file sec.conf)
-delete: delete passphrase
decrypt: decrypt data still encrypted (it happens only if passphrase was not given on startup)
2013-08-07 08:27:28 +02:00
-discard: discard all data still encrypted
2013-08-02 20:16:47 +02:00
set: add or change secured data
del: delete secured data
Without argument, this command displays secured data in a new buffer.
2016-07-29 10:03:20 +02:00
Keys on secure buffer:
alt+v toggle values
2013-08-02 20:16:47 +02:00
When a passphrase is used (data encrypted), it is asked by WeeChat on startup.
It is possible to set environment variable "WEECHAT_PASSPHRASE" to prevent the prompt (this same variable is used by WeeChat on /upgrade).
Secured data with format ${sec.data.xxx} can be used in:
2015-08-03 21:29:17 +02:00
- command /eval
2013-08-02 20:16:47 +02:00
- command line argument "--run-command"
2013-09-20 10:27:08 +02:00
- options weechat.startup.command_{before|after}_plugins
2015-08-03 21:29:17 +02:00
- other options that may contain a password or sensitive data (for example proxy, irc server and relay); see /help on the options to check if they are evaluated.
2013-08-02 20:16:47 +02:00
Examples:
set a passphrase:
/secure passphrase this is my passphrase
encrypt freenode SASL password:
/secure set freenode mypassword
/set irc.server.freenode.sasl_password "${sec.data.freenode}"
encrypt oftc password for nickserv:
/secure set oftc mypassword
/set irc.server.oftc.command "/msg nickserv identify ${sec.data.oftc}"
alias to ghost the nick "mynick":
2015-08-08 10:32:48 +02:00
/alias add ghost /eval /msg -server freenode nickserv ghost mynick ${sec.data.freenode}
2013-11-04 21:41:34 +01:00
----
2013-08-02 20:16:47 +02:00
2011-08-03 20:10:11 +02:00
[[command_weechat_set]]
2016-05-14 23:44:36 +02:00
* `+set+`: set config options and environment variables
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/set [<option> [<value>]]
2012-12-20 18:18:33 +01:00
diff [<option> [<option>...]]
2014-06-27 07:54:53 +02:00
env [<variable> [<value>]]
2009-05-28 16:07:40 +02:00
2014-04-12 23:07:06 +02:00
option: name of an option (wildcard "*" is allowed)
2014-06-27 07:54:53 +02:00
value: new value for option, according to type:
boolean: on, off or toggle
integer: number, ++number or --number
string: any string ("" for empty string)
color: color name, ++number or --number
2014-06-27 22:04:56 +02:00
Note: for all types, you can use null to remove option value (undefined value). This works only for some special plugin variables.
2012-12-20 18:18:33 +01:00
diff: display only changed options
2014-06-27 07:54:53 +02:00
env: display or set an environment variable (use value "" to unset a variable)
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
Examples:
display options about highlight:
/set *highlight*
add a word to highlight:
/set weechat.look.highlight "word"
2012-12-20 18:18:33 +01:00
display changed options:
/set diff
display changed options in irc plugin:
/set diff irc.*
2014-06-27 07:54:53 +02:00
display value of environment variable LANG:
/set env LANG
set environment variable LANG and use it:
/set env LANG fr_FR.UTF-8
/upgrade
unset environment variable ABC:
/set env ABC ""
2013-11-04 21:41:34 +01:00
----
2009-05-28 16:07:40 +02:00
2011-08-03 20:10:11 +02:00
[[command_weechat_unset]]
2016-05-14 23:44:36 +02:00
* `+unset+`: unset/reset config options
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/unset <option>
2014-07-12 09:14:56 +02:00
-mask <option>
2009-05-28 16:07:40 +02:00
2014-07-12 09:14:56 +02:00
option: name of an option
-mask: use a mask in option (wildcard "*" is allowed to mass-reset options, use carefully!)
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
According to option, it's reset (for standard options) or removed (for optional settings, like server values).
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
Examples:
reset one option:
/unset weechat.look.item_time_format
reset all color options:
2014-07-12 09:14:56 +02:00
/unset -mask weechat.color.*
2013-11-04 21:41:34 +01:00
----
2009-05-28 16:07:40 +02:00
2011-08-03 20:10:11 +02:00
[[command_weechat_upgrade]]
2016-05-14 23:44:36 +02:00
* `+upgrade+`: upgrade WeeChat without disconnecting from servers
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2015-07-14 07:58:21 +02:00
/upgrade [-yes] [<path_to_binary>|-quit]
2009-05-28 16:07:40 +02:00
2016-02-12 07:39:38 +01:00
-yes: required if option "weechat.look.confirm_upgrade" is enabled
2011-02-04 22:12:19 +01:00
path_to_binary: path to WeeChat binary (default is current binary)
2013-07-05 18:22:10 +02:00
-dummy: do nothing (option used to prevent accidental completion with "-quit")
2012-10-18 20:59:56 +02:00
-quit: close *ALL* connections, save session and quit WeeChat, which makes possible a delayed restoration (see below)
2009-05-28 16:07:40 +02:00
2011-09-30 16:37:49 +02:00
This command upgrades and reloads a running WeeChat session. The new WeeChat binary must have been compiled or installed with a package manager before running this command.
2009-05-28 16:07:40 +02:00
2011-08-07 11:22:16 +02:00
Note: SSL connections are lost during upgrade, because reload of SSL sessions is currently not possible with GnuTLS. There is automatic reconnection after upgrade.
2011-08-06 23:06:18 +02:00
2011-02-04 22:12:19 +01:00
Upgrade process has 4 steps:
1. save session into files for core and plugins (buffers, history, ..)
2. unload all plugins (configuration files (*.conf) are written on disk)
3. save WeeChat configuration (weechat.conf)
4. execute new WeeChat binary and reload session.
2012-10-18 20:59:56 +02:00
With option "-quit", the process is slightly different:
1. close *ALL* connections (irc, xfer, relay, ...)
2. save session into files (*.upgrade)
3. unload all plugins
4. save WeeChat configuration
5. quit WeeChat
2013-08-02 08:54:16 +02:00
Then later you can restore session with command: weechat --upgrade
2012-10-18 20:59:56 +02:00
IMPORTANT: you must restore the session with exactly same configuration (files *.conf).
2013-07-02 15:41:48 +02:00
It is possible to restore WeeChat session on another machine if you copy the content of directory "~/.weechat".
2013-11-04 21:41:34 +01:00
----
2009-05-28 16:07:40 +02:00
2011-08-03 20:10:11 +02:00
[[command_weechat_uptime]]
2016-05-14 23:44:36 +02:00
* `+uptime+`: show WeeChat uptime
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/uptime [-o | -ol]
2009-05-28 16:07:40 +02:00
2014-01-29 22:37:33 +01:00
-o: send uptime to current buffer as input (English string)
2011-02-04 22:12:19 +01:00
-ol: send uptime to current buffer as input (translated string)
2013-11-04 21:41:34 +01:00
----
2009-05-28 16:07:40 +02:00
2011-08-03 20:10:11 +02:00
[[command_weechat_version]]
2016-05-14 23:44:36 +02:00
* `+version+`: show WeeChat version and compilation date
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/version [-o | -ol]
2009-05-28 16:07:40 +02:00
2014-01-29 22:37:33 +01:00
-o: send version to current buffer as input (English string)
2011-02-04 22:12:19 +01:00
-ol: send version to current buffer as input (translated string)
2015-01-29 07:49:55 +01:00
The default alias /v can be used to execute this command on all buffers (otherwise the irc command /version is used on irc buffers).
2013-11-04 21:41:34 +01:00
----
2009-05-28 16:07:40 +02:00
2011-08-03 20:10:11 +02:00
[[command_weechat_wait]]
2016-05-14 23:44:36 +02:00
* `+wait+`: schedule a command execution in future
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/wait <number>[<unit>] <command>
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
number: amount of time to wait (integer number)
unit: optional, values are:
ms: milliseconds
s: seconds (default)
m: minutes
h: hours
command: command to execute (or text to send to buffer if command does not start with '/')
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
Note: command is executed on buffer where /wait was executed (if buffer is not found (for example if it has been closed before execution of command), then command is executed on WeeChat core buffer).
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
Examples:
join channel in 10 seconds:
/wait 10 /join #test
set away in 15 minutes:
/wait 15m /away -all I'm away
say 'hello' in 2 minutes:
/wait 2m hello
2013-11-04 21:41:34 +01:00
----
2009-05-28 16:07:40 +02:00
2011-08-03 20:10:11 +02:00
[[command_weechat_window]]
2016-05-14 23:44:36 +02:00
* `+window+`: manage windows
2013-10-20 11:39:11 +02:00
2013-11-04 21:41:34 +01:00
----
2011-02-04 22:12:19 +01:00
/window list
2011-07-29 19:46:02 +02:00
-1|+1|b#|up|down|left|right [-window <number>]
<number>
splith|splitv [-window <number>] [<pct>]
resize [-window <number>] [+/-]<pct>
2011-04-23 13:21:10 +02:00
balance
2011-07-29 19:46:02 +02:00
merge [-window <number>] [all]
page_up|page_down [-window <number>]
2011-02-04 22:12:19 +01:00
refresh
2011-07-29 19:46:02 +02:00
scroll [-window <number>] [+/-]<value>[s|m|h|d|M|y]
scroll_horiz [-window <number>] [+/-]<value>[%]
2013-07-20 12:00:02 +02:00
scroll_up|scroll_down|scroll_top|scroll_bottom|scroll_beyond_end|scroll_previous_highlight|scroll_next_highlight|scroll_unread [-window <number>]
2011-07-29 19:46:02 +02:00
swap [-window <number>] [up|down|left|right]
2015-07-22 07:52:18 +02:00
zoom [-window <number>]
2014-02-16 11:29:03 +01:00
bare [<delay>]
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
list: list opened windows (without argument, this list is displayed)
-1: jump to previous window
+1: jump to next window
b#: jump to next window displaying buffer number #
up: switch to window above current one
down: switch to window below current one
left: switch to window on the left
right: switch to window on the right
2011-07-29 19:46:02 +02:00
number: window number (see /window list)
2011-02-04 22:12:19 +01:00
splith: split current window horizontally
splitv: split current window vertically
resize: resize window size, new size is <pct> percentage of parent window
2011-05-07 17:30:22 +02:00
balance: balance the sizes of all windows
2011-02-04 22:12:19 +01:00
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
2011-05-16 15:33:44 +02:00
scroll: scroll a number of lines (+/-N) or with time: s=seconds, m=minutes, h=hours, d=days, M=months, y=years
scroll_horiz: scroll horizontally a number of columns (+/-N) or percentage of window size (this scrolling is possible only on buffers with free content)
2011-02-04 22:12:19 +01:00
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
2013-07-20 12:00:02 +02:00
scroll_beyond_end: scroll beyond the end of buffer
2011-02-04 22:12:19 +01:00
scroll_previous_highlight: scroll to previous highlight
scroll_next_highlight: scroll to next highlight
2012-01-24 21:20:52 +01:00
scroll_unread: scroll to unread marker
2011-04-22 21:56:54 +02:00
swap: swap buffers of two windows (with optional direction for target window)
2011-02-04 22:12:19 +01:00
zoom: zoom on window
2014-04-02 13:29:58 +02:00
bare: toggle bare display (with optional delay in seconds for automatic return to standard display mode)
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
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
2009-05-28 16:07:40 +02:00
2011-02-04 22:12:19 +01:00
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
2011-07-29 19:46:02 +02:00
zoom on window #2:
/window zoom -window 2
2014-04-02 13:29:58 +02:00
enable bare display for 2 seconds:
/window bare 2
2013-11-04 21:41:34 +01:00
----