(self, partial: str = "", cursor: int | None = None)
| 112 | self.prompting = callback |
| 113 | |
| 114 | def sig_prompt_command(self, partial: str = "", cursor: int | None = None) -> None: |
| 115 | self.ensure_bottom_bar_is_visible() |
| 116 | signals.focus.send(section="footer") |
| 117 | self.top._w = commander.CommandEdit( |
| 118 | self.master, |
| 119 | partial, |
| 120 | ) |
| 121 | if cursor is not None: |
| 122 | self.top._w.cbuf.cursor = cursor |
| 123 | self.bottom._w = urwid.Text("") |
| 124 | self.prompting = self.execute_command |
| 125 | |
| 126 | def execute_command(self, txt: str) -> None: |
| 127 | if txt.strip(): |
nothing calls this directly
no test coverage detected