Live data from Hacker News

Tmux 1.9 released

sourceforge.net

61–70 of 121 posts

Re: Tmux 1.9 released

#61

I remember using on the mac a branch of tmux with iTerm, where the gui understood tmux, giving native tabs and scrollback. I thought this was the greatest thing ever, but am now on Linux. Is this work still continuing does anyone know?

Isn't one of the advantages of tmux is reduce / avoid using the mouse? I know that scrolling is one of the first non-obvious changes that seem irritating at first. But after you get used to scrolling with the keyboard, I find myself missing this possibility on 'standard' terminal windows. Suddenly using the mouse to scroll feels really awkward and inefficient.

Mouse vs keyboard: I navigate with whatever my hand is on at the moment.

Re: Tmux 1.9 released

#62
Here are my tmux bindings which I have been using daily for over a year. These are configured in iTerm in the Profiles->Keys section using Send Hex Codes.

  Cmd-shift-c: New window
  Cmd-shift-l: New pane to the right
  Cmd-shift-h: New pane to the left
  Cmd-shift-k: New pane above
  Cmd-shift-j: New pane below
  Cmd-l: Focus pane on right
  Cmd-h: Focus pane on left
  Cmd-k: Focus pane above
  Cmd-j: Focus pane below
  Cmd-1: Select first window
  Cmd-2: Select second window
  ...
  Option-h: Previous window
  Option-l: Next window
  Command-/: Enter copy mode
I have the same bindings in MacVim. The nice thing about using command is that it doesn't interfere with other cli apps like ctrl.

The following allows you to yank the tmux clipboard into the system clipboard: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

Re: Tmux 1.9 released

#63
post #33
post #4

Earlier quoted context omitted.

I use screen and tmux for different tasks. I'll use screen when I need to run a long-running task and can't keep my terminal session open. I use tmux with a script so that I can ssh into multiple nodes and broadcast the same commands to them all at the same time. Great for interactive deployments that I haven't been able to automate away with CFEngine just yet.

That tmux broadcast trick sounds interesting. Are you able to provide some more details about it please?

If you're under X, you can also use cssh (cluster ssh) to start synchronized ssh sessions in different windows.

  cssh host1 host2 ...
It's not pretty, but it works.

Re: Tmux 1.9 released

#64

Awesome little program. It's saved so much time so far. For anyone that wants to get up and running: https://github.com/andyhmltn/dotfiles That contains two tmux config files that add a few things like CTRL+B thenSHIFT+P for a nice layout and a shortcut for switching between panes with ALT+Arrow keys

i use ctrl-up / ctrl-down bind-key -n C-up next bind-key -n C-down prev ctrl-left and alt-left/right interfere with too many other cli apps. https://github.com/fishman/dot_files/blob/master/tmux/.tmux....

Thank you! I did not know about the source-file command. I've been writing shell scripts, instead. You have just changed my entire work-flow!

Re: Tmux 1.9 released

#65

I remember using on the mac a branch of tmux with iTerm, where the gui understood tmux, giving native tabs and scrollback. I thought this was the greatest thing ever, but am now on Linux. Is this work still continuing does anyone know?

Isn't one of the advantages of tmux is reduce / avoid using the mouse? I know that scrolling is one of the first non-obvious changes that seem irritating at first. But after you get used to scrolling with the keyboard, I find myself missing this possibility on 'standard' terminal windows. Suddenly using the mouse to scroll feels really awkward and inefficient.

I don't understand what are you talking about. In almost every linux terminal you can scroll with PageUp/Down and with mouse on most X ones(ex.: rxvt, xfce-terminal). In tmux one can press ctrl+b -> PageUp and scroll with keyboard or mouse.

edit: corrected hotkeys

Re: Tmux 1.9 released

#66
post #30
post #27

Earlier quoted context omitted.

I use emacs inside tmux all the time (on a Mac, in iTerm2). Works great.

How did you configure the Command key as Meta? I could never get it to work.

Preferences -> Keys, see the heading 'Remap Modifier Keys'.

You can remap left command to left option, leaving right command as command so you can still cmd+tab out of iTerm. You might also have to to to Preferences -> Profiles -> Keys and on the bottom say that the left and right option keys both act as +Esc.

If there's a better way I'd be interested to hear it, but this works for me.

Re: Tmux 1.9 released

#67
post #16

Moving to Emacs, I'm going to miss tmux more than I'll miss vim (there's evil-mode).

what? You can't run emacs in a tmux session?

You definitely can--I do this all the time.

I do literally mean all the time. My current session has been running the same emacs process inside a tmux window for about 60 days now I think.

Re: Tmux 1.9 released

#68
post #16

Moving to Emacs, I'm going to miss tmux more than I'll miss vim (there's evil-mode).

Why? As far as I can tell, Emacs, when talking to an X server or otherwise drawing its own windows (i.e., not in a terminal), is a strict superset of tmux.

Re: Tmux 1.9 released

#69

Earlier quoted context omitted.

Isn't one of the advantages of tmux is reduce / avoid using the mouse? I know that scrolling is one of the first non-obvious changes that seem irritating at first. But after you get used to scrolling with the keyboard, I find myself missing this possibility on 'standard' terminal windows. Suddenly using the mouse to scroll feels really awkward and inefficient.

I think I can live without scrolling, but what I found most irritating when trying tmux is selecting / copying / pasting things. ATM I use iterm with split panes and a 'quake-style' dropdown terminal; tbh it works well enough for me.

If you happen to be copying with the mouse, tmux has prefix + z, which expands your current pane to fill the screen. prefix + z returns the screen layout to it's former self. Makes the need to copy easy regardless of layout.

Re: Tmux 1.9 released

#70
post #4
post #2

Has anyone used these, and can they give me a comparison: tmux/scree/byobu Currently a byobu user, it seems fine so far. Wondering what others offer more than that.

I use screen and tmux for different tasks. I'll use screen when I need to run a long-running task and can't keep my terminal session open. I use tmux with a script so that I can ssh into multiple nodes and broadcast the same commands to them all at the same time. Great for interactive deployments that I haven't been able to automate away with CFEngine just yet.

> I use tmux with a script so that I can ssh into multiple nodes and broadcast the same commands to them all at the same time.

I sometimes need to do this with multiple VMs. I'm really, really not in favor of bash scripting, but I've found the following to suffice, without the tmux dependency:

    for host in box1 box2 box3; do ssh $host 'command; command; command'; done
(This presumes you've set up ssh-agent or are using passphraseless keys and suitable stanzas in ~/.ssh/config; adjust to taste if not.)

I'd never heard of using tmux in this fashion before. Is it that the task sufficiently resembles a nail, or does tmux provide some unique benefit here?

Post reply on HN