-
-
Save akiva/de1839f6f6a8b45f403fb049a2c8fa5e to your computer and use it in GitHub Desktop.
Revisions
-
pascalpoitras revised this gist
Jan 13, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -520,7 +520,7 @@ The last bind cycle through hidden buffers in ${sec.data.hiddenbuffers} and then /alias add fu /say (╹◡╹)凸 $* /alias add multicomm /alias add temp $*;/temp /alias add znc-o /exec -o -sh znc --version | head -1 | cut -d' ' -f1-2 /alias add funnyversion /eval ${info:perl_eval,print((qw(mIRC irssi KVIrc HexChat AdiIRC BitchX))[rand 6])} ${info:version} (git: ${info:version_git}) [compiled on ${info:date}] The multicomm alias will allow you to type multi command like this /multicomm comm1;comm2 -
pascalpoitras revised this gist
Jan 13, 2018 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -520,6 +520,8 @@ The last bind cycle through hidden buffers in ${sec.data.hiddenbuffers} and then /alias add fu /say (╹◡╹)凸 $* /alias add multicomm /alias add temp $*;/temp /alias add znc-o /exec -o -sh znc --version | head -1 | cut -d' ' -f1-2 /alias add funnyversion /eval ${info:perl_eval,print((qw(mIRC irssi KVIrc HexChat AdiIRC BitchX))[rand 5])} ${info:version} (git: ${info:version_git}) [compiled on ${info:date,%Y}] The multicomm alias will allow you to type multi command like this /multicomm comm1;comm2 -
pascalpoitras revised this gist
Jan 13, 2018 . 1 changed file with 2 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -468,7 +468,8 @@ The trigger _upgrade_scripts_ will update the local script cache and then upgrad /trigger add modifier_is_nick_valid modifier input_text_display /trigger set modifier_is_nick_valid conditions "${tg_string_nocolor} =~ ^/nick .+ && ${buffer.plugin.name} == irc" /trigger set modifier_is_nick_valid regex "==/nick (.+)==${re:1}==tg_string_nocolor ===/nick (.+)===/nick ${if:${info:irc_is_nick,${tg_string_nocolor}}&&${cut:${info:irc_server_isupport_value,${server},NICKLEN},,${tg_string_nocolor}}==${tg_string_nocolor}?${color:*green}:${color:*red}}${re:1} -- NICKLEN:${color:-bold} ${info:perl_eval,print ${info:irc_server_isupport_value,${server},NICKLEN} - (${buffer.input_buffer_length} - 6) . ' /'} ${info:irc_server_isupport_value,${server},NICKLEN} ${color:bold}Allowed Chars: ${color:-bold}${esc:a-zA-Z0-9_-\[]{}^`|}===tg_string" The trigger modifier_is_nick_valid will give you hint about max nickname length and available character in nickname and will also tell you if the nick is valid (green) or not (red). Note that it doesn't works with -all option of the /nick command. -
pascalpoitras revised this gist
Jan 9, 2018 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -357,7 +357,7 @@ Note: split the highlight monitor window in 2 and show conky in the new one /trigger add chanmon_like print "" /trigger set chanmon_like conditions "${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg, && ${buffer.full_name} != irc.freenode.##news" /trigger set chanmon_like command "/print -newbuffer chanmon -tags ${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?${weechat.look.quote_nick_prefix}${tg_prefix}${color:reset}${weechat.look.quote_nick_suffix}:${tg_prefix}${color:reset}} ${tg_message}" This trigger create a new buffer named chanmon. This buffer will contain all the messages from all the channels you are on. This is almost identical to the scripts chanmon.pl but without any options. @@ -369,7 +369,7 @@ This trigger create a new buffer named chanmon. This buffer will contain all the /trigger add highmon_like print "" /trigger set highmon_like conditions "${tg_highlight} == 1 && ${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg," /trigger set highmon_like command "/print -newbuffer highmon -tags ${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?${weechat.look.quote_nick_prefix}${tg_prefix}${color:reset}${weechat.look.quote_nick_suffix}:${tg_prefix}${color:reset}} ${tg_message}" This trigger create a new buffer named highmon. This buffer will contain all the highlighted message from all the channels you are on. This is similar to the highmon.pl script but without any options. -
pascalpoitras revised this gist
Jan 9, 2018 . 1 changed file with 3 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -353,6 +353,8 @@ Note: split the highlight monitor window in 2 and show conky in the new one  /buffer_autoset add core.chanmon title Channels Monitor /trigger add chanmon_like print "" /trigger set chanmon_like conditions "${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg, && ${buffer.full_name} != irc.freenode.##news" /trigger set chanmon_like command "/print -newbuffer chanmon -tags ${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?<${tg_prefix}${color:reset}>:${tg_prefix}${color:reset}} ${tg_message}" @@ -363,6 +365,7 @@ This trigger create a new buffer named chanmon. This buffer will contain all the ## Highlight Monitor /buffer_autoset add core.highmon title Highlight Monitor /trigger add highmon_like print "" /trigger set highmon_like conditions "${tg_highlight} == 1 && ${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg," -
pascalpoitras revised this gist
Jan 9, 2018 . 1 changed file with 24 additions and 24 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -348,6 +348,30 @@ Note: Instead of having only one window, we split it to create another one that Note: split the highlight monitor window in 2 and show conky in the new one ## Channel Monitor  /trigger add chanmon_like print "" /trigger set chanmon_like conditions "${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg, && ${buffer.full_name} != irc.freenode.##news" /trigger set chanmon_like command "/print -newbuffer chanmon -tags ${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?<${tg_prefix}${color:reset}>:${tg_prefix}${color:reset}} ${tg_message}" This trigger create a new buffer named chanmon. This buffer will contain all the messages from all the channels you are on. This is almost identical to the scripts chanmon.pl but without any options. ## Highlight Monitor /trigger add highmon_like print "" /trigger set highmon_like conditions "${tg_highlight} == 1 && ${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg," /trigger set highmon_like command "/print -newbuffer highmon -tags ${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?<${tg_prefix}${color:reset}>:${tg_prefix}${color:reset}} ${tg_message}" This trigger create a new buffer named highmon. This buffer will contain all the highlighted message from all the channels you are on. This is similar to the highmon.pl script but without any options. ## News  @@ -418,30 +442,6 @@ Well If we use this, the input bar will be filled with the command and not the u These alias send info about the current stable version of WeeChat and the next stable to the channel. The alias call exec and the output of exec is send as a hsignal. So the triggers handle the output. ## Highlight -
pascalpoitras revised this gist
Jan 9, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -436,7 +436,7 @@ This trigger create a new buffer named chanmon. This buffer will contain all the /trigger add highmon_like print "" /trigger set highmon_like conditions "${tg_highlight} == 1 && ${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg," /trigger set highmon_like command "/print -newbuffer highmon -tags ${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?<${tg_prefix}${color:reset}>:${tg_prefix}${color:reset}} ${tg_message}" This trigger create a new buffer named highmon. This buffer will contain all the highlighted message from all the channels you are on. This is similar to the highmon.pl script but without any options. -
pascalpoitras revised this gist
Jan 9, 2018 . 2 changed files with 15 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -108,13 +108,7 @@ Note: I do not log IRC conversation via _WeeChat_ (I log via _ZNC_). However, I ## Scripts /script install buffer_autoset.py perlexec.pl autosort.py grep.py text_item.py ### autosort.py @@ -333,7 +327,7 @@ This bar will be exactly like a default nicklist bar. That is, right-positionned /perlexec my $total = weechat::hdata_integer(weechat::hdata_get("window"), weechat::current_window(), "win_height"); weechat::command($buffer, "/window splith " . int(8 / $total * 100)); /buffer add -switch highmon /window 1 /layout store highlight-or-news @@ -434,7 +428,18 @@ These alias send info about the current stable version of WeeChat and the next s /trigger set chanmon_like command "/print -newbuffer chanmon -tags ${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?<${tg_prefix}${color:reset}>:${tg_prefix}${color:reset}} ${tg_message}" This trigger create a new buffer named chanmon. This buffer will contain all the messages from all the channels you are on. This is almost identical to the scripts chanmon.pl but without any options. ## Highlight Monitor /trigger add highmon_like print "" /trigger set highmon_like conditions "${tg_highlight} == 1 && ${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg," /trigger set chanmon_like command "/print -newbuffer highmon -tags ${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?<${tg_prefix}${color:reset}>:${tg_prefix}${color:reset}} ${tg_message}" This trigger create a new buffer named highmon. This buffer will contain all the highlighted message from all the channels you are on. This is similar to the highmon.pl script but without any options. ## Highlight This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -8,7 +8,7 @@ /secure set bncpass <pass> /secure set relaypass <pass> /secure set hiddenbuffers <list of hidden buffers full name> /script install buffer_autoset.py perlexec.pl autosort.py grep.py text_item.py ## Once scripts are installed -
pascalpoitras revised this gist
Jan 9, 2018 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -429,11 +429,9 @@ These alias send info about the current stable version of WeeChat and the next s  /trigger add chanmon_like print "" /trigger set chanmon_like conditions "${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg, && ${buffer.full_name} != irc.freenode.##news" /trigger set chanmon_like command "/print -newbuffer chanmon -tags ${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?<${tg_prefix}${color:reset}>:${tg_prefix}${color:reset}} ${tg_message}" This trigger create a new buffer named chanmon. This buffer will contain all the messages from all the channels you are on. This is almost identical to the scripts chanmon.pl. -
pascalpoitras revised this gist
Jan 9, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -429,7 +429,7 @@ These alias send info about the current stable version of WeeChat and the next s  /buffer_autoset add core.core.chanmon short_name chanmon /trigger add chanmon_like print "" /trigger set chanmon_like conditions "${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg, && ${buffer.full_name} != irc.freenode.##news" -
pascalpoitras revised this gist
Jan 9, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -427,7 +427,7 @@ These alias send info about the current stable version of WeeChat and the next s ## Channel Monitor  /buffer_autoset add core.chanmon short_name chanmon -
pascalpoitras revised this gist
Jan 9, 2018 . 1 changed file with 9 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -138,7 +138,7 @@ channels (begin with & and #) will appears right below the server, private messa ### exec conky at startup and right now /set weechat.startup.command_after_plugins "/exec -norc -noln -buffer conky conky" /exec -norc -noln -buffer conky conky @@ -427,9 +427,16 @@ These alias send info about the current stable version of WeeChat and the next s ## Channel Monitor  /buffer_autoset add core.chanmon short_name chanmon /trigger add chanmon_like print "" /trigger set chanmon_like conditions "${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg, && ${buffer.full_name} != irc.freenode.##news" /trigger set chanmon_like command "/print -newbuffer core.chanmon -tags ${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t${if:${tg_tags} !~ ,irc_action,?<${tg_prefix}${color:reset}>:${tg_prefix}${color:reset}} ${tg_message}" This trigger create a new buffer named chanmon. This buffer will contain all the messages from all the channels you are on. This is almost identical to the scripts chanmon.pl. ## Highlight -
pascalpoitras revised this gist
Jan 8, 2018 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -138,7 +138,7 @@ channels (begin with & and #) will appears right below the server, private messa ### exec conky at startup and right now /set weechat.startup.command_after_plugins "/exec -norc -noln -buffer conky conky;/buffer add chanmon" /exec -norc -noln -buffer conky conky @@ -427,9 +427,9 @@ These alias send info about the current stable version of WeeChat and the next s ## Channel Monitor /trigger add chanmon_like print "" /trigger set chanmon_like conditions "${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg, && ${buffer.full_name} != irc.freenode.##news" /trigger set chanmon_like command "/print -buffer core.chanmon -tags nick_${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t<${tg_prefix}${color:reset}> ${tg_message}" ## Highlight -
pascalpoitras revised this gist
Jan 8, 2018 . 1 changed file with 8 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -424,6 +424,14 @@ Well If we use this, the input bar will be filled with the command and not the u These alias send info about the current stable version of WeeChat and the next stable to the channel. The alias call exec and the output of exec is send as a hsignal. So the triggers handle the output. ## Channel Monitor /trigger add chanmon_like print "" /trigger set chanmon_like conditions "${buffer.local_variables.type} == channel && ${tg_tags} =~ ,irc_privmsg, && ${buffer.full_name} != irc.freenode.##news" /trigger set chanmon_like command "/print -buffer core.testing -tags nick_${tg_tags} ${color:${info:nick_color_name,${server}}}${cut:4,${color:${weechat.color.chat_prefix_more}}${weechat.look.prefix_align_more},${server}}${color:${info:nick_color_name,${channel}}}${channel}\t<${tg_prefix}${color:reset}> ${tg_message}" ## Highlight -
pascalpoitras revised this gist
Jan 8, 2018 . 1 changed file with 0 additions and 9 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -441,13 +441,6 @@ These alias send info about the current stable version of WeeChat and the next s /trigger set upgrade_scripts command "/script update;/wait 10s /script upgrade" The trigger _upgrade_scripts_ will update the local script cache and then upgrade all the installed scripts at midnight.   @@ -473,8 +466,6 @@ The trigger modifier_is_nick_valid will give you hint about max nickname length /key bindctxt cursor @item(buflist):H /command -buffer ${full_name} irc /allchan -current buffer unhide;/command -buffer ${full_name} irc /allpv -current buffer unhide;/cursor stop /key bindctxt cursor @chat(*):g /window ${_window_number};/customgrep ${_chat_line_nick};/cursor stop /key bindctxt cursor @item(buffer_nicklist):g /window ${_window_number};/customgrep ${nick};/cursor stop /key bindctxt cursor @chat(*):a /command -buffer ${buffer.full_name} core /input insert ${_chat_bol}\x20;/cursor stop /key bindctxt cursor @chat(*):e /command -buffer ${buffer.full_name} core /input insert ${_chat_eol}\x20;/cursor stop -
pascalpoitras revised this gist
Jan 7, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -364,7 +364,7 @@ Note: split the highlight monitor window in 2 and show conky in the new one ##news is a news channel on Freenode. The bot is named _newsly_ and you should create a filter to hide everything that is not from this bot. You should also create a filter to hide all the sites you don't mind about. /trigger add news_modifier modifier weechat_print /trigger set news_modifier conditions "${tg_tag_nick} =~ ^newsly_? && ${tg_tags} =~ ,irc_privmsg, && ${tg_buffer} == irc.freenode.##news" /trigger set news_modifier regex "/.*// ==https?://.*====tg_message ==.*(https?://\S+).*==${re:1}==tg_message_nocolor /\+/%2B/tg_message_nocolor /,/%2C/tg_message_nocolor /\!/%21/tg_message_nocolor /\*/%2A/tg_message_nocolor" /trigger set news_modifier command "/print -buffer ${tg_buffer} -tags ${tg_tags},url_${tg_message_nocolor} \t${tg_message}" -
pascalpoitras revised this gist
Jan 5, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -508,7 +508,7 @@ The last bind cycle through hidden buffers in ${sec.data.hiddenbuffers} and then /alias add multicomm /alias add temp $*;/temp /alias add znc-o /exec -o -sh znc --version | head -1 | cut -d' ' -f1-2 The multicomm alias will allow you to type multi command like this /multicomm comm1;comm2 ## Filters -
pascalpoitras revised this gist
Jan 5, 2018 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -386,7 +386,7 @@ Same trigger (must be used with the regex above, from the powerline version) but /trigger add hsignal_news_click hsignal news_click /trigger set hsignal_news_click regex "/.*,url_([^,]+).*/${re:1}/_chat_line_tags" /trigger set hsignal_news_click command "/command -buffer ${buffer.full_name} core /input insert ${if:${_key}==m?${_chat_line_message} }${_chat_line_tags}\x20" /key bindctxt cursor @chat(irc.freenode.##news):i hsignal:news_click;/cursor stop /key bindctxt cursor @chat(irc.freenode.##news):m hsignal:news_click;/cursor stop @@ -476,9 +476,9 @@ The trigger modifier_is_nick_valid will give you hint about max nickname length /key bindctxt cursor @chat(*):G /window ${_window_number};/input delete_line;/input insert /send_to_active_grep_log_nick ${_chat_line_nick}\x20;/cursor stop /key bindctxt cursor @item(buffer_nicklist):G /window ${_window_number};/input delete_line;/input insert /send_to_active_grep_log_nick ${nick}\x20;/cursor stop /key bindctxt cursor @chat(*):a /command -buffer ${buffer.full_name} core /input insert ${_chat_bol}\x20;/cursor stop /key bindctxt cursor @chat(*):e /command -buffer ${buffer.full_name} core /input insert ${_chat_eol}\x20;/cursor stop /key bindctxt cursor @chat(*):w /command -buffer ${buffer.full_name} core /input insert ${_chat_word}\x20;/cursor stop I use _/buffer hide_ when I want to hide a buffer in the buffers bar but still want to be able to access it. I use _/znc detach_ on all channels that I have joined only for logging the discussion. -
pascalpoitras revised this gist
Jan 4, 2018 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -476,9 +476,9 @@ The trigger modifier_is_nick_valid will give you hint about max nickname length /key bindctxt cursor @chat(*):G /window ${_window_number};/input delete_line;/input insert /send_to_active_grep_log_nick ${_chat_line_nick}\x20;/cursor stop /key bindctxt cursor @item(buffer_nicklist):G /window ${_window_number};/input delete_line;/input insert /send_to_active_grep_log_nick ${nick}\x20;/cursor stop /key bindctxt cursor @chat(*):a /command -buffer ${buffer.full_name} core /input insert ${_chat_bol};/cursor stop /key bindctxt cursor @chat(*):e /command -buffer ${buffer.full_name} core /input insert ${_chat_eol};/cursor stop /key bindctxt cursor @chat(*):w /command -buffer ${buffer.full_name} core /input insert ${_chat_word};/cursor stop I use _/buffer hide_ when I want to hide a buffer in the buffers bar but still want to be able to access it. I use _/znc detach_ on all channels that I have joined only for logging the discussion. -
pascalpoitras revised this gist
Jan 3, 2018 . 1 changed file with 9 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -368,7 +368,7 @@ Note: split the highlight monitor window in 2 and show conky in the new one /trigger set news_modifier regex "/.*// ==https?://.*====tg_message ==.*(https?://\S+).*==${re:1}==tg_message_nocolor /\+/%2B/tg_message_nocolor /,/%2C/tg_message_nocolor /\!/%21/tg_message_nocolor /\*/%2A/tg_message_nocolor" /trigger set news_modifier command "/print -buffer ${tg_buffer} -tags ${tg_tags},url_${tg_message_nocolor} \t${tg_message}" This trigger will remove the URL in the message and add it is a tag instead. Middle-click and press i on a message and the input bar will be fill with the URL, then click on the URL. If the URL is too long and is broken, press enter to echo it to ##news (nobody will see it because the channel is +m), go in bare mode (ALT+L) and click on the URL. You can also change this behavior to open the URL as soon as you click on the message. Middle-click and press m on a message and the input bar will be fill with the text and the URL. /trigger set news_modifier regex "/.*// /.*/${tg_message_nocolor}/tg_message /^\[([^]]+)]/[${color:*${info:nick_color_name,${re:1}}}${re:1}${color:resetcolor}]/tg_message ==https?://.*====tg_message ==.*(https?://\S+).*==${re:1}==tg_message_nocolor /\+/%2B/tg_message_nocolor /,/%2C/tg_message_nocolor /\!/%21/tg_message_nocolor /\*/%2A/tg_message_nocolor" /trigger set news_modifier command "/print -buffer ${tg_buffer} -tags ${tg_tags},url_${tg_message_nocolor} \t${tg_message}" @@ -386,7 +386,10 @@ Same trigger (must be used with the regex above, from the powerline version) but /trigger add hsignal_news_click hsignal news_click /trigger set hsignal_news_click regex "/.*,url_([^,]+).*/${re:1}/_chat_line_tags" /trigger set hsignal_news_click command "/command -buffer ${buffer.full_name} core /input insert ${if:${_key}==m?${_chat_line_message} }${_chat_line_tags}" /key bindctxt cursor @chat(irc.freenode.##news):i hsignal:news_click;/cursor stop /key bindctxt cursor @chat(irc.freenode.##news):m hsignal:news_click;/cursor stop ## ptpb @@ -472,6 +475,10 @@ The trigger modifier_is_nick_valid will give you hint about max nickname length /key bindctxt cursor @item(buffer_nicklist):g /window ${_window_number};/customgrep ${nick};/cursor stop /key bindctxt cursor @chat(*):G /window ${_window_number};/input delete_line;/input insert /send_to_active_grep_log_nick ${_chat_line_nick}\x20;/cursor stop /key bindctxt cursor @item(buffer_nicklist):G /window ${_window_number};/input delete_line;/input insert /send_to_active_grep_log_nick ${nick}\x20;/cursor stop /key bindctxt cursor @chat(*):a /input insert ${_chat_bol};/cursor stop /key bindctxt cursor @chat(*):e /input insert ${_chat_eol};/cursor stop /key bindctxt cursor @chat(*):w /input insert ${_chat_word};/cursor stop I use _/buffer hide_ when I want to hide a buffer in the buffers bar but still want to be able to access it. I use _/znc detach_ on all channels that I have joined only for logging the discussion. -
pascalpoitras revised this gist
Dec 26, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -499,6 +499,7 @@ The last bind cycle through hidden buffers in ${sec.data.hiddenbuffers} and then /alias add znc /quote znc /alias add fu /say (╹◡╹)凸 $* /alias add multicomm /alias add temp $*;/temp /alias add znc-o /exec -o -sh znc --version | head -1 | cut -d' ' -f1-2 The last alias will allow you to type multi command like this /multicomm comm1;comm2 -
pascalpoitras revised this gist
Dec 26, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -497,6 +497,7 @@ The last bind cycle through hidden buffers in ${sec.data.hiddenbuffers} and then /alias add slap /me slaps $1 around a bit with a large trout /alias add customgrep /input delete_line;/input insert /grep log */$server/$channel.* -a ^\[\d{2}:\d{2}:\d{2}\] <%{escape $1}>\x20 /alias add znc /quote znc /alias add fu /say (╹◡╹)凸 $* /alias add multicomm /alias add temp $*;/temp The last alias will allow you to type multi command like this /multicomm comm1;comm2 -
pascalpoitras revised this gist
Nov 18, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@  ## Enable mouse support -
pascalpoitras revised this gist
Nov 18, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,4 @@  ## Enable mouse support -
pascalpoitras revised this gist
Nov 18, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -404,6 +404,7 @@ Well If we use this, the input bar will be filled with the command and not the u ## Dev info  /trigger add devinfofr hsignal devinfofr /trigger set devinfofr regex "/\n/ /out / (stable_number|git|git_scripts|next_stable|next_stable_number):\S+//out /^stable:(\S+)/La version stable de WeeChat est la ${re:1}./out / stable_date:(\S+)/ Elle est la version stable depuis le ${re:1}./out / devel:(\S+)/ La version devel de WeeChat est la ${re:1}./out / next_stable_date:(\S+)/ La prochaine stable devrait arriver aux alentour du ${re:1}./out /([0-9]{4})-01-([0-9]{2})/${re:2} Janvier ${re:1}/out /([0-9]{4})-02-([0-9]{2})/${re:2} Février ${re:1}/out /([0-9]{4})-03-([0-9]{2})/${re:2} Mars ${re:1}/out /([0-9]{4})-04-([0-9]{2})/${re:2} Avril ${re:1}/out /([0-9]{4})-05-([0-9]{2})/${re:2} Mai ${re:1}/out /([0-9]{4})-06-([0-9]{2})/${re:2} Juin ${re:1}/out /([0-9]{4})-07-([0-9]{2})/${re:2} Juillet ${re:1}/out /([0-9]{4})-08-([0-9]{2})/${re:2} Août ${re:1}/out /([0-9]{4})-09-([0-9]{2})/${re:2} Septembre ${re:1}/out /([0-9]{4})-10-([0-9]{2})/${re:2} Octobre ${re:1}/out /([0-9]{4})-11-([0-9]{2})/${re:2} Novembre ${re:1}/out /([0-9]{4})-12-([0-9]{2})/${re:2} Décembre ${re:1}/out" -
pascalpoitras revised this gist
Nov 18, 2017 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -406,11 +406,11 @@ Well If we use this, the input bar will be filled with the command and not the u /trigger add devinfofr hsignal devinfofr /trigger set devinfofr regex "/\n/ /out / (stable_number|git|git_scripts|next_stable|next_stable_number):\S+//out /^stable:(\S+)/La version stable de WeeChat est la ${re:1}./out / stable_date:(\S+)/ Elle est la version stable depuis le ${re:1}./out / devel:(\S+)/ La version devel de WeeChat est la ${re:1}./out / next_stable_date:(\S+)/ La prochaine stable devrait arriver aux alentour du ${re:1}./out /([0-9]{4})-01-([0-9]{2})/${re:2} Janvier ${re:1}/out /([0-9]{4})-02-([0-9]{2})/${re:2} Février ${re:1}/out /([0-9]{4})-03-([0-9]{2})/${re:2} Mars ${re:1}/out /([0-9]{4})-04-([0-9]{2})/${re:2} Avril ${re:1}/out /([0-9]{4})-05-([0-9]{2})/${re:2} Mai ${re:1}/out /([0-9]{4})-06-([0-9]{2})/${re:2} Juin ${re:1}/out /([0-9]{4})-07-([0-9]{2})/${re:2} Juillet ${re:1}/out /([0-9]{4})-08-([0-9]{2})/${re:2} Août ${re:1}/out /([0-9]{4})-09-([0-9]{2})/${re:2} Septembre ${re:1}/out /([0-9]{4})-10-([0-9]{2})/${re:2} Octobre ${re:1}/out /([0-9]{4})-11-([0-9]{2})/${re:2} Novembre ${re:1}/out /([0-9]{4})-12-([0-9]{2})/${re:2} Décembre ${re:1}/out" /trigger set devinfofr command "/command -buffer ${buffer.full_name} * /say ${out}" /trigger add devinfo hsignal devinfo /trigger set devinfo regex "/\n/ /out / (stable_number|git|git_scripts|next_stable|next_stable_number):\S+//out /^stable:(\S+)/The stable version of WeeChat is ${re:1}./out / stable_date:(\S+)/ It is the stable version since ${re:1}./out / devel:(\S+)/ The devel version of WeeChat is ${re:1}./out / next_stable_date:(\S+)/ The next stable should be release around ${re:1}./out /([0-9]{4})-01-([0-9]{2})/January ${re:2} ${re:1}/out /([0-9]{4})-02-([0-9]{2})/February ${re:2} ${re:1}/out /([0-9]{4})-03-([0-9]{2})/March ${re:2} ${re:1}/out /([0-9]{4})-04-([0-9]{2})/April ${re:2} ${re:1}/out /([0-9]{4})-05-([0-9]{2})/May ${re:2} ${re:1}/out /([0-9]{4})-06-([0-9]{2})/June ${re:2} ${re:1}/out /([0-9]{4})-07-([0-9]{2})/July ${re:2} ${re:1}/out /([0-9]{4})-08-([0-9]{2})/August ${re:2} ${re:1}/out /([0-9]{4})-09-([0-9]{2})/September ${re:2} ${re:1}/out /([0-9]{4})-10-([0-9]{2})/October ${re:2} ${re:1}/out /([0-9]{4})-11-([0-9]{2})/November ${re:2} ${re:1}/out /([0-9]{4})-12-([0-9]{2})/December ${re:2} ${re:1}/out" /trigger set devinfo command "/command -buffer ${buffer.full_name} * /say ${out}" /alias add devinfo /exec -norc -timeout 5 -hsignal devinfo url:https://weechat.org/dev/info/all/ -
pascalpoitras revised this gist
Nov 18, 2017 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -417,7 +417,7 @@ Well If we use this, the input bar will be filled with the command and not the u /alias add devinfofr /exec -norc -timeout 5 -hsignal devinfofr url:https://weechat.org/dev/info/all/ These alias send info about the current stable version of WeeChat and the next stable to the channel. The alias call exec and the output of exec is send as a hsignal. So the triggers handle the output. ## Highlight -
pascalpoitras revised this gist
Nov 18, 2017 . 1 changed file with 18 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -402,6 +402,24 @@ _/exec -sh -pipe "/input delete_line;/input insert " $* 2>&1 | curl -sF c=@- htt Well If we use this, the input bar will be filled with the command and not the url. ## Dev info /trigger add devinfofr hsignal devinfofr /trigger set devinfofr regex "/\n/ /out / (stable_number|git|git_scripts|next_stable|next_stable_number):\S+//out /^stable:(\S+)/La version stable de WeeChat est la ${re:1}./out / stable_date:(\S+)/ Elle est la version stable depuis le ${re:1}./out / devel:(\S+)/ La version devel de WeeChat est la ${re:1}./out / next_stable_date:(\S+)/ La prochaine stable devrait arriver aux alentour du ${re:1}./out" /trigger set devinfofr command "/command -buffer ${buffer.full_name} * /say ${out}" /trigger add devinfo hsignal devinfo /trigger set devinfo regex "/\n/ /out / (stable_number|git|git_scripts|next_stable|next_stable_number):\S+//out /^stable:(\S+)/The stable version of WeeChat is ${re:1}./out / stable_date:(\S+)/ It is the stable version since ${re:1}./out / devel:(\S+)/ The devel version of WeeChat is ${re:1}./out / next_stable_date:(\S+)/ The next stable should be release around ${re:1}./out" /trigger set devinfo command "/command -buffer ${buffer.full_name} * /say ${out}" /alias add devinfo /exec -norc -timeout 5 -hsignal devinfo url:https://weechat.org/dev/info/all/ /alias add devinfofr /exec -norc -timeout 5 -hsignal devinfofr url:https://weechat.org/dev/info/all/ These alias display info about the current stable version of WeeChat and the next stable in the active buffer. The alias call exec and the output of exec is send as a hsignal. So the triggers handle the output. ## Highlight -
pascalpoitras revised this gist
Nov 17, 2017 . 1 changed file with 1 addition and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,7 @@ /secure set bncaddrport <addr/port> /secure set bncpass <pass> /secure set relaypass <pass> /secure set hiddenbuffers <list of hidden buffers full name> /script install highmon.pl buffer_autoset.py perlexec.pl autosort.py grep.py text_item.py -
pascalpoitras revised this gist
Nov 17, 2017 . 1 changed file with 6 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -453,11 +453,9 @@ The trigger modifier_is_nick_valid will give you hint about max nickname length /key bindctxt cursor @item(buffer_nicklist):g /window ${_window_number};/customgrep ${nick};/cursor stop /key bindctxt cursor @chat(*):G /window ${_window_number};/input delete_line;/input insert /send_to_active_grep_log_nick ${_chat_line_nick}\x20;/cursor stop /key bindctxt cursor @item(buffer_nicklist):G /window ${_window_number};/input delete_line;/input insert /send_to_active_grep_log_nick ${nick}\x20;/cursor stop I use _/buffer hide_ when I want to hide a buffer in the buffers bar but still want to be able to access it. I use _/znc detach_ on all channels that I have joined only for logging the discussion. ## Others Keyboard shortcuts @@ -467,6 +465,11 @@ I use _/buffer hide_ when I want to hide a buffer in the buffers bar but still w /key bind meta2-A /input history_global_previous /key bind meta2-B /input history_global_next /key bind ctrl-V /eval ${if:${sec.data.hiddenbuffers} !~ \b${buffer_visited[last_gui_buffer_visited].buffer.full_name}\b?/mute /alias add temphiddenbuf /buffer cycle ${sec.data.hiddenbuffers} ${buffer_visited[last_gui_buffer_visited].buffer.full_name}};/temphiddenbuf The last bind cycle through hidden buffers in ${sec.data.hiddenbuffers} and then goes back to the buffer were the first ctrl-v was pressed. ## Alias
NewerOlder