Hi
What shell are you using?
In ksh, if I type:
tmux neww 'emacs /usr/s<TAB>
It completes it just fine.
An alternative would be to write a little shell function to translate:
tmux_neww() {
tmux neww "$*"
}
On Wed, Dec 15, 2010 at 11:57:36AM -0500, Lars Kellogg-Stedman wrote:
> After many (many) years using screen, I've recently started working
> with tmux. While for the most part I really like the design, I've run
> into a problem with the way the new-window command works. As I
> understand it, the way to run a command in a new window is this:
>
> tmux new-window 'command arg1 ...'
>
> The problem, of course, is that the command and arguments are embedded
> in a quoted string, which complete breaks typical shell filename
> auto-completion. If I wanted to edit /etc/profile.d/foo.sh, I might
> type something like this with screen:
>
> screen vim /e<tab>pro<tab>.d/foo<tab>
>
> With tmux, I would have to type out the whole thing:
>
> tmux new-window 'vim /etc/profile.d/foo.sh'
>
> That's substantially less convenient, especially in cases where I'm
> relying on tab completion to list the available files. Additionally,
> this makes passing arguments with spaces and/or quotes substantially
> more difficult. Try editing a file called "lars' document"...that
> ends up being:
>
> tmux new-window "vim \"lars' document\""
>
> ...which isn't particularly fun to type. Simply allowing new-window
> to take multiple arguments for the command, instead of insisting on a
> single argument, would completely solve this problem. Absent a patch
> to tmux, is there an existing solution?
>
> Thanks,
>
> -- Lars
>
> ------------------------------------------------------------------------------
> Lotusphere 2011
> Register now for Lotusphere 2011 and learn how
> to connect the dots, take your collaborative environment
> to the next level, and enter the era of Social Business.
> http://p.sf.net/sfu/lotusphere-d2d
> _______________________________________________
> tmux-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/tmux-users
------------------------------------------------------------------------------
Lotusphere 2011
Register now for Lotusphere 2011 and learn how
to connect the dots, take your collaborative environment
to the next level, and enter the era of Social Business.
http://p.sf.net/sfu/lotusphere-d2d
_______________________________________________
tmux-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tmux-users