Skip to content

Add an API for specifying terminal location #45407

Description

@Tyriar

Here are two options:

export interface TerminalOptions {
  splitFrom?: Terminal
}

or

export interface Terminal {
  split(options: TerminalOptions): Terminal;
}

/cc Fabio Spampinato (@fabiospampinato)

Activity

  1. added
    feature-request
    terminal
    on Mar 9, 2018
  2. added this to the On Deck milestone on Mar 9, 2018
  3. fabiospampinato commented on Mar 9, 2018

    @fabiospampinato
    Contributor

    They both look pretty good to me.

    Maybe I'm leaning a bit toward the latter, especially if split direction and shell/args/env inheriting were to be implemented in the future, I think this:

    export interface TerminalSplitOptions {
      direction: string,
      inherit: boolean
    };
    
    export interface Terminal {
      split(options: TerminalOptions, splitOptions?: TerminalSplitOptions): Terminal;
    }

    Looks a little nicer than this:

    export interface TerminalOptions {
      splitFrom?: Terminal
      splitDirection?: string,
      splitInherit?: boolean
    }
  4. williamluke4 commented on Jul 8, 2019

    @williamluke4

    Has there been any movement on this?

  5. ScriptPup commented on Aug 23, 2019

    @ScriptPup

    Bump, looks like there hasn't been anything for quite a while. Is this still being worked? Thanks!

  6. 99lives commented on Sep 12, 2019

    @99lives

    Bump again

  7. Tyriar commented on Oct 8, 2019

    @Tyriar
    ContributorAuthor

    Note to self: we should probably align to how editor splitting works in the API, also if terminal tabs could be pulled into the editor area how does that affect things?

  8. Tyriar commented on Oct 8, 2019

    @Tyriar
    ContributorAuthor

    Adding to October to discuss, it won't happen in October though.

  9. removed this from the On Deck milestone on Oct 8, 2019
  10. 41 remaining items

  11. Tyriar commented on Oct 28, 2021

    @Tyriar
    ContributorAuthor

    Still waiting for feedback 🙂 Fabio Spampinato (@fabiospampinato)?

  12. fabiospampinato commented on Nov 13, 2021

    @fabiospampinato
    Contributor

    Daniel Imms (@Tyriar) Sorry I haven't thought about this in a while. The API proposal seems good to me, the only thing I sort of don't like is that the interface is a bit different depending on where the terminal instance is located, for example I can split a particular terminal if I'm in the panel, but it seems that I can only split the current terminal/editor if I'm in the editor area. Also it might be interesting to allow to set a split direction too, in order to be able to make complex 2d layouts, but it's unclear to me if there's an actual need for that, better not to overcomplicated the API for now until the situation is clearer IMO. Overall it seems good to me 👍

  13. added a commit that references this issue on Dec 6, 2021
    761bf9b
  14. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Dec 6, 2021
  15. locked and limited conversation to collaborators on Jan 20, 2022
  16. added
    verification-needed
    on Jan 25, 2022
  17. added
    on-release-notes
    on Jan 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

apiapi-finalizationfeature-requestinsiders-releasedon-release-notesterminalverification-neededverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions