/quicklog filters the active window into a text file. Thus, you can easily view events and messages in the channel through a window or notepad. You also have the option to locate a word.
/quicklog -r runs the text file with the data
/quicklog -w creates a new window and imports the data into that window
/quicklog -h (word) locates the line number the word is on and returns the line itself
/*
/quicklog filters the active window into a text file. Thus, you can easily view events and messages in the channel through a window or notepad. You also have the option to locate a word.
/quicklog -r runs the text file with the data
/quicklog -w creates a new window and imports the data into that window
/quicklog -h (word) locates the line number the word is on and returns the line itself
Code written by ^silk
*/
alias quicklog {
if ($1) {
if ($isfile(filter.txt)) write -c filter.txt
filter -wf $active filter.txt
if ($1 = -w) { window -dC @quicklog | filter -fw filter.txt @quicklog }
if ($1 = -h && $2) {
if ($read(filter.txt,w,$+(*,$2,*))) { echo -a $+(Word $qt($2) found on line $readn,:,$chr(32),$read(filter.txt,$readn)) }
else echo $color(info) -a Word $qt($2) not found.
}
if ($1 = -r) run filter.txt
}
}