Re: C-a ? does not show all key bindings anymore

2020-06-30 Thread Helmut K. C. Tessarek
On 2020-06-30 14:09, Nicholas Marriott wrote:
> 
> Yes it only shows key bindings with notes, either add notes to your key
> bindings or change the ? key binding to remove -N.

Ha, perfect. Thanks. I didn't even know that one can add notes. I'll
check the doc again.

Thanks for the info.

Cheers,
  K. C.

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/019fcfa0-189a-7991-569f-6a8b091a1cd5%40evermeet.cx.


signature.asc
Description: OpenPGP digital signature


C-a ? does not show all key bindings anymore

2020-06-30 Thread Helmut K. C. Tessarek
I've noticed that tmux 3.1b does not show me all key bindings anymore.
It seems that none of the ones I defined in .tmux.conf are shown. e.g.
in my .tmux.conf I have the following entries (there are way more and I
can paste my entire config file, but I doubt it's necessary):

unbind v
bind v split-window -h

Yet, it does not show up below:

C-a C-o Rotate through the panes


C-a C-z Suspend the current client
C-a Space   Select next layout
C-a !   Break pane to a new window
C-a #   List all paste buffers
C-a $   Rename current session
C-a &   Kill current window
C-a '   Prompt for window index to select
C-a (   Switch to previous client
C-a )   Switch to next client
C-a ,   Rename current window
C-a .   Move the current window
C-a /   Describe key binding
C-a 0   Select window 0
C-a 1   Select window 1
C-a 2   Select window 2
C-a 3   Select window 3
C-a 4   Select window 4
C-a 5   Select window 5
C-a 6   Select window 6
C-a 7   Select window 7
C-a 8   Select window 8
C-a 9   Select window 9
C-a ;   Move to the previously active pane
C-a =   Choose a paste buffer from a list
C-a ?   List key bindings
C-a D   Choose a client from a list
C-a L   Switch to the last client
C-a M   Clear the marked pane
C-a [   Enter copy mode
C-a ]   Paste the most recent paste buffer
C-a c   Create a new window
C-a d   Detach the current client
C-a f   Search for a pane
C-a i   Display window information
C-a l   Select the previously current window
C-a n   Select the next window
C-a o   Select the next pane
C-a p   Select the previous pane
C-a q   Display pane numbers
C-a r   Redraw the current client
C-a s   Choose a session from a list
C-a t   Show a clock
C-a w   Choose a window from a list
C-a x   Kill the active pane
C-a z   Zoom the active pane
C-a {   Swap the active pane with the pane above
C-a }   Swap the active pane with the pane below
C-a ~   Show messages
C-a DC  Reset so the visible part of the window follows the cursor
C-a PPage   Enter copy mode and scroll up
C-a Up  Select the pane above the active pane
C-a DownSelect the pane below the active pane
C-a LeftSelect the pane to the left of the active pane
C-a Right   Select the pane to the right of the active pane
C-a M-1 Set the even-horizontal layout
C-a M-2 Set the even-vertical layout
C-a M-3 Set the main-horizontal layout
C-a M-4 Set the main-vertical layout
C-a M-5 Select the tiled layout
C-a M-n Select the next window with an alert
C-a M-o Rotate through the panes in reverse
C-a M-p Select the previous window with an alert
C-a M-UpResize the pane up by 5
C-a M-Down  Resize the pane down by 5
C-a M-Left  Resize the pane left by 5
C-a M-Right Resize the pane right by 5
C-a C-UpResize the pane up
C-a C-Down  Resize the pane down
C-a C-Left  Resize the pane left
C-a C-Right Resize the pane right
C-a S-UpMove the visible part of the window up
C-a S-Down  Move the visible part of the window down
C-a S-Left  Move the visible part of the window left
C-a S-Right Move the visible part of the window right

Any idea what the issue is?

Cheers,
  K. C.

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/834cfb9e-c11b-a59c-8f95-32f9a407bf0c%40evermeet.cx.


signature.asc
Description: OpenPGP digital signature


Re: Feature: Use these Key Bindings by Default: "Ctrl+B, Shift+\" for Vertical Splitting, "Ctrl+B, Shift+-" for Horizontal Splitting?

2019-04-28 Thread Helmut K. C. Tessarek
On 2019-04-28 11:10, 'Thirtheu Alexandru' via tmux-users wrote:
> I just thought that | and _ would be more naturally memorable than % and ".

Who cares? The default key bindings don't matter. A lot of them are poorly
choosen, but that's the author's prerogative.
I don't know anyone who uses tmux without a config file, so I don't understand
the issue.

Cheers,
  K. C.

-- 
regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: synchronize-panes indicator

2018-11-08 Thread Helmut K. C. Tessarek


On 2018-11-08 11:02, Sivaram Neelakantan wrote:
> 
> Is there a way to put text like 'sync on' on all panes which
> synchronize-panes is enabled.  I'd like to set it as pane background
> when it is enabled till it is toggled off.  Something like  t
> or  q which show the time or pane number.  Obviously a bit
> more into the background as text so as to not distract or obstruct the
> pane contents itself.
> 
> sivaram


I use something like this:

unbind y
bind y set-window-option synchronize-panes \; display-message
'synchronize-panes -> #{?synchronize-panes,on,off}'

set-option -g window-status-format "#I:#W#F#{?pane_synchronized,S,}"
set-window-option -g window-status-current-format
"#{?pane_synchronized,#[bg=red],}#{?window_zoomed_flag,#[bg=colour130],}#I:#W#F#{?pane_synchronized,S,}"
set-option -g window-status-current-style bg=blue


-- 
regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: tmux version for master

2018-10-16 Thread Helmut K. C. Tessarek
On 2018-10-16 14:53, Nicholas Marriott wrote:
> I don't want to have three different types of version, two is 
> enough.

That's exactly my point. master is not a version indicator.

> It is not a build dependency, people can write it down on a piece of
> paper if they like.

I think you misunderstood: If people have to use git to compile master,
there's a build dependency on git.
Of course you could always grab master as zip file from github,
which most likely noone is going to do anyway.

Also, the sentiment of "writing down on paper" can't be serious.
Are we in the stone age? In which case we don't need tmux in the first
place.

But ok, it's your code. You want to make it difficult for others. That's
your prerogative.
It just doesn't make any sense to be stubborn, when a few lines of code
could provide you and others with more information that could be useful
- especially to you.

Currently, if you have a compiled version from git, you don't know
anything. I'm connected to a machine and try to figure out which version
of tmux is running. I type `tmux -V` and get `tmux master`.
I'm sorry, but this is just stupid.

Cheers,
 K. C.

-- 
regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: tmux version for master

2018-10-16 Thread Helmut K. C. Tessarek
On 2018-10-16 13:55, Nicholas Marriott wrote:
> I don't want the VCS to be a build dependency

You don't need a dependency. Just use it when it is available and don't,
when it is not.

> I don't think it is too much to ask people who build tmux
> themselvesfrom Git to figure out their own way of tracking what they
> built.

Now you are contradicting yourself. You just created a build dependency.

Cheers,
  K. C.

-- 
regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


tmux version for master

2018-10-16 Thread Helmut K. C. Tessarek
Hello,

When compiling tmux from master, the following happens:

tmux -V shows 'tmux master'.

This output is pretty much useless. It could also be master from 2 years
ago. It only says it was compiled from git master. It doesn't actually
tell you which version and commit point it is.
Maybe we could come up with better output. e.g.:

tmux master (githash) commit-date

If you are interested I can come up with something and submit a PR.
I just want to know, if this is something Nicholas is interested in.
(I won't invest time, if it won't be merged anyway.)

Cheers,
 K. C.

-- 
regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: choose-tree preview

2018-10-16 Thread Helmut K. C. Tessarek
On 2018-10-16 04:07, Nicholas Marriott wrote:
> This is set by display-panes-colour and display-panes-active-colour.

Thank you very much for the reply.

Yes, this worked. I don't know why I have missed this. It's right below
the choose-tree help.

I guess I was looking for indicator-color or something. I have never
associated display-pane-colour with what it does. Until I read the text.
But since the help is quite extensive, I only read the option names.
I thought that display-pane-colour changes the color of the pane.

Anyway, it worked. Thanks again.

Cheers,
 K. C.

-- 
regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


choose-tree preview

2018-10-15 Thread Helmut K. C. Tessarek
When using choose-tree the preview shows the name of the current window
in red and the name of the others in (dark) blue.

However, the blue is very hard to read, thus I was wondering, if there's
a way to change the dark blue to a different color.

I searched in the man page for preview colors, preview, colors, but
nothing in those sections helped me to figure this out.

Cheers,
  K. C.

-- 
regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: simulate a toggle

2018-03-22 Thread Helmut K. C. Tessarek
I like the idea of a "local" variable (user option) even better than
using an env variable. At least for the toggle thingy. I just didn't
know that this was possible.

But yea, an env var should work too.

Cheers,
 K. C.

On 2018-03-22 15:04, Nicholas Marriott wrote:
> Great. I don't know why an environment variable didn't work, it seems
> like it should. I'll take a look when I get home.
> 
> 
> On Thu, 22 Mar 2018, 19:03 Helmut K. C. Tessarek,  <mailto:tessa...@evermeet.cx>> wrote:
> 
> Eureka! Great idea.
> 
> This worked:
> 
> bind C-b if -F '#{@TPCS}' \
> 'set -g @TPCS "0"; display-message "TPCS=0"' \
> 'set -g @TPCS "1"; display-message "TPCS=1"'
> 
> Cheers,
>   K. C.
> 
> On 2018-03-22 14:42, Nicholas Marriott wrote:
>     > It is definitely possible. Did you try a user option instead of an
> > environment variable?
> >
> > On Thu, 22 Mar 2018, 18:39 Helmut K. C. Tessarek,
> mailto:tessa...@evermeet.cx>
> > <mailto:tessa...@evermeet.cx <mailto:tessa...@evermeet.cx>>> wrote:
> >
> >     I tried that too. It does not work. So maybe this use-case is not
> >     supported or possible.
> >
> >     Too bad, I really would have loved using a toggle, but I'm
> afraid I will
> >     have to map my 2 sequences to 2 separate keys instead.
> >
> >     Unless you have another idea...
> >
> >     Cheers,
>     >       K. C.
> >
> >     On 2018-03-22 14:24, Nicholas Marriott wrote:
> >     > I can't try it now. #{} is not expanded in config file. But $
> >     might be.
> >     >
> >     >
> >     >
> >     > On Thu, 22 Mar 2018, 18:14 Helmut K. C. Tessarek,
> >     mailto:tessa...@evermeet.cx>
> <mailto:tessa...@evermeet.cx <mailto:tessa...@evermeet.cx>>
> >     > <mailto:tessa...@evermeet.cx <mailto:tessa...@evermeet.cx>
> <mailto:tessa...@evermeet.cx <mailto:tessa...@evermeet.cx>>>> wrote:
> >     >
> >     >     It still does not work. I believe the variable is only
> >     interpreted the
> >     >     first time when the config file is read.
> >     >
> >     >     Please try the following:
> >     >
> >     >     bind C-b if -F '#{TPCS}' \
> >     >             'setenv -g TPCS 0; display-message "TPCS=0"' \
> >     >             'setenv -g TPCS 1; display-message "TPCS=1"'
> >     >
> >     >     If you try it, you'll see that "TPCS=1" is shown all the
> time.
> >     >
> >     >     Cheers,
> >     >       K. C.
> >     >
> >     >
> >     >     On 2018-03-22 14:05, Nicholas Marriott wrote:
> >     >     > It is #{}.
> >     >     >
> >     >     > $ tmux setenv -g FOO 1
> >     >     > $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run
> "echo no
> >     >     >/tmp/foo"'
> >     >     > $ cat /tmp/foo
> >     >     > yes
> >     >     > $ tmux setenv -g FOO 0
> >     >     > $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run
> "echo no
> >     >     >/tmp/foo"'
> >     >     > $ cat /tmp/foo
> >     >     > no
> >     >     > $ tmux setenv -gu FOO
> >     >     > $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run
> "echo no
> >     >     >/tmp/foo"'
> >     >     > $ cat /tmp/foo
> >     >     > no
> >     >     >
> >     >     >
> >     >     >
> >     >     > On Thu, Mar 22, 2018 at 01:45:42PM -0400, Helmut K. C.
> >     Tessarek wrote:
> >     >     >> Thanks for the reply.
> >     >     >>
> >     >     >> On 2018-03-22 13:37, Nicholas Marriott wrote:
> >     >     >>> Try if -F '#{TPCS}'
> >     >     >>>
> >     >     >>> Or maybe $TPCS I forget.
> >     >     >>

Re: simulate a toggle

2018-03-22 Thread Helmut K. C. Tessarek
Eureka! Great idea.

This worked:

bind C-b if -F '#{@TPCS}' \
'set -g @TPCS "0"; display-message "TPCS=0"' \
'set -g @TPCS "1"; display-message "TPCS=1"'

Cheers,
  K. C.

On 2018-03-22 14:42, Nicholas Marriott wrote:
> It is definitely possible. Did you try a user option instead of an
> environment variable?
> 
> On Thu, 22 Mar 2018, 18:39 Helmut K. C. Tessarek,  <mailto:tessa...@evermeet.cx>> wrote:
> 
> I tried that too. It does not work. So maybe this use-case is not
> supported or possible.
> 
> Too bad, I really would have loved using a toggle, but I'm afraid I will
> have to map my 2 sequences to 2 separate keys instead.
> 
> Unless you have another idea...
> 
> Cheers,
>   K. C.
> 
> On 2018-03-22 14:24, Nicholas Marriott wrote:
> > I can't try it now. #{} is not expanded in config file. But $
> might be.
> >
> >
> >
> > On Thu, 22 Mar 2018, 18:14 Helmut K. C. Tessarek,
> mailto:tessa...@evermeet.cx>
> > <mailto:tessa...@evermeet.cx <mailto:tessa...@evermeet.cx>>> wrote:
> >
> >     It still does not work. I believe the variable is only
> interpreted the
> >     first time when the config file is read.
> >
> >     Please try the following:
> >
> >     bind C-b if -F '#{TPCS}' \
> >             'setenv -g TPCS 0; display-message "TPCS=0"' \
> >             'setenv -g TPCS 1; display-message "TPCS=1"'
> >
> >     If you try it, you'll see that "TPCS=1" is shown all the time.
> >
> >     Cheers,
> >       K. C.
> >
> >
> >     On 2018-03-22 14:05, Nicholas Marriott wrote:
> >     > It is #{}.
> >     >
> >     > $ tmux setenv -g FOO 1
> >     > $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run "echo no
> >     >/tmp/foo"'
> >     > $ cat /tmp/foo
>     >     > yes
>     >     > $ tmux setenv -g FOO 0
> >     > $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run "echo no
> >     >/tmp/foo"'
> >     > $ cat /tmp/foo
> >     > no
> >     > $ tmux setenv -gu FOO
> >     > $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run "echo no
> >     >/tmp/foo"'
> >     > $ cat /tmp/foo
> >     > no
> >     >
> >     >
> >     >
> >     > On Thu, Mar 22, 2018 at 01:45:42PM -0400, Helmut K. C.
> Tessarek wrote:
> >     >> Thanks for the reply.
> >     >>
> >     >> On 2018-03-22 13:37, Nicholas Marriott wrote:
> >     >>> Try if -F '#{TPCS}'
> >     >>>
> >     >>> Or maybe $TPCS I forget.
> >     >>
> >     >> I tried the following:
> >     >>
> >     >> bind C-b if -F '#{TPCS}' \ [next 2 lines as before]
> >     >>
> >     >> and
> >     >>
> >     >> bind C-b if -F '$TPCS' \ [next 2 lines as before]
> >     >>
>     >     >> Unfortunately neither worked.
> >     >>
> >     >> Cheers,
> >     >>   K. C.
> >     >>
> >     >> --
> >     >> regards Helmut K. C. Tessarek              KeyID
> 0x172380A011EF4944
> >     >> Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0
> 11EF 4944
> >     >>
> >     >> /*
> >     >>    Thou shalt not follow the NULL pointer for chaos and madness
> >     >>    await thee at its end.
> >     >> */
> >     >>
> >     >
> >     >
> >     >
> >
> >
> >     --
> >     regards Helmut K. C. Tessarek              KeyID
> 0x172380A011EF4944
> >     Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF
> 4944
> >
> >     /*
> >        Thou shalt not follow the NULL pointer for chaos and madness
> >        await thee at its end.
> >     */
> >
> 
> 
> --
> regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
> Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944
> 
> /*
>    Thou shalt not follow the NULL pointer for chaos and madness
>    await thee at its end.
> */
> 


-- 
regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: simulate a toggle

2018-03-22 Thread Helmut K. C. Tessarek
I tried that too. It does not work. So maybe this use-case is not
supported or possible.

Too bad, I really would have loved using a toggle, but I'm afraid I will
have to map my 2 sequences to 2 separate keys instead.

Unless you have another idea...

Cheers,
  K. C.

On 2018-03-22 14:24, Nicholas Marriott wrote:
> I can't try it now. #{} is not expanded in config file. But $ might be.
> 
> 
> 
> On Thu, 22 Mar 2018, 18:14 Helmut K. C. Tessarek,  <mailto:tessa...@evermeet.cx>> wrote:
> 
> It still does not work. I believe the variable is only interpreted the
> first time when the config file is read.
> 
> Please try the following:
> 
> bind C-b if -F '#{TPCS}' \
>         'setenv -g TPCS 0; display-message "TPCS=0"' \
>         'setenv -g TPCS 1; display-message "TPCS=1"'
> 
> If you try it, you'll see that "TPCS=1" is shown all the time.
> 
> Cheers,
>   K. C.
> 
> 
> On 2018-03-22 14:05, Nicholas Marriott wrote:
> > It is #{}.
> >
> > $ tmux setenv -g FOO 1
> > $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run "echo no
> >/tmp/foo"'
> > $ cat /tmp/foo
> > yes
> > $ tmux setenv -g FOO 0
> > $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run "echo no
> >/tmp/foo"'
> > $ cat /tmp/foo
> > no
> > $ tmux setenv -gu FOO
> > $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run "echo no
> >/tmp/foo"'
> > $ cat /tmp/foo
> > no
> >
> >
> >
> > On Thu, Mar 22, 2018 at 01:45:42PM -0400, Helmut K. C. Tessarek wrote:
> >> Thanks for the reply.
> >>
>     >> On 2018-03-22 13:37, Nicholas Marriott wrote:
> >>> Try if -F '#{TPCS}'
> >>>
> >>> Or maybe $TPCS I forget.
> >>
> >> I tried the following:
> >>
> >> bind C-b if -F '#{TPCS}' \ [next 2 lines as before]
> >>
> >> and
> >>
> >> bind C-b if -F '$TPCS' \ [next 2 lines as before]
> >>
> >> Unfortunately neither worked.
> >>
> >> Cheers,
> >>   K. C.
>     >>
> >> --
> >> regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
> >> Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944
> >>
> >> /*
> >>    Thou shalt not follow the NULL pointer for chaos and madness
> >>    await thee at its end.
> >> */
> >>
> >
> >
> >
> 
> 
> --
> regards Helmut K. C. Tessarek              KeyID 0x172380A011EF4944
> Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944
> 
> /*
>    Thou shalt not follow the NULL pointer for chaos and madness
>    await thee at its end.
> */
> 


-- 
regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: simulate a toggle

2018-03-22 Thread Helmut K. C. Tessarek
It still does not work. I believe the variable is only interpreted the
first time when the config file is read.

Please try the following:

bind C-b if -F '#{TPCS}' \
'setenv -g TPCS 0; display-message "TPCS=0"' \
'setenv -g TPCS 1; display-message "TPCS=1"'

If you try it, you'll see that "TPCS=1" is shown all the time.

Cheers,
  K. C.


On 2018-03-22 14:05, Nicholas Marriott wrote:
> It is #{}.
> 
> $ tmux setenv -g FOO 1
> $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run "echo no >/tmp/foo"'
> $ cat /tmp/foo
> yes
> $ tmux setenv -g FOO 0
> $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run "echo no >/tmp/foo"'
> $ cat /tmp/foo
> no
> $ tmux setenv -gu FOO
> $ tmux if -F '#{FOO}' 'run "echo yes >/tmp/foo"' 'run "echo no >/tmp/foo"'
> $ cat /tmp/foo
> no
> 
> 
> 
> On Thu, Mar 22, 2018 at 01:45:42PM -0400, Helmut K. C. Tessarek wrote:
>> Thanks for the reply.
>>
>> On 2018-03-22 13:37, Nicholas Marriott wrote:
>>> Try if -F '#{TPCS}'
>>>
>>> Or maybe $TPCS I forget.
>>
>> I tried the following:
>>
>> bind C-b if -F '#{TPCS}' \ [next 2 lines as before]
>>
>> and
>>
>> bind C-b if -F '$TPCS' \ [next 2 lines as before]
>>
>> Unfortunately neither worked.
>>
>> Cheers,
>>   K. C.
>>
>> -- 
>> regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
>> Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944
>>
>> /*
>>Thou shalt not follow the NULL pointer for chaos and madness
>>await thee at its end.
>> */
>>
> 
> 
> 


-- 
regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: simulate a toggle

2018-03-22 Thread Helmut K. C. Tessarek
Thanks for the reply.

On 2018-03-22 13:37, Nicholas Marriott wrote:
> Try if -F '#{TPCS}'
> 
> Or maybe $TPCS I forget.

I tried the following:

bind C-b if -F '#{TPCS}' \ [next 2 lines as before]

and

bind C-b if -F '$TPCS' \ [next 2 lines as before]

Unfortunately neither worked.

Cheers,
  K. C.

-- 
regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


simulate a toggle

2018-03-22 Thread Helmut K. C. Tessarek
I'm trying to simulate a toggle*, but the following does not work:

TPCS=1

unbind C-b
bind C-b if "if [ x$TPCS == x1 ]; then true; else false; fi" \
'set -g window-style "fg=default,bg=default" ; set -g
window-active-style "fg=default,bg=default" ; setenv -g TPCS 0' \
'set -g window-style "fg=colour247,bg=colour234" ; set -g
window-active-style "fg=colour250,bg=black" ; setenv -g TPCS 1'

Any pointers?

Cheers,
  K. C.

* I want to use the same key combination for setting/unsetting a certain
behaviour.

-- 
regards Helmut K. C. Tessarek  KeyID 0x172380A011EF4944
Key fingerprint = 8A55 70C1 BD85 D34E ADBC 386C 1723 80A0 11EF 4944

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


signature.asc
Description: OpenPGP digital signature


Re: "lost server" reading tmux.conf

2017-10-05 Thread Helmut K. C. Tessarek
On 2017-10-05 16:03, Jason White wrote:
> That does resolve the issue for me on 2.6. I'm not sure what, precisely,
> changed or when, but:
> 
> On macOS 10.11.6/Xcode 7.3.1 I do not have this issue with 2.5.
> On macOS 10.12.6/Xcode 9 it doesn't work out of the box with at least
> 2.5 or 2.6.

This is not the first time I heard that Xcode 9 breaks code. I'm a bit
worried about this, since we can't expect people (like Nicholas) to fix
their code, because of issues with Xcode 9.

Hopefully Apple fixes Xcode in the near future.

-- 
regards Helmut K. C. Tessarek  KeyID 0xF7832007C11F128D
Key fingerprint = 28A3 1666 4FE8 D72C CFD5 8B23 F783 2007 C11F 128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: tmux 2.6-rc

2017-08-30 Thread Helmut K. C. Tessarek
On 2017-08-30 14:57, Nicholas Marriott wrote:
> 
> I like the dash, it adds a certain... dash.

Well, you asked to test it. :-)

No RPMs with dash.

Cheers,
  K. C.

-- 
regards Helmut K. C. Tessarek  KeyID 0xF7832007C11F128D
Key fingerprint = 28A3 1666 4FE8 D72C CFD5 8B23 F783 2007 C11F 128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: tmux 2.6-rc

2017-08-30 Thread Helmut K. C. Tessarek
On 2017-08-30 14:44, Helmut K. C. Tessarek wrote:
> Also, something is off with the versioning anyway

I figured it out. You tagged the release as 2.6. This is a big no-no,
because you will have to re-tag (move the tag from one commit hash to
the final one). This is not a very good practice with git. Confuses the
hell out of people.

The tag should be the same as the version number.

For rc the best form is

X.YrcZ

In your case: 2.6rc1

Cheers,
  K. C.

-- 
regards Helmut K. C. Tessarek  KeyID 0xF7832007C11F128D
Key fingerprint = 28A3 1666 4FE8 D72C CFD5 8B23 F783 2007 C11F 128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: tmux 2.6-rc

2017-08-30 Thread Helmut K. C. Tessarek
On 2017-08-29 17:14, Nicholas Marriott wrote:
> Please report any problems.
> 

Building RPMs does not work, because RPM does not allow a dash in the
version number.
Also, something is off with the versioning anyway.

Packages on github usually have this form:

https://github.com/%{name}/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz

But the first version is 2.6 and the second is 2.6-rc while both should
be the same, prefererably w/o a dash in the version number.

Cheers,
  K. C.

-- 
regards Helmut K. C. Tessarek  KeyID 0xF7832007C11F128D
Key fingerprint = 28A3 1666 4FE8 D72C CFD5 8B23 F783 2007 C11F 128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Install tmux on Mac OS X 10.9.5

2017-04-28 Thread Helmut K. C. Tessarek
On 2017-04-28 02:44, Lee yuying wrote:
> But Homebrew only supports Mac OS 10.10 above.
> How do I install tmux without using Homebrew?

Use MacPorts instead.

But I've created a meta package which includes all the dependencies:
https://evermeet.cx/pub/macosx/tmux/2.4/tmux-2.4.mpkg

Cheers,
 K. C.

-- 
regards Helmut K. C. Tessarek
lookup http://pool.sks-keyservers.net for KeyID 0xC11F128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Tmux supported architecture

2016-10-21 Thread Helmut K. C. Tessarek
On 20.10.16 18:51 , Pamela I. Wray wrote:
> Can you please tell me if Tmux can run on RHEL running on the
> mainframe? It is s390x architecture.

Yes, it should run w/o problems, if you have the dependencies (libcurses, 
libevent) installed.
You can easily test it by compiling it yourself.

Here's a script to download the dependencies, compile them, and create a static 
binary:
https://gist.github.com/tessus/5e118d44261a6ab2f198

Cheers,
 K. C.

-- 
regards Helmut K. C. Tessarek
lookup http://sks.pkqs.net for KeyID 0xC11F128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness 
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: tmux versioning and development

2016-10-12 Thread Helmut K. C. Tessarek
On 2016-10-12 15:35, Helmut K. C. Tessarek wrote:
> In any case, the way development is handled is very untypical to any
> project I've ever seen. That's why I'm so puzzled by it.

Never mind. Thomas explained the OpenBSD dev process. It makes sense now.

Cheers,
 K. C.

-- 
regards Helmut K. C. Tessarek
lookup http://sks.pkqs.net for KeyID 0xC11F128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: tmux versioning and development

2016-10-12 Thread Helmut K. C. Tessarek
Hello Thomas,

On 2016-10-12 14:46, Thomas Adam wrote:
> This can't happen, and you're misunderstanding how the workflow happens.

Yes, this is certainly true. That's why I asked. :-)

> You're not the first one to either.  Tmux is developed as part of OpenBSD.
> It's in the base system.  OpenBSD uses CVS for all of its source code
> management and they have their own servers.

That explains a lot.

> But once there, people are free to download and use it, and since it's GH they
> can now also send through issues and pull-requests.  The thing to bear in mind
> is that it's a collection point only for feeding BACK INTO OPENBSD.  I put
> this in capitals so you understand its importance.  Commiting *back* to
> OpenBSD relies on Nicholas doing so as the commiter, and hence he is the
> author.  This is why he has to attriute patches to authors that way.

Ok, I didn't know that. This also explains the way how dev is handled.

> When changes go into OpenBSD then they're synched to tmux-portable on Github;
> again, the attribution has come out of CVS which will almost always be
> Nicholas (or someone else with commit-bit rights to the CVS repository).

It all starts to make sense.

> We do use PRs, by the way, but only as a means of gathering patches together.
> Should you want to do that rather than using git-send-email, that's OK too.

Yes, on some systems git-send depends on additional libs that are not
always there. I happened to experience a dependency nightmare several times.

> Hope this helps.

Yes, I really appreciate the time for the elaborate explanation. Thank you.

Cheers,
 K. C.

-- 
regards Helmut K. C. Tessarek
lookup http://sks.pkqs.net for KeyID 0xC11F128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: tmux versioning and development

2016-10-12 Thread Helmut K. C. Tessarek
On 2016-10-12 12:40, Nicholas Marriott wrote:
> I think you made a mistake here: --disable-debug works fine in Git, we
> only change the default.

I'll try again, but it did not work when I used it yesterday. Maybe I
have to delete the .cache dirs or start completely from scratch.

I'll check it out.

Cheers,
 K. C.

-- 
regards Helmut K. C. Tessarek
lookup http://sks.pkqs.net for KeyID 0xC11F128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: tmux versioning and development

2016-10-12 Thread Helmut K. C. Tessarek
Hello,

Thank you for the reply.

On 2016-10-12 12:34, Nicholas Marriott wrote:
> People don't know when they've built from Git and when they haven't?
> I don't think this is a real problem.

It only works for people who build it themselves. But since there is
only 1 realease every year, a lot of port systems (I maintain the
MacPorts tmux port) introduced git releases at a certain level (not git
master), and these dev releases are more frequent than the releases.

So yes, if you compile it yourself, you know that it was some commit
point after the 2.3 release, butthis is all you know. How would you do a
bisect, if you even don't know the build number?

You want debug symbols but don't care when a problem occured (at which
commit point)?

> People are credited in the commit message if they send a patch and I 
> know their name (that is, I have a real name to credit and not an 
> account name or alias).

Well, it's the author's choice to use an alias or their real name, but
git does use an author field for a reason. Author and commiter do not
have to be the same person. Git can also make use of signed-off-by tags.

In any case, the way development is handled is very untypical to any
project I've ever seen. That's why I'm so puzzled by it.

Cheers,
 K. C.

-- 
regards Helmut K. C. Tessarek
lookup http://sks.pkqs.net for KeyID 0xC11F128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


tmux versioning and development

2016-10-12 Thread Helmut K. C. Tessarek
Hello,

I have a few questions/comments and I hope that Thomas or Nicholas find
the time to reply.

I've noticed that as soon as a release is made the version is bumped and
debug is turned on. I was not even able to turn this off with the
configure option --disable-debug.
So a static binary compiled from git has 4.5 MB while a static binary
compiled from a release tarball has close to 2 MB.
People should be able to choose, if they want debug info or optimized code.

Setting the version to 2.4 is _very_ confusing. As it is now, people
think they are running release 2.4 while they're not.

Other projects use versioning like:

2.4-dev
2.3--<7 character long git hash>
(e.g.: 2.3-17-76a9e6f)

The development model does not follow a pull request model, nor does it
seem to be git aware at all.

People send patches and their code is commited by either Nicholas or
Thomas, which is fine, but the author field should still have the name
of the coder. It has not. Instead the author is mentioned in the commit
message. I don't want to complain, but this looks very strange, as if
the developers have no idea how git works.

One of the reasons why I haven't sent any patches is, because I don't
want to write code, test it, send a patch file via git to a mailing list
(which is another annyoance) and then my name does not even show up as
the author. I don't know why pull requests are such a problem.

Anyway, it certainly sounds that I only have negative feedback. This is
not the case. tmux is a great product and I use it daily. I just wanted
to comment on a few things I just don't understand. Maybe the developers
can shed a light on these things.

Cheers,
 K. C.


-- 
regards Helmut K. C. Tessarek
lookup http://sks.pkqs.net for KeyID 0xC11F128D

/*
   Thou shalt not follow the NULL pointer for chaos and madness
   await thee at its end.
*/

-- 
You received this message because you are subscribed to the Google Groups 
"tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tmux-users+unsubscr...@googlegroups.com.
To post to this group, send an email to tmux-users@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.