Collected by Darix.
/alias hideadd eval set activity_hide_targets $activity_hide_targets $- /alias hideclear set -c activity_hide_targets /alias hidelevels.clear set -c activity_hide_level /alias hidelevels.set set activity_hide_level parts joins quits nicks modes /alias hidelist set activity_hide_targets /alias hideset set activity_hide_targets $-
i have replaced the aliases with a simple script. see hide.pl ( source )
/set beep_when_window_active ON /set beep_when_away ON /set beep_msg_level MSGS NOTICES DCC DCCMSGS HILIGHT /set bell_beeps ON
/format own_msg {ownmsgnick $2 {ownnick $[-9]0}}$1
/format own_msg_channel {ownmsgnick $3 {ownnick $[-9]0}{msgchannel $1}}$2
/format pubmsg_me {pubmsgmenick $2 {menick $[-9]0}}$1
/format pubmsg_me_channel {pubmsgmenick $3 {menick $[-9]0}{msgchannel $1}}$2
/format pubmsg_hilight {pubmsghinick $0 $3 $[-9]1}$2
/format pubmsg_hilight_channel {pubmsghinick $0 $4 $[-9]1{msgchannel $2}}$3
/format pubmsg {pubmsgnick $2 {pubnick $[-9]0}}$1
/format pubmsg_channel {pubmsgnick $3 {pubnick $[-9]0}{msgchannel $1}}$2
UPTIME
= "eval exec - expr `date +%s` - \\$F | awk '{print \"Irssi uptime:
\"int(\\\\\\$1/3600/24)\"d \"int(\\\\\\$1/3600%24)\"h
\"int(\\\\\\$1/60%60)\"m \"int(\\\\\\$1%60)\"s\" }'";
replaces = (
{ text = ".)"; replace = ":)"; },
{ text = ":9"; replace = ":)"; }
);
These replaces would be replaced on pressing space or return. But you can add some bindings for it.
/bind , multi check_replaces;insert_text ,Now pressing . or , will replace it too.
completions = (
{ short = "sid"; long = "http://scripts.irssi.de/"; },
{ short = "wid"; long = "http://www.irssi.de/"; },
{ short = "ios"; long = "http://irssi.org/scripts/"; }
);
Write wid press tab key and it will be replaced with http://www.irssi.de/.
With latest irssi cvs the format changed a bit. cras merged replaces and completions
completions = {
wid = { value = "http://www.irssi.de/"; };
sid = { value = "http://scripts.irssi.de/"; };
ios = { value = "http://irssi.org/scripts/"; };
":9" = { value = ":)"; auto = "yes"; };
};
And there is now a command to maintain the completions:
/completion [-auto] <key> <value>
/completion -delete <key>
To get the replaces like behavior add the completion with -auto.