Skip to content

Instantly share code, notes, and snippets.

Avatar

Pascal Poitras Dubois pascalpoitras

  • Longueuil, Quebec, Canada
View GitHub Profile
View gist:368cc09ec1a39452c7930e432f76ec4c

I created this after the user ikwyl6 wanted a quick way to filter the buflist

/set buflist.look.display_conditions "${eval_cond:${plugins.var.buflist_conditions}} && ${buffer.hidden}==0"

/alias add search_buflist /set plugins.var.buflist_conditions $1-;/buflist refresh

/alias add search_bufname /search_buflist ${channel}=~$1

exemples

View weechat-znc-bar.md

WeeChat Screenshot

Here I will show you how to create a bar very similar to the nicklist bar, but instead of showing nickname, it will show znc commands, whenever you click on a command, weechat will send a "help the_command_you_just_clicked" and insert the name of the command in the input bar, then enter any arguments required to the command and press enter.

You will need the following script

  1. text_item.py

Let's create the bar

@pascalpoitras
pascalpoitras / gist:d40f3c453912d592b34db0719fe2d646
Last active December 20, 2022 16:30
centered buflist at the bottom
View gist:d40f3c453912d592b34db0719fe2d646

WeeChat Screenshot

need version 3.6 for spacer item

/bar set buflist position bottom
/bar set buflist size 1
/bar set buflist filling_top_bottom horizontal
/bar set buflist items spacer,buflist,spacer
View test.md

WeeChat Screenshot

/bar set status name statusbak
/bar default status
/bar set status name spell
/bar set spell items spell_suggest

/bar set statusbak name status

@pascalpoitras
pascalpoitras / myweechat.md
Last active February 6, 2023 07:56
My always up-to-date WeeChat configuration (weechat-dev)
View myweechat.md

WeeChat Screenshot

You need at least WeeChat 3.8-dev

Enable mouse

/mouse enable

Secured data