Hi,
What I meant was being able to copy and paste with vim-like shortcuts. For
example,
in vi-copy mode, if I do "ay, it should copy the selected text into
register/buffer a. Then,
if I issue a "command-mode" command like 'paste "a', I should get back the
contents of
buffer 'a'.
-Ankur
On Wed,
Except that he was originally talking about binding a key in the vi-copy
table, so maybe he does.
He may know it better as "normal" mode, which is what I more usually
hear it called (at least in vim documentaiton). I'm not sure, but I
think "command" mode may refer to the mode you enter when you t
I'm not certain I understand how that's related to your copy buffers,
thing? Or are you talking about command prefixes such as double-quote
register name (say, "ay to yank into register a)?
Nicholas Marriott wrote
> i think Micah Cowan is or was working on command prefixes in copy mode, this
> wou
Have you had a chance to look at this yet? (Just prodding)
It's the vi-B-W-E-cmds.diff one; it introduced "non-whitespace"
word-skipping movement commands.
I'd like this patch to get in before I start working on the numeric
command-prefix stuff, so I don't have to rework this patch to adjust for
(Quoting rearranged for conversational convenience)
> On Wed, Feb 03, 2010 at 06:19:14PM -0500, Ankur Nayak wrote:
>>Can I checkout code from the OpenBSD repository?
Nicholas Marriott wrote:
> Yes, but it won't build on any platform except OpenBSD, SF has the
> portable version.
I've been us
I see. Thanks.
On Wed, Feb 3, 2010 at 6:46 PM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:
> Oh yeah, of course you can do it with a command, you just can't do it
> immediately from copy mode.
>
>
> On Thu, Feb 04, 2010 at 12:37:40AM +0100, clemens fischer wrote:
> > Ankur Nayak wrote
Can I checkout code from the OpenBSD repository?
On Wed, Feb 3, 2010 at 6:18 PM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:
> OpenBSD is the primary repository at the moment because it is easier for
> me, SF
> is sync'd up fairly often by tcunha. It should be up-to-date bar a couple
Oh yeah, of course you can do it with a command, you just can't do it
immediately from copy mode.
On Thu, Feb 04, 2010 at 12:37:40AM +0100, clemens fischer wrote:
> Ankur Nayak wrote:
>
> > A related question. Is it possible to copy buffers to specific
> > registers, just as one can do in vim?
>
Ankur Nayak wrote:
> A related question. Is it possible to copy buffers to specific
> registers, just as one can do in vim?
That looks easy, and it's in the manual:
copy-buffer [-a src-index] [-b dst-index] [-s src-session] [-t dst-session]
(alias: copyb)
Copy a session paste buffer to ano
It looks right to me; except that you may want to move the xfree(label)
back down where it was before (with a NULL check on label), as otherwise
it'll leak memory if some silly user specifies both -S _and_ -L.
-mjc
Nicholas Marriott wrote:
> How about this instead? I think it should have the same
"lsk -t vi-copy" will show you key bindings for mode-keys vi in copy mode, "lsk
-t emacs-copy" for when mode-keys emacs.
On Thu, Feb 04, 2010 at 12:11:27AM +0100, clemens fischer wrote:
> Nicholas Marriott wrote:
>
> > On Wed, Feb 03, 2010 at 09:43:22PM +0100, clemens fischer wrote:
> >> Did yo
Yes, but it won't build on any platform except OpenBSD, SF has the portable
version.
On Wed, Feb 03, 2010 at 06:19:14PM -0500, Ankur Nayak wrote:
>Can I checkout code from the OpenBSD repository?
>
>On Wed, Feb 3, 2010 at 6:18 PM, Nicholas Marriott
><[1]nicholas.marri...@gmail.com> w
i think Micah Cowan is or was working on command prefixes in copy mode, this
would be nice to do with that.
On Wed, Feb 03, 2010 at 11:17:18PM +, Nicholas Marriott wrote:
> No, but it would be nice to have, I'll check if it's on the todo list.
>
>
> On Wed, Feb 03, 2010 at 05:57:22PM -0500,
Ah, sorry, I missed that. Can you try HEAD? I think I fixed a bug like this
recently.
On Thu, Feb 04, 2010 at 12:04:28AM +0100, clemens fischer wrote:
> Nicholas Marriott wrote:
>
> > On Wed, Feb 03, 2010 at 09:51:09PM +0100, clemens fischer wrote:
> >> Hi,
> >>
> >> tmux version is 1.1, 'uname
You use -c if you want to bind a key for command mode when using vi mode keys
rather than emacs. If you don't know what that is, you obviously don't use vi
and don't need to use it. -c only applies when you give a mode key table with
-t.
On Thu, Feb 04, 2010 at 12:11:27AM +0100, clemens fischer w
OpenBSD is the primary repository at the moment because it is easier for me, SF
is sync'd up fairly often by tcunha. It should be up-to-date bar a couple of
days right now I think.
On Wed, Feb 03, 2010 at 05:53:18PM -0500, Ankur Nayak wrote:
>Hi,
>
>How do I checkout the newest source co
No, but it would be nice to have, I'll check if it's on the todo list.
On Wed, Feb 03, 2010 at 05:57:22PM -0500, Ankur Nayak wrote:
>A related question. Is it possible to copy buffers to specific registers,
>just as one can do in vim?
>
>On Wed, Feb 3, 2010 at 4:32 PM, Nicholas Marri
Nicholas Marriott wrote:
> On Wed, Feb 03, 2010 at 09:51:09PM +0100, clemens fischer wrote:
>> Hi,
>>
>> tmux version is 1.1, 'uname -rms' -> Linux 2.6.32.7-spott i686
>>
>> $ tmux list-keys
>>...
>>o: send-keys l o g i n Space - p Space - f Space i n o
>>...
>>g:
Nicholas Marriott wrote:
> On Wed, Feb 03, 2010 at 09:43:22PM +0100, clemens fischer wrote:
>> Did you mean I should use either:
>>
>> bind-key > save-buffer /home/ino/hardcopy.txt
>>
>> or
>>
>> bind-key -c > save-buffer /home/ino/hardcopy.txt
>
> You should use the former and use C-b > i
A related question. Is it possible to copy buffers to specific registers,
just as one can do in vim?
On Wed, Feb 3, 2010 at 4:32 PM, Nicholas Marriott <
nicholas.marri...@gmail.com> wrote:
> On Wed, Feb 03, 2010 at 09:43:22PM +0100, clemens fischer wrote:
> > Nicholas Marriott wrote:
> >
> > > Th
Hi,
How do I checkout the newest source code checked into the tmux repository. I
do a cvs checkout from sourceforge. But, it seems a lot of the changes are
not reflected there.
-Ankur
--
The Planet: dedicated and managed
Hi
Looks cool.
In later tmux you can bind multiple prefix keys eg (^A, ^B), I find that handy
if I ever attach to the inner tmux on its own.
On Fri, Jan 29, 2010 at 06:56:52PM -0700, Aaron Denney wrote:
> I've gotten the proposed solution of tmux-in-tmux to work fairly well.
> For others amusem
This has a couple of warnings (trivially fixed).
It also cores when used on a very small terminal (try making 4 panes then
resizing the terminal to 2x2 terminal and changing layout). I can't see why
offhand but let me know if you can't find it and I'll have a look.
Note that main-h and main-v als
Looks fine, any chance of adding it to the man page too?
On Wed, Feb 03, 2010 at 08:06:27AM -0500, Paul Hoffman wrote:
> The attached patch causes the display-panes command to show the active
> pane's number in a distinct color so that you can see at glance which
> pane you're in.
>
> The patch
How about this instead? I think it should have the same effect.
Index: tmux.c
===
RCS file: /cvs/src/usr.bin/tmux/tmux.c,v
retrieving revision 1.66
diff -u -p -r1.66 tmux.c
--- tmux.c 3 Jan 2010 12:51:05 - 1.66
+++ tmux
On Wed, Feb 03, 2010 at 09:51:09PM +0100, clemens fischer wrote:
> Hi,
>
> tmux version is 1.1, 'uname -rms' -> Linux 2.6.32.7-spott i686
>
> $ tmux list-keys
>...
>o: send-keys l o g i n Space - p Space - f Space i n o
>...
>g: send-keys i n o - n e w s @ s p o t
On Wed, Feb 03, 2010 at 09:43:22PM +0100, clemens fischer wrote:
> Nicholas Marriott wrote:
>
> > The commands used for modes are a completely separate namespace than
> > standard commands and there is no command for saving the buffer.
> >
> > You can just bind it to a prefixed key then do use tha
Nicholas Marriott wrote:
> The commands used for modes are a completely separate namespace than
> standard commands and there is no command for saving the buffer.
>
> You can just bind it to a prefixed key then do use that as normal
> inside copy mode (ie with the prefix).
>
> -c is to bind a key
Hi,
tmux version is 1.1, 'uname -rms' -> Linux 2.6.32.7-spott i686
$ tmux list-keys
...
o: send-keys l o g i n Space - p Space - f Space i n o
...
g: send-keys i n o - n e w s @ s p o t t e s w o o d e . d n s a l i a s
. o r g
...
g: send-keys s p o t t
Hi
The commands used for modes are a completely separate namespace than standard
commands and there is no command for saving the buffer.
You can just bind it to a prefixed key then do use that as normal inside copy
mode (ie with the prefix).
-c is to bind a key for command mode when using vi key
On Mon-2010/01/25-22:53 Micah Cowan wrote:
> Nicholas Marriott wrote:
>> I'd make this something like enum window_copy_search_mode,
>> WINDOW_COPY_WORDSTART, WINDOW_COPY_WORDEND.
>
> OOC, why do you bother with such namespaces in locally-scoped
> definitions?
I like Nicholas' code very much, it
I am trying to to bind a command in table vi-copy that saves (possibly
part of) a buffer to some file:
bind-key -c -t vi-copy > save-buffer /home/ino/hardcopy.txt
tmux answers:
usage: bind-key [-cnr] [-t key-table] key command [arguments] at line ...
I'm not even sure wheather I need the "-
Understood. I wasn't sure you would; I just dislike duplicating the same
if ((path = makesockpath(...)) == NULL) {
give_an_error_msg();
exit(1);
}
twice in a row (once in one branch, and again in a branch of an outer
if, IIRC - wherever the xmakesockpath calls are now). And avoiding the
d
Looks fine but I'll test it later.
On Tue, Feb 02, 2010 at 04:41:13PM -0800, Liam Bedford wrote:
> Not sure if this fits with what you're trying to do, but it seems
> useful to me :)
>
> This patch adds another layout mode, called tiled, which tries
> to tile the panes in a number of rows. It co
Nice idea, will have a better look tonight but I'm not sure I like
the idea of makesockpath calling exit().
On Tue, Feb 02, 2010 at 11:32:26PM -0800, Micah Cowan wrote:
> So, at some point when I was testing some of the recent keybindings I
> introduced into tmux, I ran a separate tmux instance w
This looks cool, will test it tonight.
In HEAD the pane border of the active pane is highlighted (only helps with >2
panes though)
On Wed, Feb 03, 2010 at 08:06:27AM -0500, Paul Hoffman wrote:
> The attached patch causes the display-panes command to show the active
> pane's number in a distinct
The attached patch causes the display-panes command to show the active
pane's number in a distinct color so that you can see at glance which
pane you're in.
The patch also introduces a new option, display-panes-active-colour, to
control this.
I wrote it because I have a tendency to lose track of
Not sure if this fits with what you're trying to do, but it seems
useful to me :)
This patch adds another layout mode, called tiled, which tries
to tile the panes in a number of rows. It could do with a slightly
better algorithm to figure out how many cells to put per row,
but it works for me at t
38 matches
Mail list logo