Git Product home page Git Product logo

vscode-terminal-tabs's Introduction

terminal-tabs

⚠️ This extension is deprecated because terminal tabs are now built into VS Code! Enable them using with the terminal.integrated.tabs.enabled setting.


Adds tabs for each terminal process to the status bar. It works by registering clickable status bar buttons when terminals are created via the commands below.

Terminal tabs preview

If you want tabs to be built in to the core of VS Code, be sure to upvote this issue.

This extension provides the following commands that can be keybound in your keybindings.json file:

  • terminalTabs.createTerminal: Creates a terminal with an icon
  • terminalTabs.createNamedTerminal: Creates a terminal with an icon that has a name (indicated in the dropdown)
  • terminalTabs.showTerminal1: Shows the first terminal
  • terminalTabs.showTerminal2: Shows the second terminal
  • terminalTabs.showTerminal3: Shows the third terminal
  • terminalTabs.showTerminal4: Shows the fourth terminal
  • terminalTabs.showTerminal5: Shows the fifth terminal
  • terminalTabs.showTerminal6: Shows the sixth terminal
  • terminalTabs.showTerminal7: Shows the seventh terminal
  • terminalTabs.showTerminal8: Shows the eighth terminal
  • terminalTabs.showTerminal9: Shows the ninth terminal
  • terminalTabs.showTerminal10: Shows the tenth terminal

Note: some common user-preferred shortcuts - eg, Ctrl/Cmd+T - are normally sent to terminal itself, rather than to the outside environment (where things like opening new terminal tabs are done). In order for that short cut to be used, open File, Preferences, and add the following to your user settings (on the right):

"terminal.integrated.commandsToSkipShell": [
  "terminalTabs.createTerminal"
]

Limitations

  • The terminals can only be tracked when they are created by the terminal API (See Microsoft/vscode#13267). It is currently not possible to intercept creation of the terminal panel on restart for example.

vscode-terminal-tabs's People

Contributors

fabiomdiniz avatar mikemaccana avatar tyriar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vscode-terminal-tabs's Issues

select and copy is not work

In the terminal of terminal-tabs created, I can't select any content after upgrade vscode. But it works in the default terminal.

vscode version: 1.14.2
mac version: 10.12.6

Feature request: Pin the icon on the Status bar; + icon; Minimize on second click.

Hello guys. I'm almost 100% satisfied with Terminal Tabs. I would like to leave some requests so that are 100% satisfied if it is implemented.

1° - Pin the icon on the Status bar. Whenever we open the VS Code, the terminal icon with the number 1 in the Status Bar could already appears, as it is the first terminal that is already there when VS Code is opened.
Note: I came to this plugin because I just wanted to have a terminal icon in the Status Bar. I'm still with the plugin it because I've seen that it has more good features, but having to create the icon by the Task every time, it's very annoying. So I'm going to vote to be integrated into the VS Code natively, but do not forget to ask for the first icon always fixed in the Status Bar.

2° - If we have the first icon always fixed in the status bar, there could be a + button to the right of the icon, which when it is clicked it creates another Tab of the terminal, without us having to type anything. With each click on the icon +, create another Tab on the left of the icon and drag + it a little forward.

3° - The Terminal Tabs buttons in the Status Bar need to be given an option to minimize the terminal. If we click once on the icon the terminal appears, but when clicking the second time, instead of minimizing the terminal, it remains open. Put the option: by clicking for second time in the Terminal Tab icon of the terminal that is open, this terminal minimizes. Like as in the Problems icon, which is just on the left.

Thanks for this great plugin.

Feature: Default terminal settings

It would be great if this had a setting for automatically opening terminals. In my local version I have added this, but I would like your thoughts on this before I submit a pull request with this feature.

Currently I have the following setting:

"terminalTabs.defaultTerminals": [{
  "name": "Terminal Name",
  "directory": "c:\\path\\to\\directory",
  "command" "command to start with when terminal created"
}]

Motivation

I personally have a workspace created in VS Code Insiders which has two directories. These directories are our API and Apps repositories. When I use this workspace, I'm constantly opening up 4 terminals. API terminal running API in dev mode, Apps terminal running in dev mode, and subsequent git terminals for managing these repositories.

By adding these terminals to the defaultTerminal settings outlined above within my .code-workspace file, these terminals automatically open when the workspace is opened, saving time and repeating mundane tasks.

Implementation

This is currently achieved by doing the following:

  • changing the "activationEvents" to "*"
  • calling the kill active terminal command to remove the stupid lingering terminal on vscode start
  • adding a sendCommand function to StatusBarTerminal
  • looping through the default terminals
    • setting name on creation
    • calling sendCommand with cd to the specified directory in the setting
    • calling sendCommand with the specified command in the setting

Questions

Are you happy with this implementation outlined above? Any suggestions going forward with this?

Display terminal name instead of terminal number

Hi,

If I have several terminals opened,
I don't remember what I have done in terminal 1, 2, 3, and so on...
Icons with the terminal name instead of a number would be very helpful, especially if I am connected to different servers.

Tabs indicator don't show

by default the tabs must appear in bottom? I installed in the mac, open more than one terminal and the tabs indicator don't appear.

VS Code: 1.14
macOS Sierra 10.12.4

Request: terminalTabs.showTerminalNext and Previous

In addition to these commands:

terminalTabs.showTerminalN: Shows the Nth terminal

It would be very useful to have:

terminalTabs.showTerminalNext: Shows the next terminal
terminalTabs.showTerminalPrevious: Shows the previous terminal

Thanks for a great extension!

[Feature Request] Middle-click close terminal

In most tabbed apps, the middle-click button can be used to close a tab.

It would be nice in this case to middle-click on a terminal icon, and for it to be terminated (forcibly if necessary). Exactly like clicking the "Kill Terminal" / garbage bin button.

Is this extension supposed to work with the latest insiders ?

I tried the extension in the latest vscode insider code-insider-1546496535 and it does not show anything when i open a new terminal. I also tried running the extension in the debugger and the debugger is not stopping at the activate function.

Did something change in the terminal API or i just have a messed up environment ?

Add license to repo

Could some OSS license be added to repo so that it can be safely consumed in enterprise envs?

Save terminal configuration per project

It would be very useful if this extension would support saving terminal configurations per projects. For example, for my project I usually use four named terminals:

  • git
  • webApi (.Net core)
  • Angular build
  • Angular developing

And I want to be sure that when I open my project, all four terminals will open too (with it's own predefined path).

Thank you!

terminalTabs.createTerminal doesn't seem to have any effect

I've installed tabbed terminal, and modifed my keybindings.json as instructed, but can't get a new tab to open:

screenshot_5

Instead, when I press Ctrl T, ^t appears in the terminal. Am I doing something wrong?

Note I'm new to VSCode, so if there's some magic I need to do to make this work that isn't mentioned in the docs, I won't know it. Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.