Skip to content

Terminal actions need cleanup #7302

Closed
Closed

Description

I find it hard to figure out what to do when typing >terminal in the command prompt:

screen shot 2016-06-07 at 09 23 00

Maybe something more like this?

  • Open System Terminal
  • Open Integrated Terminal
  • Focus Integrated Terminal

Or, with the category sections:

  • Terminal: Open System Terminal
  • Terminal: Open Integrated Terminal
  • Terminal: Focus Integrated Terminal

Activity

  1. added
    ux
    on Jun 7, 2016
  2. Tyriar commented on Jun 7, 2016

    @Tyriar
    Contributor

    It's standard to have View: prefixed for actions in the view menu.

  3. added
    terminal
    on Jun 7, 2016
  4. Tyriar commented on Jun 7, 2016

    @Tyriar
    Contributor

    I guess doing something like how Debug does as there are a bunch of commands coming for multi terminal handling in June.

    image

  5. added this to the June 2016 milestone on Jun 7, 2016
  6. joaomoreno commented on Jun 7, 2016

    @joaomoreno
    ContributorAuthor

    Yeah I see the View: argument... but I'd not be very happy in having:

    • Terminal: Open System Terminal
    • View: Open Integrated Terminal
    • Terminal: Focus Integrated Terminal
  7. Tyriar commented on Jun 7, 2016

    @Tyriar
    Contributor

    I see you confused yourself there 😄

    Maybe you should pose the question to the rest of the team in slack or something, this is how it's done now and I agree it's a bit ugly.

  8. weinand commented on Jun 7, 2016

    @weinand
    Contributor

    Shouldn't we not try to address this issue by starting to consolidate the two Terminal types in VS Code first?

    I propose to have only one "Terminal" in VS Code. This can be either opened from the Explorer's "Open in Terminal" action (which does a 'cd' to the selected folder) or with a global "Open Terminal" action (which opens the terminal at the project root).

    Whether this Terminal is a 'System Terminal' or the 'Integrated Terminal' can be controlled via a setting.

  9. Tyriar commented on Jun 7, 2016

    @Tyriar
    Contributor

    Andre Weinand (@weinand) I was initially opposed to that idea, but I think my aversion to it was due to multiple terminals not being supported which should come in June 👍

  10. waderyan commented on Jun 7, 2016

    @waderyan

    As far as commands go I am in favor of João Moreno (@joaomoreno)'s later suggestion.

    Terminal: Open System Terminal
    Terminal: Open Integrated Terminal
    Terminal: Focus Integrated Terminal

    Personal preference based on how I search for commands and what I would expect.

    Also 👍 on Andre Weinand (@weinand)'s consolidation suggestion.

  11. Tyriar commented on Jun 10, 2016

    @Tyriar
    Contributor

    I'm proposing the following, all commands start in workbench.action.terminal. - I haven't checked for conflicts yet.

    Command Description Keybinding
    close Terminal: Close the current terminal ctrl+shift+x
    closeAll Terminal: Close all terminals -
    copy Terminal: Copy text from the terminal ctrl
    focus Terminal: Focus the terminal panel,
    toggling it if not visible
    -
    focusNext Terminal: Focus the next terminal ctrl+shift+j
    focusPrevious Terminal: Focus the previous terminal ctrl+shift+k
    new Terminal: Create a new terminal ctrl+shift+`
    paste Terminal: Paste into the terminal ctrl
    toggleTerminal Terminal: Toggle visibility the terminal panel ctrl+`

    Notes:

    • ctrl+shift+t seems to be commonly used for new, we use it for reopen closed file. ctrl+shift+</kbd> seems like a good fit, just add <kbd>shift</kbd> on top of toggle` to create a new one.
    • Notice that all terminal management commands use ctrl over cmd on Mac.

    Also regarding the external terminal, I think it would be better to just hijack the keybinding from it and leave the command there in case people want it. That is more flexible and feels less messy to me than having a toggle switch in settings.

  12. Tyriar commented on Jun 11, 2016

    @Tyriar
    Contributor

    Actually the above has some issues:

    • ctrl+shift+j, k and x are all taken
    • I was looking into chords but it's not possible to use them from within the terminal as it needs to consume the keys.
  13. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

terminalux

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions