Hacker News new | ask | show | jobs
by fiatjaf 3729 days ago
Whoa, that's amazing.

I don't use tmux, but I'm considering it just because of this super fancy tool here.

I would like to hear about interesting use cases. Is that when you want to show what you're doing to your boss? Or when you want to impress a novice programmer?

1 comments

Like I mentioned there, I use it to pester my friends :)

tmux is simply fantastic for keeping a session active. Not to mention you won't need to use multiple disjointed emulator windows to do something like keep tabs on a log file while you're working. You can even "full screen" a pane by pressing `Ctrl+b z`! I love being able to ssh into a server (or even my home computer) and simply resume where I left off, from any computer! My friend, let me also take a moment to tell you about Vim.... ;)

Back on topic: I think it would be good for anything where you want things to look almost exactly what's on your screen with high fidelity. Someone submitted an issue to have tmux2html continuously write to the same file that reloads itself. That could be used to have a not-so-realtime snapshot of a pane that's accessible from a browser. Perhaps, some weirdly draconian workplace that requires all employees to use tmux can routinely take a snapshot of all workstation sessions to make sure they aren't goofing off watching ASCII youtube[1]. Who knows!

1: http://annasagrera.com/on-ascii-youtube-and-letting-go/

Ok, you have convinced me. I'll try tmux! I do ssh at all times and do all my programming and other computer stuff in a VPS and remote computers, so this thing was made for me.

I've been using vim for a long time now, although I am still a neophyte.

And I have tried tmux some time ago, but couldn't get used to the keybindings that conflicted with those of vim (I'm against doing too much customization -- specially of keybindings --, because that will make me useless when using other people's computers). Is this a real problem or was it just something I did wrong?

I use tmux as my primary "IDE" for everything. I personally use the backtiick (`) as my prefix, because ctrl-B conflicted with Emacs.

Now I use vim for everything, but I still use the same prefix because I've gotten used to it.

If you're stuck using someone else's computer, you can always pass through the prefix by hitting it twice...For example, if I ever need a backtick, I can just tap it two times.

https://github.com/Tombert/dotfiles/blob/master/tmux/.tmux.c...

The thing I love so far about Vim is no one argues about key bindings because no one is right. But, almost everyone agrees that the default leader key is awful. I imagine it's the same for the Emacs community.
I actually like the default bindings for both, but yes, everyone in the community seems to have a slightly fragmented opinion of them :D.
You like the backslash as the leader key?! Well I never!
A convert! (Score!) To make navigating Vim and tmux splits more palatable, I highly recommend this plugin: https://github.com/christoomey/vim-tmux-navigator