Skip to content

Feature Request - Duplicate tab (Basic) #1536

Closed

Description

@J00MZ

Summary

Add "Duplicate Tab" option to open same profile in different tab

Activity

  1. added
    Issue-Feature
    on Jun 24, 2019
  2. ghost added
    Needs-Triage
    on Jun 24, 2019
  3. ghost added
    Needs-Tag-Fix
    on Jun 24, 2019
  4. dnagl commented on Jun 25, 2019

    @dnagl
    Contributor

    How sould you be able to trigger the duplication of a tab?

  5. carlos-zamora commented on Jun 25, 2019

    @carlos-zamora

    So, what do you mean by "duplicate"? I have a few ways to interpret this:

    Also, if there's interest in the latter two, what are some things in the "state" that should be maintained?

    NOTE: I think we wouldn't be able to do the last one today, but we can definitely make strides towards it in the long run :)

  6. J00MZ commented on Jun 25, 2019

    @J00MZ
    Author

    David Nagl (@dnagl), triggering could be using Keyboard combo such as Ctrl+Shift+D
    Carlos Zamora (@carlos-zamora) , excellent breakdown, I was thinking "Simple", duplicating the current profile only.

    However, I see no reason 2, 3 can't be in the long run Roadmap too as you noted.

    Re "state":
    My use case is SSHing from local shell to multiple remote servers, so duplicating the SSH session from current profile would be very useful.

  7. carlos-zamora commented on Jun 25, 2019

    @carlos-zamora

    Personally, I think this would be a great thing to have as an option in a flyout menu when you right-click on a tab. Similar to when you right-click a tab in Edge.

  8. added
    Area-Interaction
    Product-Terminal
    on Jun 25, 2019
  9. ghost removed
    Needs-Tag-Fix
    on Jun 25, 2019
  10. dnagl commented on Jun 25, 2019

    @dnagl
    Contributor

    Joe Tavin (@J00MZ) I am with you that this is a bigger feature and to provide a simple implmentation to duplicate a tab with the current used profile would be the first step in the right direction.

    Carlos Zamora (@carlos-zamora) A flyout menu would be a good idea. However, this functionality should be available also by using a keyboard shorcut.

    Maybe I am able to provide a simple implementation of this feature request and bring it into the master of the project with a pull request.

  11. carlos-zamora commented on Jun 25, 2019

    @carlos-zamora

    David Nagl (@dnagl) Yup! We're on the same page. And we can't do the flyout menu until #760 gets resolved anyways.

    I'd very much appreciate it if you implement this. 😊 Let me know if you have any questions! (and definitely add me as a reviewer so I get a notification when it comes in)

  12. xmm1989218 commented on Jun 25, 2019

    @xmm1989218

    Carlos Zamora (@carlos-zamora) "Simple" + custom shortcut is good enough
    Joe Tavin (@J00MZ) if has the "Simple" way, can use commandline in profile.json to implement FAKE "Full State Copy",

    "commandline" : "wsl.exe -d Legacy -- /path_to/ssh_script",

  13. J00MZ commented on Jun 25, 2019

    @J00MZ
    Author

    xumingmin (@xmm1989218) I've used the command line in profile.json for similar stuff, such as defaulting to a specific directory which has my custom .bashrc, but I'd classify it as a "hack", not feature.

  14. xmm1989218 commented on Jun 25, 2019

    @xmm1989218

    Joe Tavin (@J00MZ) your right. it is hack. if has many ssh-host will seem ugly. it just works at light startup job

  15. 10 remaining items

  16. dnagl commented on Jun 27, 2019

    @dnagl
    Contributor

    Carlos Zamora (@carlos-zamora) I cannot add you as a reviewer to the pull request. Am I missing some permissions for this action?

  17. carlos-zamora commented on Jun 27, 2019

    @carlos-zamora

    Huh. I guess you do need permissions for that. Found it though. I'll try and get to it tomorrow. Thanks!

  18. ghost added
    Needs-Tag-Fix
    on Jul 2, 2019
  19. added a commit that references this issue on Jul 2, 2019
  20. added
    Resolution-Fix-Committed
    on Jul 2, 2019
  21. ghost removed
    Needs-Tag-Fix
    on Jul 2, 2019
  22. CoskunSunali commented on Aug 7, 2019

    @CoskunSunali

    It seems that new tab and duplicate tab features work the same way for me when I use it for WSL. E.g. they both create a new tab and nothing else.

    I SSHed into a server using Ubuntu, duplicated the tab, SSH session is not carried over. I switched to a directory and duplicated the tab, the directory was set to the default startingDirectory which is //wsl$/Ubuntu/home/coskun.

    So why would I use the duplicate feature? No pun intended, just trying to understand what is the advantage of using the duplicate feature over creating a new tab.

  23. J00MZ commented on Aug 7, 2019

    @J00MZ
    Author

    Coskun Sunali (@CoskunSunali)
    The duplicate tab feature defaults to the profile you are using now.
    Opening a new tab defaults to your default profile.

    If you use various different profiles in Terminal, it's very convenient to duplicate your current working one rather than the default one.

    For example, my default profile is Ubuntu 18 WSL, but I may want to duplicate my Powershell or Ubuntu 16 WSL tabs.

    image

  24. CoskunSunali commented on Aug 7, 2019

    @CoskunSunali

    Joe Tavin (@J00MZ) That totally makes sense. Thank you for the insights.

  25. CoskunSunali commented on Aug 7, 2019

    @CoskunSunali

    Sorry for the spam. Are there any plans for implementing state duplication? E.g. carrying over the SSH session?

  26. zadjii-msft commented on Aug 7, 2019

    @zadjii-msft
    Member

    Coskun Sunali (@CoskunSunali) No, because that would likely be neigh impossible to do in a general sense. How would we duplicate an instance of vim for example? What if the foreground process has opened some sort of file for exclusive access - how could we duplicate that process?

    If there's a way this can be done safely and generally I'm all ears for proposed technical solutions, but I don't think it's something that's possible, so I'm not going to be investigating it.

  27. CoskunSunali commented on Aug 7, 2019

    @CoskunSunali

    Mike Griese (@zadjii-msft) and Joe Tavin (@J00MZ) Thanks a lot for your time replying and explaining. Appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-UserInterfaceIn-PRIssue-FeatureProduct-TerminalResolution-Fix-Committed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions