Page 1 of 2

Find alias ala ctrl+f

Posted: Wed Jan 20, 2010 1:39 pm
by Vadi
Image
Acts as a ctrl+f alternative/replacement, giving you what you want to find all in one place, right away.

Usage:
Do mfind what and it'll give you a list of lines where it found your text. Case-sensitive.

Download:
find-alias.xml
(1.12 KiB) Downloaded 1039 times

Re: Find alias ala ctrl+f

Posted: Wed Jan 20, 2010 11:45 pm
by Vadi
Renamed to mfind because find is an alias in my mapper.

Re: Find alias ala ctrl+f

Posted: Sun Feb 07, 2010 10:57 am
by naftali
This uses the cecho function, which doesn't seem to exist. I looked in lua.global and could only find a checho function, and when I changed the alias to use checho instead of cecho it didn't work. Has something changed since you released this?

Re: Find alias ala ctrl+f

Posted: Sun Feb 07, 2010 2:03 pm
by Vadi

Re: Find alias ala ctrl+f

Posted: Mon Feb 15, 2010 8:07 pm
by naftali
Is there a way to have Mudlet number your lines, kinda like how you can tell it to display timestamps? This function is great, but sometimes finding the line would mean more if I could see the line in context and it's hard to scroll back through 3000 lines and count to find the one you're looking for.

Re: Find alias ala ctrl+f

Posted: Mon Feb 15, 2010 9:02 pm
by Heiko
Some day I'll add a real search function to Mudlet, but until then you have to cope with scripts that search the buffer.

Re: Find alias ala ctrl+f

Posted: Tue Feb 16, 2010 12:08 am
by Vadi
naftali wrote:Is there a way to have Mudlet number your lines, kinda like how you can tell it to display timestamps? This function is great, but sometimes finding the line would mean more if I could see the line in context and it's hard to scroll back through 3000 lines and count to find the one you're looking for.
Yeah, you can add a trigger that prepends the line number. It's possible.

Re: Find alias ala ctrl+f

Posted: Tue Feb 16, 2010 5:33 am
by naftali
Perhaps it would be easier for me to make an alias that takes a line number as an argument and copy/pastes it someplace useful like a miniconsole or even the command line. I'll add it to my list of projects to do if I ever get bored or frustrated :)

Re: Find alias ala ctrl+f

Posted: Tue Feb 16, 2010 10:05 am
by hempa
@Naftali: I'm doing some changes to this to be a more complete package. It will be using a mini console for the search results, cached results, and some API functions for use in your own scripts.

Work's progressing, Might have a first version by next week.

Re: Find alias ala ctrl+f

Posted: Tue Feb 16, 2010 4:10 pm
by naftali
@hempa sounds yummy! I await it's release eagerly