Skip to content

start_sublime_text helper #180

Closed
Closed
@rchl

Description

@rchl

There is this start_sublime_text that starts sublime:

subprocess.Popen("subl &", shell=True)

  1. Why does it use &? I understand that this means "run command in the background" but is it really relevant here? It seems to work just fine.
  2. On opening, a /tmp/ file is opened in a tab. Can this be avoided? I don't exactly see the point of it. I guess this is something related to subprocess but I don't exactly understand why it happens.
  3. I think this could be improved by passing --stay argument as otherwise, once the tab this command opens is closed, focus switches back to the terminal which can (and does) affect some focus specific tests

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions