Code Monkey home page Code Monkey logo

Comments (12)

sukima avatar sukima commented on August 21, 2024 9

πŸ‘ for a detach button, Every partner I've paired with ask me "How do I detach?"

I respond "ctrl-b d"

"ctrl-b ctrl-d got it"

"Nooooooooo!" session ended 😱

from tmate.

chazy avatar chazy commented on August 21, 2024

This is not as clear cut. Should tmate then override all exits of terminal sessions, or only the last one?

Wouldn't this be solved by read-only mode (a future feature), but if you're truly pairing, you're equals and trust one-another.

from tmate.

nviennot avatar nviennot commented on August 21, 2024

In the tmate status bar, we can show a global "detach" hotkey, like how http://mosh.mit.edu/ does it on their screenshot

from tmate.

nviennot avatar nviennot commented on August 21, 2024

What hotkey would be a good one to detach?

from tmate.

sukima avatar sukima commented on August 21, 2024

Oh but in tmux you can assign any hot key to detach that wasn't the issue. Was your idea to have a mouse clickable portion of the status bar which would fire the detach? So you could then tell your not-so-keybord-focused colleagues to just click the detach button in the lower right corner?

Not that I would ever use something like that, My hands never leave the keyboard, But to those less enlightened mortals it's better to provide a (big red candy like) button to click to prevent them from accidentally killing the session.

Thoughts?

from tmate.

nviennot avatar nviennot commented on August 21, 2024

If you go in that direction, the perfect button is the "close window" button on the terminal GUI. This will kill ssh, which will detach the session. The key presses <enter>~. will also kill ssh which will detach as well.

from tmate.

sukima avatar sukima commented on August 21, 2024

😊 Ok now I feel silly.

from tmate.

nviennot avatar nviennot commented on August 21, 2024

I feel I should document, or tell the user that they can actually do that, because I haven't thought about this until you told me that you wanted a button :)

from tmate.

kernicPanel avatar kernicPanel commented on August 21, 2024

Maybe ctrl-x would be ok to detach ?

Very nice work, by the way :)

from tmate.

nviennot avatar nviennot commented on August 21, 2024

Nah, I use ctrl+x to decrement numbers in VIM :)

Closing the window is good enough :)

from tmate.

kernicPanel avatar kernicPanel commented on August 21, 2024

Damn you're right…

from tmate.

sarthak7gupta avatar sarthak7gupta commented on August 21, 2024

ctrl+a d used to detach a GNU Screen.

from tmate.

Related Issues (20)

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.