01:00)
To: Nicholas Marriott
Cc: Steven Lu ,tmux-users
,Thomas Adam
Subject: Re: Reverse-Engineering Layout Format
Do you think it would be hard to verify a custom layout in tmux as part of
parsing without a checksum? Like what kind of format could a user create that
would crash the s
al message
> From: Steven Lu
> Date:22/11/2014 10:20 (GMT+01:00)
> To: Felix Rosencrantz
> Cc: tmux-users ,Thomas Adam
> Subject: Re: Reverse-Engineering Layout Format
>
> I have not had a chance to dig into this code yet but I do agree that
> there is a large amount of u
The checksum is so that people don't make copy/paste errors or try to tweak the
layout manually and crash tmux.
Original message
From: Steven Lu
Date:22/11/2014 10:20 (GMT+01:00)
To: Felix Rosencrantz
Cc: tmux-users ,Thomas Adam
Subject: Re: Reverse-Engineering L
I have not had a chance to dig into this code yet but I do agree that there
is a large amount of untapped potential in this functionality and that can
only be helped by making it easier to interface with.
I can see that a set of even not very intelligent layout mutating scripts
should be able to i
I've wondered why is the checksum needed? It seems like it would be easier
for tmux users to write simple tools to tweak a custom layout without the
checksum being there. As best I can tell from a comment in the code, it is
a quick way to check if a layout is valid. I'm not familiar enough with t
Hi Thomas, thanks for the hint!
layout-custom.c reveals a lot of things, I am now imagining that if I can
properly replicate the computation of the layout string along with the
checksum then I'll actually be able to do processing independent of
mutating the pane sizes within tmux, so that i can e.
On 15 July 2013 23:06, Steven Lu wrote:
> 3: zsh (1 panes) [274x76] [layout cc63,274x76,0,0,6] @3
> 4: zsh (1 panes) [274x76] [layout cc65,274x76,0,0,8] @4
>
> I'm hoping someone in the know could give me some hints about how to parse
> this so that I can compute what the result would be to warp
I am a big fan of the feature in Vim which allows you to move a vim-window
(the tmux pane equivalent) _all the way_ in a particular direction by
typing Ctrl+W, H/J/K/L.
Unfortunately tmux has no feature here, but select-layout seems promising.
However, I'd like to avoid reverse-engineering the la