def current_name(self, cli):
        client_state = self.pymux.get_client_state(cli)

        # Confirm.
        if client_state.confirm_text:
            return DUMMY_BUFFER

        # Custom prompt.
        if client_state.prompt_command:
            return PROMPT

        # Command mode.
        if client_state.command_mode:
            return COMMAND

        # Copy/search mode.
        pane = self.pymux.arrangement.get_active_pane(cli)

        if pane and pane.display_scroll_buffer:
            if pane.is_searching:
                return 'search-%i' % pane.pane_id
            else:
                return 'pane-%i' % pane.pane_id

        return DUMMY_BUFFER
Name of the current buffer.
dataset/ETHPy150Open jonathanslenders/pymux/pymux/main.py/_BufferMapping.current_name