Tabbed Terminals in TMux?

2015-01-18 Thread kario tay
Hi - I've been researching tiled window managers (WM) for the following two features that aren't obvious in TMux: 1. Ability to use a terminal instance (running TMux) as the "background" or "wallpaper" -- the way that a tiling WM would do; 2. Ability to display multiple terminals within a singl

Re: [PATCH] The check of !S_ISDIR(sb.st_mode) in second time is wrong since it's already known to be false at that point.

2015-01-18 Thread Nicholas Marriott
Hmm, thanks - judging by the last comments the guy in the ticket had some misapprehensions about how tmux works. I think we should remove the S_ISDIR check per Dmitry's diff since it is clearly unnecessary. I think I'll also make tmux-%u under TMUX_TMPDIR unless some problem occurs to me before

Re: [PATCH] The check of !S_ISDIR(sb.st_mode) in second time is wrong since it's already known to be false at that point.

2015-01-18 Thread Thomas Adam
On 18 January 2015 at 20:32, Nicholas Marriott wrote: > I'm not sure what the original intent of the change was and I don't > understand the commit message (below). > > It seems like the second !S_ISDIR check is both unnecessary and > backwards... Thomas? Seems it was related to this: https://so

Re: [PATCH] Add option to disable copying newline at EOL for vi(1) mode

2015-01-18 Thread Balazs Kezes
On 2015-01-18 20:54 +, Nicholas Marriott wrote: > This is tricky for me because I don't care about vi mode, but the > person who sent this change wanted it and yours is the only comment on > it in 7 months, so I'm not inclined to revert it immediately. Perhaps > some other vi users will weigh i

Re: [PATCH] Add option to disable copying newline at EOL for vi(1) mode

2015-01-18 Thread Nicholas Marriott
We're not adding an option for every obscure little behaviour change, we would quickly be coming down with options and there are already far too many. Options are not free, they are a maintenance burden and a steeper learning curve for new users. So, we pick one behaviour. For vi mode, generally t

Re: [PATCH] Add option to disable copying newline at EOL for vi(1) mode

2015-01-18 Thread Balazs Kezes
On 2015-01-18 01:50 +0100, Thomas Egerer wrote: > the changes introduced in git-commit >00ac1af Copy newline when at EOL in vi(1) mode, from Balazs Kezes. > have been driving me up and down the wall during the last couple of > days. I often use the 'copy-line' command to copy command line > sta

Re: [PATCH] The check of !S_ISDIR(sb.st_mode) in second time is wrong since it's already known to be false at that point.

2015-01-18 Thread Nicholas Marriott
I'm not sure what the original intent of the change was and I don't understand the commit message (below). It seems like the second !S_ISDIR check is both unnecessary and backwards... Thomas? (Also I think we should probably still create tmux-%u under TMUX_TMPDIR, so that is wrong too. Otherwise

Re: [PATCH] The check of !S_ISDIR(sb.st_mode) in second time is wrong since it's already known to be false at that point.

2015-01-18 Thread Dmitri Paduchikh
Hello, I am afraid that my first message wasn't clear. Not from first look at least. Sorry about that. Let me elaborate, I think it is probably a security bug. makesocketpath() checks !S_ISDIR(sb.st_mode); when true it returns with error. But then it checks !S_ISDIR(sb.st_mode) in second time and

Re: Putting the new window at the end

2015-01-18 Thread İsmail Dönmez
Hi, On Sun, Jan 18, 2015 at 2:23 PM, Thomas Adam wrote: > On 18 January 2015 at 12:19, İsmail Dönmez wrote: > > Hi, > > > > I am trying to find a shortcut to create a window at the end of the > current > > windows. Currently new-window -a just appends the new window after the > > How is this *n

Re: Putting the new window at the end

2015-01-18 Thread Thomas Adam
On 18 January 2015 at 12:19, İsmail Dönmez wrote: > Hi, > > I am trying to find a shortcut to create a window at the end of the current > windows. Currently new-window -a just appends the new window after the How is this *not* just 'tmux neww' -- that is, without the '-a' option? -- Thomas Adam

Putting the new window at the end

2015-01-18 Thread İsmail Dönmez
Hi, I am trying to find a shortcut to create a window at the end of the current windows. Currently new-window -a just appends the new window after the current active window which is not what I want. I came up with something like run-shell "x=$(tmux list-windows | tail -1 | cut -f1 -d":") && tmux

Re: [PATCH] Add option to disable copying newline at EOL for vi(1) mode

2015-01-18 Thread Nicholas Marriott
Hi There is no way we are adding an option for this, sorry. Does the current behaviour match vi(1)? On Sun, Jan 18, 2015 at 01:50:18AM +0100, Thomas Egerer wrote: > > Signed-off-by: Thomas Egerer > --- > Hello *, > > the changes introduced in git-commit >00ac1af Copy newline when at EOL

[PATCH] Add option to disable copying newline at EOL for vi(1) mode

2015-01-18 Thread Thomas Egerer
Signed-off-by: Thomas Egerer --- Hello *, the changes introduced in git-commit 00ac1af Copy newline when at EOL in vi(1) mode, from Balazs Kezes. have been driving me up and down the wall during the last couple of days. I often use the 'copy-line' command to copy command line statements. When

[PATCH] The check of !S_ISDIR(sb.st_mode) in second time is wrong since it's already known to be false at that point.

2015-01-18 Thread Dmitri Paduchikh
--- tmux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tmux.c b/tmux.c index 5a1988e..832be8a 100644 --- a/tmux.c +++ b/tmux.c @@ -149,8 +149,7 @@ makesocketpath(const char *label) errno = ENOTDIR; return (NULL); } - if (sb.st