bfind - scroll buffer find

Share your scripts and packages with other Mudlet users.
Post Reply
lex
Posts: 55
Joined: Fri May 14, 2010 2:28 pm

bfind - scroll buffer find

Post by lex »

Hi,

I did some changes to original find-alias.xml. (sorry for new thread, but I could not find original one.)
Changes:
  • user bfind alias (use it like: bfind keyword)
  • bfind now ignore case
  • excludes output from previous bfind, so you can search only through valid lines
  • bfind will accept pattern (for example bfind ^lua will show all lines starting with lua)
You will also need 2 string functions, which might be included in next Mudlet release.

All is enclosed.
Attachments
bfind.zip
(1.3 KiB) Downloaded 461 times

User avatar
Vadi
Posts: 5042
Joined: Sat Mar 14, 2009 3:13 pm

Re: bfind - scroll buffer find

Post by Vadi »

Nice, thanks

lex
Posts: 55
Joined: Fri May 14, 2010 2:28 pm

Re: bfind - scroll buffer find

Post by lex »

Hello,

first update to bfind alias. You can now specify how many line before/after match should be visible. (all is enclosed)
Few examples bellow;
bfind rat fill print only matching lines
bfind[2] rat will print 2 line before and 2 line after match
bfind[10] rat will print 10 line before and 10 line after match
Attachments
bfind_v2.zip
(1.65 KiB) Downloaded 474 times

Post Reply