tmux: search buffer with case-insenstive

2012-12-20 Thread ping

among other issues(mostly when working with vim),
is there a way to search tmux buffer (not vim buffer) with case-insensitive?

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


tmux mouse not working on one of my machines

2012-12-20 Thread Michael Garrett
I manage a lot of Centos 5.x and 6.x machines.  On at least one of them, 
(actually a few) I can't get tmux mouse mode to work.  Specifically 
mouse-select-pane, but probably more.  All of my machines call the same 
.tmux.conf file out of the same NFS mounted home directory.  That file contains 
these 4 lines:



set -g mode-mouse on
set -g mouse-resize-pane on
set -g mouse-select-pane on
set -g mouse-select-window on

The server side machine that mouse-select-pane doesn't work on is called 
"admin".  It has these properties that I think are pertinent based on info from 
the main tmux sourceforge page:

  [mgarrett@admin ~] rpm -qa | grep -i curses
  ncurses-5.5-24.20060715
  ncurses-5.5-24.20060715

  [mgarrett@admin ~] rpm -qa | grep -i libevent
  libevent-1.1a-3.2.1

  [mgarrett@admin ~] uname -a
  Linux admin.mgmt.smoke 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 
x86_64 x86_64 x86_64 GNU/Linux

One of the many server side machines that it works on is called "cycl01"  Here 
are the same properties:

  [mgarrett@cycle1 ~] rpm -qa | grep -i curses
  ncurses-5.5-24.20060715
  ncurses-5.5-24.20060715
   

  [mgarrett@cycle1 ~] rpm -qa | grep -i libevent
  libevent-1.1a-3.2.1
   

  [mgarrett@cycle1 ~] uname -a
  Linux cycle1.mgmt.smoke 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 
x86_64 x86_64 x86_64 GNU/Linux
   

Most of my testing of this problem is from a client machine (a Mac laptop) 
running iTerm 2 Build 1.0.0.20120724, but I eliminated iTerm as being the 
problem by running the same mouse-select-pane tests from a native Linux 
desktop, and it had the same problem on admin and worked on cycl01.

What other variables could cause the mouse tools to not work on one server side 
machine if kernel, ncurses, and libevent are the same?  


Thanks for your help.

-Mike--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Tmux vs iTerm tabs and panes

2012-12-20 Thread gca...@gmail.com
Hi,

I'm using Mac + iTerm + Zsh + Vim as my primary setup and wonder whether Tmux 
can fit in. I've learned basics of tmux. But when I try to put it in use, I 
feel it hurts my productivity. I listed the pros and cons I felt against Tmux 
vs iTerm and wonder if there are good solutions or workarounds for the problems 
I had with Tmux. Any feedback will be highly appreciated.

1. Tmux
pros
  Workspace persistence
  Customizability
  Can use keyboard for everything

cons
  Extra steps required when starting/stopping terminal (iTerm has tmux 
integration, I'm not sure how good it works)
  Require two key strokes for operations like switching to tabs and panes
  Copy/paste between vim, tmux and os

2. iTerm
pros
  Quick switch between tabs and panes

cons
  Workspace persistence

Thank you.

Guoliang Cao--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: copy mode

2012-12-20 Thread Elad Rom
have sort of a wishlist regarding copy mode, and wondered if either it 
can be implemented, already exists, or impossible.

1. Don't have the mouse selection disappear immediately
After selecting using the mouse, the selection disappears immediately.
I would like it to remain until I escape it so I can use the system 
clipboard to copy the text.
2. Mouse selection should at least copy straight to clipboard (putty 
style).
If the above is impossible, could the selection at least copy the 
selection to clipboard
(like in putty, for those who are familiar with).
3. Every new buffer should copy immediately to clipboard
It's actually a variation of the above, but more general - could the 
clipboard possibly get the latest created buffer automatically?
4. Copy mode custom keys
 Things like "copy current line" or "copy current paragraph". Does 
vim keys allow these?

Thanks in advance.

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: tmux: search buffer with case-insenstive

2012-12-20 Thread ping

On 12/20/2012 11:16 AM, ping wrote:
> among other issues(mostly when working with vim),
> is there a way to search tmux buffer (not vim buffer) with 
> case-insensitive?
>

OK, I give up, will go back to my screen...
too much issues when working with vim...

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: copy mode

2012-12-20 Thread Thomas Adam
On Thu, Dec 20, 2012 at 10:49:37PM +0200, Elad Rom wrote:
> have sort of a wishlist regarding copy mode, and wondered if either it 
> can be implemented, already exists, or impossible.
> 
> 1. Don't have the mouse selection disappear immediately
> After selecting using the mouse, the selection disappears immediately.
> I would like it to remain until I escape it so I can use the system 
> clipboard to copy the text.

Not possible yet; I might add it to the TODO list.

> 2. Mouse selection should at least copy straight to clipboard (putty 
> style).
> If the above is impossible, could the selection at least copy the 
> selection to clipboard
> (like in putty, for those who are familiar with).

XTerm emulation for this as we already have (set-clipboard) is as good as it
gets.

> 3. Every new buffer should copy immediately to clipboard
> It's actually a variation of the above, but more general - could the 
> clipboard possibly get the latest created buffer automatically?
> 4. Copy mode custom keys
>  Things like "copy current line" or "copy current paragraph". Does 
> vim keys allow these?

Point 4., is in the TODO file already.

-- Thomas Adam

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: tmux mouse not working on one of my machines

2012-12-20 Thread Thomas Adam
On Thu, Dec 20, 2012 at 08:44:57AM -0800, Michael Garrett wrote:
> I manage a lot of Centos 5.x and 6.x machines.  On at least one of them,
> (actually a few) I can't get tmux mouse mode to work.  Specifically
> mouse-select-pane, but probably more.  All of my machines call the same
> .tmux.conf file out of the same NFS mounted home directory.  That file
> contains these 4 lines:

What's TERM set to outside/inside of tmux?  Can you try this with actual
xterm?

-- Thomas Adam

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: tmux: search buffer with case-insenstive

2012-12-20 Thread Thomas Adam
On Thu, Dec 20, 2012 at 03:57:06PM -0500, ping wrote:
> 
> On 12/20/2012 11:16 AM, ping wrote:
> > among other issues(mostly when working with vim),
> > is there a way to search tmux buffer (not vim buffer) with 
> > case-insensitive?
> >
> 
> OK, I give up, will go back to my screen...
> too much issues when working with vim...

Case insensitive searching isn't possible yet, but it's in the TODO file.

I still do not understand how you're conflating perceived problems with
tmux and vim, with tmux and how it handles its own buffer.

What's the problem?

-- Thomas Adam

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: Tmux vs iTerm tabs and panes

2012-12-20 Thread Thomas Adam
Hi,

On Thu, Dec 20, 2012 at 02:49:59PM -0500, gca...@gmail.com wrote:
> Hi,

(Another gratuitous use of gq} in Vim; please try and get your mailer to
wrap its lines to something sane...) 

> I'm using Mac + iTerm + Zsh + Vim as my primary setup and wonder whether
> Tmux can fit in. I've learned basics of tmux. But when I try to put it in
> use, I feel it hurts my productivity. I listed the pros and cons I felt
> against Tmux vs iTerm and wonder if there are good solutions or
> workarounds for the problems I had with Tmux. Any feedback will be highly
> appreciated.
> 
> 1. Tmux pros Workspace persistence Customizability Can use keyboard for
> everything
> 
> cons Extra steps required when starting/stopping terminal (iTerm has tmux
> integration, I'm not sure how good it works) Require two key strokes for
> operations like switching to tabs and panes Copy/paste between vim, tmux
> and os

Are you referring to tmux using a prefix key to denote the start of most of
its operations?  This is no different to Vim or EMACS, say, and for a
terminal program, tmux has to do this given the large array of keys most
people _have_ to type; so tmuxx tries not to get in the way.  That said, if
you're able to find a set of keys which don't interfere day-to-day, you
always have the option of using "bind -n" to not require a prefix key.

I don't own a Mac, and hence do not know anything about iterm2 so I can't
answer those bits.

-- Thomas Adam

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: Tmux vs iTerm tabs and panes

2012-12-20 Thread Adrian Luff
I use Terminal.app + bash + MacVim + tmux daily. Here are some suggestions.

Startup
Not sure what you're referring to in regards to extra steps. You can setup 
iTerm or Terminal.app to start tmux as your default shell via a new profile. 
You can also launch it with a simple "tmux" command if you alias tmux to: tmux 
attach || tmux new
You can set up Window Groups in Terminal (and iTerm2 I believe) to open a 
collection of windows as you please. If you don't want to create custom profies 
you could use Applescript to open the Terminal / iTerm2 windows with the tmux 
sessions you need.

Clipboard
To use system clipboard for vim add to .vimrc: set clipboard=unnamed
To yank from tmux clipboard into system clipboard add to .tmux.conf: bind-key y 
run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
Note that this requires one extra step. From tmux copy-mode you copy to the 
save-buffer then from tmux normal mode you copy the tmux save-buffer to the 
system clipboard with pbcopy.
Generally if I need to copy something small I use the mouse to select, then 
copy and paste without invoking tmux.
For larger jobs I typically save the buffer to a file rather than copying text 
using: bind-key G pipe-pane "cat > $HOME/tmux-#T"

Tabs, sessions windows, panes
I generally use tmux within every tab. I have multiple tabs within 
Terminal.app. Using ⌘-{ and ⌘-} I switch easily between tabs. I have tmux 
configured (through some bash code) to create a grouped session in tmux if I 
attach with multiple clients to the same server. This allows me to view 
different (or the same) tmux windows in different Terminal.app tabs. The basic 
command is: tmux new-session -t new-session-name -s source-session-name
Switching between tmux windows (or panes) is two keystrokes by default. You can 
map commands directly (meaning no prefix required). However, that means those 
keys cannot be used for anything else in your Terminal programs (like vim). For 
example, you can bind Control-1 (^1) to select tmux window 1 with: bind-key -n 
C-1 select-pane -t 1
Personally I've remapped my caps lock key to control via System Preferences -> 
Keyboard -> Modifier Keys and mapped my tmux prefix to ^A. I can press that 
very easily so two keystrokes to switch tmux windows isn't a bother.

-Adrian

On Dec 20, 2012, at 11:49 AM, gca...@gmail.com wrote:

> Hi,
> 
> I'm using Mac + iTerm + Zsh + Vim as my primary setup and wonder whether Tmux 
> can fit in. I've learned basics of tmux. But when I try to put it in use, I 
> feel it hurts my productivity. I listed the pros and cons I felt against Tmux 
> vs iTerm and wonder if there are good solutions or workarounds for the 
> problems I had with Tmux. Any feedback will be highly appreciated.
> 
> 1. Tmux
> pros
>   Workspace persistence
>   Customizability
>   Can use keyboard for everything
> 
> cons
>   Extra steps required when starting/stopping terminal (iTerm has tmux 
> integration, I'm not sure how good it works)
>   Require two key strokes for operations like switching to tabs and panes
>   Copy/paste between vim, tmux and os
> 
> 2. iTerm
> pros
>   Quick switch between tabs and panes
> 
> cons
>   Workspace persistence
> 
> Thank you.
> 
> Guoliang Cao
> --
> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
> Remotely access PCs and mobile devices and provide instant support
> Improve your efficiency, and focus on delivering more value-add services
> Discover what IT Professionals Know. Rescue delivers
> http://p.sf.net/sfu/logmein_12329d2d___
> tmux-users mailing list
> tmux-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/tmux-users

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: Tmux hangs after a while

2012-12-20 Thread Guang-Nan Cheng
Hi Guys,

I have no idea. But the same tmux-server is back now.


On Wed, Dec 19, 2012 at 8:42 PM, Guang-Nan Cheng  wrote:

> No the server did not recover.
>
> Here is some addition info that I found. It seems that tmux lost it's TTY?
>
>  9655 *?*Ss   101:03 tmux
>
>
> I tried the tip 
> here
> but doesn't resolve my problem.
>
> killall -s SIGUSR1 tmux
>
>
> Here is the lsof -n -p 9655
>
> COMMAND  PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
> tmux9655 root  cwdDIR  253,1 4096 25690113 /root
> tmux9655 root  rtdDIR  253,1 40962 /
> tmux9655 root  txtREG  253,1   359328  2885247
> /usr/bin/tmux
> tmux9655 root  memREG  253,162464  2884171
> /usr/lib64/libnss_files-2.15.so
> tmux9655 root  memREG  253,1   141264  2884179
> /usr/lib64/libpthread-2.15.so
> tmux9655 root  memREG  253,119552  2884159
> /usr/lib64/libdl-2.15.so
> tmux9655 root  memREG  253,1  2062152  2884153
> /usr/lib64/libc-2.15.so
> tmux9655 root  memREG  253,1   106632  2884181
> /usr/lib64/libresolv-2.15.so
> tmux9655 root  memREG  253,144320  2884183
> /usr/lib64/librt-2.15.so
> tmux9655 root  memREG  253,1   287944  2883599
> /usr/lib64/libevent-2.0.so.5.1.6
> tmux9655 root  memREG  253,1   167608  2884216
> /usr/lib64/libtinfo.so.5.9
> tmux9655 root  memREG  253,1   147096  2884206
> /usr/lib64/libncurses.so.5.9
> tmux9655 root  memREG  253,114648  2884187
> /usr/lib64/libutil-2.15.so
> tmux9655 root  memREG  253,1   156160  2884146
> /usr/lib64/ld-2.15.so
> tmux9655 root0u   CHR1,3  0t0 1028
> /dev/null
> tmux9655 root1u   CHR1,3  0t0 1028
> /dev/null
> tmux9655 root2u   CHR1,3  0t0 1028
> /dev/null
> tmux9655 root3u  0,90 5608
> anon_inode
> tmux9655 root4u  unix 0x88090d3a16c0  0t040187 socket
> tmux9655 root5u  unix 0x88090d3a1a00  0t040188 socket
> tmux9655 root6u  unix 0x88090ed4db00  0t027332 socket
> tmux9655 root7u  unix 0x88090d3a6800  0t040189
> /tmp//tmux-0/default
> tmux9655 root8u   CHR5,2  0t0 1158
> /dev/ptmx
> tmux9655 root9u   CHR5,2  0t0 1158
> /dev/ptmx
> tmux9655 root   10u  unix 0x881017c75480  0t0 11670475
> /tmp//tmux-0/default
> tmux9655 root   11u   CHR5,2  0t0 1158
> /dev/ptmx
> tmux9655 root   12u   CHR5,2  0t0 1158
> /dev/ptmx
> tmux9655 root   13u   CHR5,2  0t0 1158
> /dev/ptmx
> tmux9655 root   14u   CHR5,2  0t0 1158
> /dev/ptmx
> tmux9655 root   15u   CHR5,2  0t0 1158
> /dev/ptmx
> tmux9655 root   16u   CHR5,2  0t0 1158
> /dev/ptmx
> tmux9655 root   17u  unix 0x88090d3a5140  0t0 11522912
> /tmp//tmux-0/default
> tmux9655 root   18u   CHR5,2  0t0 1158
> /dev/ptmx
> tmux9655 root   19u   CHR  136,6  0t09
> /dev/pts/6
> tmux9655 root   20u   CHR  136,0  0t03
> /dev/pts/0
> tmux9655 root   21u   CHR  136,0  0t03
> /dev/pts/0
> tmux9655 root   22u   CHR  136,0  0t03
> /dev/pts/0
> tmux9655 root   23u   CHR  136,0  0t03
> /dev/pts/0
> tmux9655 root   24u   CHR  136,6  0t09
> /dev/pts/6
> tmux9655 root   25u   CHR  136,6  0t09
> /dev/pts/6
> tmux9655 root   26u   CHR5,2  0t0 1158
> /dev/ptmx
> tmux9655 root   27u   CHR  136,6  0t09
> /dev/pts/6
>
>
>
> On Wed, Dec 19, 2012 at 8:13 PM, Nicholas Marriott <
> nicholas.marri...@gmail.com> wrote:
>
>> What happens if you kill the tmux client or close the terminal it is in?
>> Does the server recover?
>>
>>
>>
>> On Wed, Dec 19, 2012 at 07:54:28PM +0800, Guang-Nan Cheng wrote:
>> >Okay, PID 578 is the hanging attaching tmux clients. Here is the
>> backtrace
>> >for the original tmux server.
>> >(gdb) bt
>> >#0 **0x7f8696181950 in __write_nocancel () at
>> >../sysdeps/unix/syscall-template.S:82
>> >#1 **0x0042d1c0 in tty_stop_tty (tty=tty@entry=0xe12c68) at
>> >tty.c:242
>> >#2 **0x0042d35c in tty_close (tty=tty@entry=0xe12c68) at
>> tty.c:272
>> >#3 **0x00423490 in server_client_msg_dispatch (c=0xe02b60) at
>> >server-clien

Re: Tmux vs iTerm tabs and panes

2012-12-20 Thread gca...@gmail.com
Thank you very much. It seems except the copy/paste could not be handled 
seamlessly, my other two problems can be solved. I'll give it another try.

- Cao

On Dec 20, 2012, at 7:10 PM, Adrian Luff  wrote:

> I use Terminal.app + bash + MacVim + tmux daily. Here are some suggestions.
> 
> Startup
> Not sure what you're referring to in regards to extra steps. You can setup 
> iTerm or Terminal.app to start tmux as your default shell via a new profile. 
> You can also launch it with a simple "tmux" command if you alias tmux to: 
> tmux attach || tmux new
> You can set up Window Groups in Terminal (and iTerm2 I believe) to open a 
> collection of windows as you please. If you don't want to create custom 
> profies you could use Applescript to open the Terminal / iTerm2 windows with 
> the tmux sessions you need.
> 
> Clipboard
> To use system clipboard for vim add to .vimrc: set clipboard=unnamed
> To yank from tmux clipboard into system clipboard add to .tmux.conf: bind-key 
> y run "tmux save-buffer - | reattach-to-user-namespace pbcopy"
> Note that this requires one extra step. From tmux copy-mode you copy to the 
> save-buffer then from tmux normal mode you copy the tmux save-buffer to the 
> system clipboard with pbcopy.
> Generally if I need to copy something small I use the mouse to select, then 
> copy and paste without invoking tmux.
> For larger jobs I typically save the buffer to a file rather than copying 
> text using: bind-key G pipe-pane "cat > $HOME/tmux-#T"
> 
> Tabs, sessions windows, panes
> I generally use tmux within every tab. I have multiple tabs within 
> Terminal.app. Using ⌘-{ and ⌘-} I switch easily between tabs. I have tmux 
> configured (through some bash code) to create a grouped session in tmux if I 
> attach with multiple clients to the same server. This allows me to view 
> different (or the same) tmux windows in different Terminal.app tabs. The 
> basic command is: tmux new-session -t new-session-name -s source-session-name
> Switching between tmux windows (or panes) is two keystrokes by default. You 
> can map commands directly (meaning no prefix required). However, that means 
> those keys cannot be used for anything else in your Terminal programs (like 
> vim). For example, you can bind Control-1 (^1) to select tmux window 1 with: 
> bind-key -n C-1 select-pane -t 1
> Personally I've remapped my caps lock key to control via System Preferences 
> -> Keyboard -> Modifier Keys and mapped my tmux prefix to ^A. I can press 
> that very easily so two keystrokes to switch tmux windows isn't a bother.
> 
> -Adrian
> 
> On Dec 20, 2012, at 11:49 AM, gca...@gmail.com wrote:
> 
>> Hi,
>> 
>> I'm using Mac + iTerm + Zsh + Vim as my primary setup and wonder whether 
>> Tmux can fit in. I've learned basics of tmux. But when I try to put it in 
>> use, I feel it hurts my productivity. I listed the pros and cons I felt 
>> against Tmux vs iTerm and wonder if there are good solutions or workarounds 
>> for the problems I had with Tmux. Any feedback will be highly appreciated.
>> 
>> 1. Tmux
>> pros
>>   Workspace persistence
>>   Customizability
>>   Can use keyboard for everything
>> 
>> cons
>>   Extra steps required when starting/stopping terminal (iTerm has tmux 
>> integration, I'm not sure how good it works)
>>   Require two key strokes for operations like switching to tabs and panes
>>   Copy/paste between vim, tmux and os
>> 
>> 2. iTerm
>> pros
>>   Quick switch between tabs and panes
>> 
>> cons
>>   Workspace persistence
>> 
>> Thank you.
>> 
>> Guoliang Cao
>> --
>> LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
>> Remotely access PCs and mobile devices and provide instant support
>> Improve your efficiency, and focus on delivering more value-add services
>> Discover what IT Professionals Know. Rescue delivers
>> http://p.sf.net/sfu/logmein_12329d2d___
>> tmux-users mailing list
>> tmux-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/tmux-users
> 

--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: Tmux vs iTerm tabs and panes

2012-12-20 Thread gca...@gmail.com

On Dec 20, 2012, at 6:34 PM, Thomas Adam  wrote:

> Hi,
> 
> On Thu, Dec 20, 2012 at 02:49:59PM -0500, gca...@gmail.com wrote:
>> Hi,
> 
> (Another gratuitous use of gq} in Vim; please try and get your mailer to
> wrap its lines to something sane...) 
> 
>> I'm using Mac + iTerm + Zsh + Vim as my primary setup and wonder whether
>> Tmux can fit in. I've learned basics of tmux. But when I try to put it in
>> use, I feel it hurts my productivity. I listed the pros and cons I felt
>> against Tmux vs iTerm and wonder if there are good solutions or
>> workarounds for the problems I had with Tmux. Any feedback will be highly
>> appreciated.
>> 
>> 1. Tmux pros Workspace persistence Customizability Can use keyboard for
>> everything
>> 
>> cons Extra steps required when starting/stopping terminal (iTerm has tmux
>> integration, I'm not sure how good it works) Require two key strokes for
>> operations like switching to tabs and panes Copy/paste between vim, tmux
>> and os
> 
> Are you referring to tmux using a prefix key to denote the start of most of
> its operations?  This is no different to Vim or EMACS, say, and for a
> terminal program, tmux has to do this given the large array of keys most
> people _have_ to type; so tmuxx tries not to get in the way.  That said, if
> you're able to find a set of keys which don't interfere day-to-day, you
> always have the option of using "bind -n" to not require a prefix key.

That's what I was looking for to set up some hot keys for quick window/pane 
switching etc.

Thanks,
Cao

> 
> I don't own a Mac, and hence do not know anything about iterm2 so I can't
> answer those bits.
> 
> -- Thomas Adam


--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: vertical split using join-pane and pane dividers characters.

2012-12-20 Thread Sinbad
ok, :join-pane -h -t 1 -s 2, did what i was looking for.
i thought -v would give split like

  |
  1  | 2

and -h would split like

  1
-
  2

but it's other way round, i would say the -v and -h
semantics are counter-intuitive.


On Tue, Dec 18, 2012 at 12:11 PM, Thomas Adam  wrote:

> Hi,
>
> On 18 December 2012 06:23, Sinbad  wrote:
> > i tried -v option, it doesn't work. this is how i am using it.
> > even with the below command, it always splits horizontally.
> >
> > :join-pane -v -t 1 -s 2
>
> It does work.  What is it what's not working for you, or more likely,
> what is it you think it's supposed to do and isn't which is what
> you're really trying to ask for?
>
> -- Thomas Adam
>
--
LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial
Remotely access PCs and mobile devices and provide instant support
Improve your efficiency, and focus on delivering more value-add services
Discover what IT Professionals Know. Rescue delivers
http://p.sf.net/sfu/logmein_12329d2d___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users