This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FindMode - phoenix binding for an interactive window-finding mode | |
// * bind to a key by calling the instance's 'bind' method, which has the | |
// same first two args as phoenix's Phoenix.bind() call. The third argument | |
// is an array of other key bindings which should be temporarily disabled | |
// while in the FindMode mode. | |
// * while in Find mode: | |
// - hit escape to exit the mode (todo: and restore the window stack) | |
// - type a regex to interactively auto-raise the first window that matches | |
// - backspace to remove chars from the regex | |
// - hit tab to cycle to the next matching window for the current regex |