microsoft / microsoft/terminal

Tab search from wt.exe?

Open
#18,935 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Commandline Area-Remoting Issue-Feature Priority-3 Product-Terminal
Dominant language
C++
Stars
105k
Forks
9.6k
Avg merge
3d 17h
Merged PRs (30d)
29

Description

Hi,

I'm unsure if this is available and if it is, seems documentation might be lacking, though I get the idea of leaving out documented features.

I'm trying to show a list of tabs in the terminal, so I'd like to be able to do something like wt -l tabs and it give me a list of tabs with perhaps some of the details of the tab, such as Profile and title and such.

In my use case, I'm running a script which opens up other tabs and runs a simple ssh command in those tabs. The reason I'm using my own setup and not some SSH client that already exists is that I have a lot of customization I want to match the network I'm tying into and it's an absolute nightmare to setup even an existing putty instance without significant modification.

So, what I'm hoping for is a way to list the open tabs and if there's already an existing tab, just change the focus to match that tab, rather than opening a new one, unless I want to.

Anyway, please let me know if this exists and if not, know of how I can generate a list?

Ohh, btw, this got me thinking. Could it be possible to add a "send after start" and "send before end script" in the Profiles?
Basically something that will be sent to the new tab/pane/whatever after initialization and before it exits... tangent.

Thanks,
Greg

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the wt.exe command entry point and check whether tab listing, tab focusing, and profile lifecycle hooks are already documented. Done would be a clearly scoped decision about supporting the requested tab operations or documenting an existing capability; the send-after-start and send-before-exit idea is a separate scope.

Written by the indexing model from the issue text.

Assessment

Domain
cli, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.