Skip to content

Tabs #8

Closed
Closed

Description

@GoogleCodeExporter
I would like to see an option to "Allow only one instance." This option
would subsequently suck all new terminal sessions into a new tab in the
same window.  The user could then switch tabs with a customizable key
combination, that would default to something reasonable like Ctrl+Tab.

Original issue reported on code.google.com by [email protected] on 30 Dec 2008 at 4:45

Activity

  1. laktak commented on Mar 9, 2016

    @laktak

    @mintty since the original wont-fix comment is from 2010 -- Is your opinion still the same or will we see tabs in the future?

  2. mintty commented on Mar 10, 2016

    @mintty
    Owner

    Well, “your” isn’t exactly the same person as it used to be... but I share Andy’s opinion about where and how Tabs should be implemented, see #8 (comment) and #8 (comment).

    An implementation intertwined with the current code is not acceptable because it might compromise the stability of the terminal.
    If at all, there could be some kind of add-on that runs multiple instances of the terminal code in widely decoupled processes.

  3. laktak commented on Mar 15, 2016

    @laktak

    In that case, would officially supporting ConEmu be an option?

    I'm using it with mintty at the moment and it appears to work quite well.

  4. mintty commented on Mar 15, 2016

    @mintty
    Owner

    I’ve had another look at ConEmu on this occasion and I don’t currently have the nerve to investigate its configuration which isn’t quite - too intuitive.
    If you’d like to contribute a mintty-specific pre-configuration for ConEmu, that would indeed be appreciated. Something like a ConEmu configuration file and a desktop shortcut to start an instance of ConEmu with mintty, any maybe another demo shortcut showing how to start two instances...

  5. laktak commented on Mar 18, 2016

    @laktak

    It's actually quite easy:

    • Download ConEmu Stable, Portable
    • Start ConEmu and set the startup task to {Bash::Git bash} on the first dialog that appears (I have Git installed, I didn't test with cygwin)

    You'll get a window with mintty/bash running and can create more tabs with <win> + w or by clicking on +.

    TERM is set to cygwin ... I think I had some issues with that as I set mine to xterm.

  6. mintty commented on Mar 18, 2016

    @mintty
    Owner

    If TERM=cygwin, you have been starting a Cygwin Console in ConEmu, not a Cygwin Terminal (i.e. mintty).

  7. roeme commented on May 2, 2016

    @roeme

    IMO, considering Tabs only makes sense after #56 is resolved. With the current state of affairs using a terminal muxer like tmux or screen aligns better with mintty's goals; that is, being a lightweight terminal emulator (Even more so since personally I can use most of the few Windows CLI tools I need within mintty/tmux).

    Also, with today's ever increasing screen estate; I'm tempted to claim that the majority uf users prefer more terminal windows per screen, instead of Tabs.

  8. ryanerwin commented on Apr 23, 2017

    @ryanerwin

    Wow... I'm really amazed at how far mintty has come recently... True color. Sixel. WSL.

    I've been using ConEmu and Tmux for a long time, but:

    1. Tmux doesn't have Sixel support, and doesn't plan on adding it
    2. ConEmu has developed their own Cygwin wrapper that I think they're most focused on as opposed to "child window" support... And ConEmu support of mintty for resizing windows, pressing Alt+Enter don't work properly.
  9. mintty commented on Apr 23, 2017

    @mintty
    Owner

    Also neither ConEmu nor tmux are themselves terminals.

  10. 36 remaining items

  11. dxhisboy commented on Nov 20, 2019

    @dxhisboy
    Contributor

    @mintty I've pushed to https://github.com/dxhisboy/mintty/tree/dev
    git diff output is here: diff.txt
    Add ShowTabBar=yes to minttyrc to enable it.
    Code still needs heavy polishing.

  12. mintty commented on Nov 20, 2019

    @mintty
    Owner

    This seems to work well at first glance, amazing how you got the session framework integrated without specific support...
    I have some initial formal review, mainly concerning code layout, which I'll add as a commit comment.
    Tabbar layout can also do with some tweaking, I suppose. The Tab separation is currently not very visible, the font could be smaller, I think.

  13. dxhisboy commented on Nov 20, 2019

    @dxhisboy
    Contributor

    I'm using the my version of mintty.exe in wsltty for a afternoon.
    The trick of session update is that: I always set the tabinfo[i].wnd == wnd tab focused. Because if there is GeomSync, no one cares how background window shows their tabbar.
    I also have a consideration: when a tab is clicked, should I move the corresponding window to the position of current window?
    What does tab separation mean? The "separation between the tabbar and terminal" or "the separation between adjacent tabs"?

  14. Biswa96 commented on Nov 20, 2019

    @Biswa96
    Contributor

    How the tab feature work here? I have to create a new window to see a new tab. Should it not be just one window and multiple tab?

    Some points about patch file:

    • file permissions are changed from 644 to 755.
    • patch contains tab and space both.
    • add a space b/w ) and {. e.g. if (x ==0) { and void func(int x) {.
    • device contexts are not released after used.
  15. dxhisboy commented on Nov 20, 2019

    @dxhisboy
    Contributor

    How the tab feature work here? I have to create a new window to see a new tab. Should it not be just one window and multiple tab?

    Following the consideration of "Virtual Tabs", this is a "Virtual Tabbar". Actually one window and multiple tab will be very complex.

  16. dxhisboy commented on Nov 20, 2019

    @dxhisboy
    Contributor

    A newer version is available: https://github.com/dxhisboy/mintty/tree/dev and diff.txt.
    Also an experimental feature is if we click the tab for window B in window A, then window B will be moved to the position of window A.

  17. dxhisboy commented on Nov 20, 2019

    @dxhisboy
    Contributor

    I'm trying a smaller font (0.8*cell_height), but it looks strange.
    image

  18. dxhisboy commented on Nov 20, 2019

    @dxhisboy
    Contributor

    Are these two border styles better?
    image
    image

  19. mintty commented on Nov 20, 2019

    @mintty
    Owner

    Border style looks nicer, thanks.
    Tabbar text is placed higher for active tab, for me that looks distracting.
    For the active tab, I would try to use the same colour is in the title bar, because these are related; don't know whether it'll look good.

  20. mintty commented on Nov 20, 2019

    @mintty
    Owner

    Also an experimental feature is if we click the tab for window B in window A, then window B will be moved to the position of window A.

    That is actually SessionGeomSync=1 or higher already and shouldn't be implied without setting SessionGeomSync. We can later talk about unifying options.

  21. BrianInglis commented on Nov 20, 2019

    @BrianInglis

    It is now almost working. Just one question:
    Use windows' tab control as the graphics component or paint it by myself?
    I have both code working.

    Always let Windows do it so they are responsible for matching style changes.

  22. BrianInglis commented on Nov 20, 2019

    @BrianInglis

    I'm trying a smaller font (0.8*cell_height), but it looks strange.

    Might also want to skip display of characters after "…" before "/"; if no "/" displayed but "-", then after "…" before "-"; if neither "/" nor "-" displayed but "_", then after "…" before "_"; unless the number of characters skipped would equal or exceed the number of characters remaining

  23. k-takata commented on Nov 20, 2019

    @k-takata
    Contributor

    How about creating a new WIP PR instead of keep discussing in an already closed issue?

  24. mintty commented on Nov 20, 2019

    @mintty
    Owner

    Could have been a separate issue, yes. Up to @dxhisboy whether to create a new issue, doesn't need to be a PR while being developed and reviewed.
    Unfortunately, github does not seem to have a feature to split an issue / move comments (I sent them a request).

  25. BrianInglis commented on Nov 20, 2019

    @BrianInglis

    Would be nice to support git operations on issues - branch, fork, cherry-pick, stash, merge, migrate

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions