Tuesday, February 22, 2011

better browsing of IRC logs

I use irssi for IRC. I like to quickly browse (local) logs (in vim)
sometimes before sending a message. I've got a rather clunky way of
browsing them, and I'm fishing for ideas on how to improve the process.

Here's a log snippet:

--- Day changed Fri Feb 11 2011
00:12 < foo> this should help: http://www.example.com
00:13 < bar> that's great, thanks
...snip several hundred messages...
14:23 < me> hey guys, have you seen http://www.example.com ?

To figure out when X was last discussed, usually I

* open the file in Vim
* use "G" to skip to the bottom of the file
* search backward for X
* search backward again for [some part of] the phrase "^--- Day changed"

Anyone have ideas on better/faster ways to do this?

One thing that would be nice if there was an easy way to always force
the first line of the editor to be the nearest "^--- Day changed" line
above the current line. Or just to have it displayed on the/a status bar
or a preview window or something.

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment