Ejemplo n.º 1
0
 def go() -> Do:
     yield ui_open_simple_pane(StrIdent('one'))
     yield ui_open_simple_pane(StrIdent('two'))
     yield open_simple_pane(StrIdent('three'))
     yield TS.modify(minimize_layout('sub'))
     yield simple_render()
     yield all_panes().state
Ejemplo n.º 2
0
 def go() -> Do:
     yield ui_open_simple_pane(StrIdent('one'))
     yield ui_open_simple_pane(StrIdent('two'))
     yield TS.modify(minimize_layout('right'))
     yield simple_render()
     yield all_panes().state
     self._wait(1)
Ejemplo n.º 3
0
def create_and_update_session(session: Session) -> Do:
    session_data = yield TS.lift(create_session(session.ident.str))
    updated_session = session.set.id(Just(session_data.id))
    yield TS.modify(__.update_session(updated_session))
    return updated_session
Ejemplo n.º 4
0
def create_tmux_pane(window: Window, pane: Pane, dir: Path) -> Do:
    log.debug(f'creating tmux pane {pane} in {window}')
    data = yield TS.lift(create_pane_from_data(window, pane, dir))
    yield TS.modify(__.set_pane_id(pane, data.id))