BenWildeman / vscode-tabulous

Adds tabs for each terminal process to the status bar
https://marketplace.visualstudio.com/items?itemName=bwildeman.tabulous
MIT License
12 stars 2 forks source link

allow up to 15 terminals #24

Open dranitski opened 4 years ago

BenWildeman commented 3 years ago

this extension doesn't quite work this way. in order for the tabs to work on the status bar of VS Code, each "tab" needs to fire off its corresponding command. if you look inside the package.json, you'll see the commands section that registers each command for each possible tab. it's not possible to fire a command with a set of parameters, i.e, if it was, we could fire off tabulous.showTerminal(<number>) instead of tabulous.showTerminal1 for the first terminal in the list

the reason why the maximum was set to 10 in this instance, is because if you were to bind them to a keybind, you would most likely use a key command that uses the number pad which means it wouldn't be possible to do something like ctrl-shift-15

however, I don't think people actually use keybinds with this extension for individual terminals, so at some point, I'm going to create a show previous/next terminal command so you could loop through them with a keybind/the touch bar/or through the command palette

this would still require to register tabulous.showTerminal11 to tabulous.showTerminal15 if the max terminals was increased