33
edits
No edit summary |
|||
Line 111: | Line 111: | ||
'''Note:''' Watch out for caps lock if you're keybinding. If you bind Alt+y to a command, Alt+Y won't work (unless you bind that separately). If you find your binds aren't working, check your caps. | '''Note:''' Watch out for caps lock if you're keybinding. If you bind Alt+y to a command, Alt+Y won't work (unless you bind that separately). If you find your binds aren't working, check your caps. | ||
== Triggers == | |||
=== Spell Checker | Triggers are the swiss army knife of weechat. They can replace a '''lot''' of scripts, and we're still finding things to turn into trigger | ||
=== Turn any line with "nsfw" in it bright red === | |||
/trigger addreplace nsfw modifier weechat_print "${tg_notify} && ${tg_message_nocolor} =~ .*nsfw.*" "/(.*)/${tg_prefix}\t${color:red}!NSFW! ${tg_message}" | |||
=== Make urls underlined and blue === | |||
/trigger addreplace url_color modifier "weechat_print" "${tg_tags} !~ irc_quit" ";[a-z]+://\S+;${color:32}${color:underline}${re:0}${color:-underline}${color:reset};" "" | |||
=== Strip items such as buffer list and nick list from screen on smaller screens === | |||
/trigger addreplace resize_small_timestamp signal signal_sigwinch "${info:term_width} < 200" "" "/set weechat.look.buffer_time_format """ | |||
=== turn off nicklist on smaller screens === | |||
/trigger addreplace resize_big signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show nicklist" | |||
/trigger addreplace resize_small signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide nicklist" | |||
=== turn off buffer list on small screens === | |||
/trigger addreplace resize_small_buffer signal signal_sigwinch "${info:term_width} < 100" "" "/bar hide buffer" | |||
/trigger add replace resize_big_buffer signal signal_sigwinch "${info:term_width} >= 100" "" "/bar show buffer" | |||
== Spell Checker == | |||
Weechat uses a handy aspell plugin to check your spelling. To enable it, either use iset or use | Weechat uses a handy aspell plugin to check your spelling. To enable it, either use iset or use | ||
Line 134: | Line 146: | ||
The aspell plugin can also offer suggestions as of 0.4.0 and it can be added as an item to your status bar. The item should be added to weechat.bar.status.items. For instance: | The aspell plugin can also offer suggestions as of 0.4.0 and it can be added as an item to your status bar. The item should be added to weechat.bar.status.items. For instance: | ||
/set weechat.bar.status.items "time |,buffer_number+:buffer_name+(buffer_modes)+ |,buffer_nicklist_count |,hotlist |,[aspell_suggest] | /set weechat.bar.status.items "time |,buffer_number+:buffer_name+(buffer_modes)+ |,buffer_nicklist_count |,hotlist |,[aspell_suggest] | ||
edits