Skip to content

Instantly share code, notes, and snippets.

@pascalpoitras
Last active September 11, 2021 22:23
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pascalpoitras/368cc09ec1a39452c7930e432f76ec4c to your computer and use it in GitHub Desktop.
Save pascalpoitras/368cc09ec1a39452c7930e432f76ec4c to your computer and use it in GitHub Desktop.

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

display buffer with more than 50 users

/search_buflist ${irc_channel.nicks_count}>50

display buffers with hotlist

/search_buflist ${hotlist}

display buffers with a priority of highlight

/search_buflist ${hotlist_priority} == message

display channels with wee in their names

/search_bufname wee

to show everything

/search_buflist 1

or

/search_bufname .*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment