Yes, this is quite a more linear patch.
It has one defect, in my opinion, i.e. that it does
buffer-size reallocations, usually this is avoided
by increasing the buffer by a factor 2 rather than increasing
it by 1 byte. That amounts to changing
--
Change (inspired by an IRC discussion with Nicholas):
Typing the end-of-line key once will bring you to the end of the textual
content of the current row on the screen.
If the current row contains only a portion of a line had wrapped onto
the next row, then typing the end-of-line key again will br
clemens fischer wrote:
> Hi,
>
> I am very glad that tmux has rectangular copies now! But a problem as
> well: in the following, try to cut out the block
>
> >bbb < from >aaa bbb
> >y< >xxx y
> >22 < >111 22
>
> At least in vi-copy mode on linux, the shor
Hi
Thanks for the diff.
Tiago Cunha who originally wrote the load-buffer command sent me an update to
do this as well which is quite similar to yours but a bit simpler, so we will
probably use it. I've attached it below as well if you want to take a look.
You can't just use stdin because the loa
On Thu, Feb 18, 2010 at 11:05:27PM +, Nicholas Marriott wrote:
> On Thu, Feb 18, 2010 at 02:59:44PM -0800, Robin Lee Powell wrote:
> > I'm lost; what options would it rotate through, exactly, and how
> > would that be determined?
>
> Eg mode-keys has options "vi" and "emacs", "setw mode-keys"
On Thu, Feb 18, 2010 at 02:59:44PM -0800, Robin Lee Powell wrote:
> On Thu, Feb 18, 2010 at 10:51:06PM +, Nicholas Marriott wrote:
> > On Thu, Feb 18, 2010 at 02:36:06PM -0800, Robin Lee Powell wrote:
> > > On Thu, Feb 18, 2010 at 02:25:08PM -0800, Micah Cowan wrote:
> > > > > Now we just need
Ah okay, I thought he was talking about something used from copy-mode.
On Thu, Feb 18, 2010 at 02:57:51PM -0800, Robin Lee Powell wrote:
> Isn't that what Micah's solution does? If not, I'm missing
> something.
>
> -Robin
>
> On Thu, Feb 18, 2010 at 10:52:01PM +, Nicholas Marriott wrote:
>
On Thu, Feb 18, 2010 at 10:51:06PM +, Nicholas Marriott wrote:
> On Thu, Feb 18, 2010 at 02:36:06PM -0800, Robin Lee Powell wrote:
> > On Thu, Feb 18, 2010 at 02:25:08PM -0800, Micah Cowan wrote:
> > > > Now we just need the rotating behaviour of J (see my other
> > > > post).
> > >
> > > Well
Isn't that what Micah's solution does? If not, I'm missing
something.
-Robin
On Thu, Feb 18, 2010 at 10:52:01PM +, Nicholas Marriott wrote:
>
> I think the place for deciding how things should appear when they are pasted
> is
> in paste-buffer or save-buffer not in copy mode.
>
>
> On Th
On Thu, Feb 18, 2010 at 01:39:15PM -0800, Micah Cowan wrote:
> clemens fischer wrote:
> > Hi,
> >
> > I am very glad that tmux has rectangular copies now! But a problem as
> > well: in the following, try to cut out the block
> >
> > >bbb < from >aaa bbb
> > >y< >xxx y
Hi
I think the place for deciding how things should appear when they are pasted is
in paste-buffer or save-buffer not in copy mode.
On Thu, Feb 18, 2010 at 02:25:08PM -0800, Micah Cowan wrote:
> Robin Lee Powell wrote:
> > On Thu, Feb 18, 2010 at 01:39:15PM -0800, Micah Cowan wrote:
> >> The fol
Hi
On Thu, Feb 18, 2010 at 02:36:06PM -0800, Robin Lee Powell wrote:
> On Thu, Feb 18, 2010 at 02:25:08PM -0800, Micah Cowan wrote:
> > > Now we just need the rotating behaviour of J (see my other
> > > post).
> >
> > Well, you could of course still rig that up through run-shell, and
> > some sor
On Thu, Feb 18, 2010 at 02:25:08PM -0800, Micah Cowan wrote:
> > Now we just need the rotating behaviour of J (see my other
> > post).
>
> Well, you could of course still rig that up through run-shell, and
> some sort of flag-file. But personally, I don't like the rotating
> behavior of J: better
clemens fischer wrote:
> clemens fischer wrote:
>
>> I am very glad that tmux has rectangular copies now! But a problem as
>> well: in the following, try to cut out the block
>>
>> >bbb < from >aaa bbb
>> >y< >xxx y
>> >22 < >111 22
>>
>> At least in vi-copy m
Robin Lee Powell wrote:
> On Thu, Feb 18, 2010 at 01:39:15PM -0800, Micah Cowan wrote:
>> The following should bind J to join the current (already
>> finished) selection with spaces:
>>
>> bind-key J run-shell 'tmux save-buffer /tmp/.tmux-exchange; tr \n
>> " " < /tmp/.tmux-exchange >/tmp/.tmux-ex
On Thu, Feb 18, 2010 at 01:39:15PM -0800, Micah Cowan wrote:
> The following should bind J to join the current (already
> finished) selection with spaces:
>
> bind-key J run-shell 'tmux save-buffer /tmp/.tmux-exchange; tr \n
> " " < /tmp/.tmux-exchange >/tmp/.tmux-exchange-processed; tmux
> load-
On Thu, Feb 18, 2010 at 09:07:00PM +0100, clemens fischer wrote:
> The other problem: for my purposes, I used to rely on screens
> ability to 'J'oin the lines of any selection by either spaces,
> commas, newlines (the default) or whatnot, ie. to make one long
> line of the selected lines. For exa
clemens fischer wrote:
> I am very glad that tmux has rectangular copies now! But a problem as
> well: in the following, try to cut out the block
>
> >bbb < from >aaa bbb
> >y< >xxx y
> >22 < >111 22
>
> At least in vi-copy mode on linux, the shortest line d
clemens fischer wrote:
> Hi,
>
> I am very glad that tmux has rectangular copies now! But a problem as
> well: in the following, try to cut out the block
>
> >bbb < from >aaa bbb
> >y< >xxx y
> >22 < >111 22
>
> At least in vi-copy mode on linux, the shor
Hallo,
please find enclosed a patch to tmux cmd-load-buffer.c
which reads the buffer from undecidable size streams up to EOF.
I put a predefined limit on the final buffer size.
This, I checked on my currently available machines: netBSD and Linux
and works fine.
Also, I wrote code to read from pipe
Hi,
I am very glad that tmux has rectangular copies now! But a problem as
well: in the following, try to cut out the block
>bbb < from >aaa bbb
>y< >xxx y
>22 < >111 22
At least in vi-copy mode on linux, the shortest line determines the
right border of th
21 matches
Mail list logo