Class | Redwood::BufferManager |
In: |
lib/sup/buffer.rb
|
Parent: | Object |
CONTINUE_IN_BUFFER_SEARCH_KEY | = | "n" | we have to define the key used to continue in-buffer search here, because it has special semantics that BufferManager deals with—current searches are canceled by any keypress except this one. |
focus_buf | [R] |
a little tricky because we can‘t just delete_at id because ids are relative (they‘re positions into the array).
turns an input keystroke into an action symbol. returns the action if found, nil if not found, and throws InputSequenceAborted if the user aborted a multi-key sequence. (Because each of those cases should be handled differently.)
this is in BufferManager because multi-key sequences require prompting.
we reset force_to_top when rolling buffers. this is so that the human can actually still move buffers around, while still programmatically being able to pop stuff up in the middle of drawing a window without worrying about covering it up.
if we ever start calling roll_buffers programmatically, we will have to change this. but it‘s not clear that we will ever actually do that.