rejeep / prodigy.el

Manage external services from within Emacs
GNU General Public License v3.0
552 stars 39 forks source link

Add command to quickly clear log buffer #42

Closed shosti closed 10 years ago

shosti commented 10 years ago

This should be super-simple to implement (just creating an issue for tracking/discussion purposes), but it would be nice to be able to quickly clear the log buffer (it's a bit awkward now because it's read-only mode). What would a good default keybinding be?

rejeep commented 10 years ago

Yes, that would have been nice. Hard to think of a good binding. I wonder if it should have a modifier key?

shosti commented 10 years ago

Yeah, I can't really think of a precedent elsewhere. M-k might be nice for Mac users, since it's what the Terminal app uses, and it sort of makes sense in this context (I think C-l would be a bad idea, and you're not likely to want to kill a paragraph in a log). Otherwise maybe just k (which might be a bit error-prone, but might be OK if it's undoable)?

rejeep commented 10 years ago

I'm not sure there is a good binding for this. :) I use M-k for kill buffer, so preferably not that one.

shosti commented 10 years ago

What about hk? It has historical significance and the h prefix could be used for other operations on the whole buffer, if there are any. I use evil, so I'll probably end up rebinding it to something "vimmy" anyway, so whatever you think would be best.

rejeep commented 10 years ago

That works fine for me. If people dont like it, they can always change.