Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Moved to #345 - Tab API #566

Closed
ianwalter opened this issue Jan 7, 2022 · 1 comment
Closed

Moved to #345 - Tab API #566

ianwalter opened this issue Jan 7, 2022 · 1 comment

Comments

@ianwalter
Copy link

ianwalter commented Jan 7, 2022

Describe the solution you'd like?

I just used iTerm2's Python API to create a python script in my monorepo that creates a bunch of tabs to run different services (e.g. docker compose, API server, Next.js dev server, iOS simulator, etc). It's great because I can easily start my whole dev environment with one command and have a meaningful tab name set for each tab. I would have preferred to use Node.js instead of Python, but not a big deal. Really liking Warp so far but this is what I am still using iTerm2 for.

Is your feature request related to a problem? Please describe.

No response

Additional context

Here's an example of a tab I create in the script:

        # Create a new tab and run the Docker Compose services.
        tab = await window.async_create_tab()
        await tab.async_set_title('Docker')
        command = f'cd {root}/packages/web; yarn docker\n'
        await tab.current_session.async_send_text(command)
@elviskahoro
Copy link
Member

@ianwalter merging this into #345

@elviskahoro elviskahoro changed the title Tab API Moved to #345 - Tab API Jan 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants