OpenBSD CVS

CVS log for src/usr.bin/tmux/Attic/mode-key.c


[BACK] Up to [local] / src / usr.bin / tmux

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.74, Tue Jan 24 21:50:22 2017 UTC (7 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.73: +1 -1 lines
FILE REMOVED

Fixed keys for choose mode, and remove the last mode keys bits.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Oct 12 14:50:14 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.72: +88 -253 lines
Diff to previous 1.72 (colored)

Drop the edit mode key tables and just use fixed key bindings for the
command prompt.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Oct 11 13:45:47 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.71: +8 -2 lines
Diff to previous 1.71 (colored)

Some other stuff that can be local to one file.

Revision 1.71 / (download) - annotate - [select for diffs], Tue Oct 11 07:23:34 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.70: +169 -386 lines
Diff to previous 1.70 (colored)

Fundamental change to how copy mode key bindings work:

The vi-copy and emacs-copy mode key tables are gone, and instead copy
mode commands are bound in one of two normal key tables ("copy-mode" or
"copy-mode-vi"). Keys are bound to "send-keys -X copy-mode-command". So:

    bind -temacs-copy C-Up scroll-up
    bind -temacs-copy -R5 WheelUpPane scroll-up

Becomes:

    bind -Tcopy-mode C-Up send -X scroll-up
    bind -Tcopy-mode WheelUpPane send -N5 -X scroll-up

This allows the full command parser and command set to be used - for
example, we can use the normal command prompt for searching, jumping,
and so on instead of a custom one:

    bind -Tcopy-mode C-r command-prompt -p'search up' "send -X search-backward '%%'"

command-prompt also gets a -1 option to only require on key press, which
is needed for jumping.

The plan is to get rid of mode keys entirely, so more to come eventually.

Revision 1.70 / (download) - annotate - [select for diffs], Mon Oct 10 21:29:23 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.69: +10 -10 lines
Diff to previous 1.69 (colored)

Loads more static, except for cmd-*.c and window-*.c.

Revision 1.69 / (download) - annotate - [select for diffs], Mon Sep 12 15:40:58 2016 UTC (7 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.68: +311 -306 lines
Diff to previous 1.68 (colored)

Allow repeat count to be specified in mode key tables with bind-key -R,
and set the default repeat count to 5 for WheelUp and WheelDown in
copy-mode.

Revision 1.68 / (download) - annotate - [select for diffs], Wed Apr 27 09:39:09 2016 UTC (8 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.67: +7 -1 lines
Diff to previous 1.67 (colored)

Add next/previous paragraph, from J Raynor.

Revision 1.67 / (download) - annotate - [select for diffs], Fri Mar 18 07:28:27 2016 UTC (8 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

Instead of reusing MouseUp at the finish of a drag, add a new key
MouseDragEnd. It can be useful to bind them separately in copy mode.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Mar 1 12:04:43 2016 UTC (8 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.65: +3 -1 lines
Diff to previous 1.65 (colored)

When a mouse drag is finished, fire a MouseUp key press, instead of
doing the drag end in code. From Stephen Coakley.

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jan 19 15:59:12 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.64: +2 -2 lines
Diff to previous 1.64 (colored)

I no longer use my SourceForge address so replace it.

Revision 1.64 / (download) - annotate - [select for diffs], Thu Nov 12 11:05:34 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.63: +12 -6 lines
Diff to previous 1.63 (colored)

Support UTF-8 key bindings by expanding the key type from int to
uint64_t and converting UTF-8 to Unicode on input and the reverse on
output. (This allows key bindings, there are still omissions - the
largest being that the various prompts do not accept UTF-8.)

Revision 1.63 / (download) - annotate - [select for diffs], Fri May 8 16:33:29 2015 UTC (9 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.62: +15 -1 lines
Diff to previous 1.62 (colored)

mode_key_entry can go into mode-key.c; also a few spaces->tabs.

Revision 1.62 / (download) - annotate - [select for diffs], Sun Apr 19 21:34:21 2015 UTC (9 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.61: +15 -1 lines
Diff to previous 1.61 (colored)

Rewrite of tmux mouse support which was a mess. Instead of having
options for "mouse-this" and "mouse-that", mouse events may be bound as
keys and there is one option "mouse" that turns on mouse support
entirely (set -g mouse on).

See the new MOUSE SUPPORT section of the man page for description of the
key names and new flags (-t= to specify the pane or window under mouse
as a target, and send-keys -M to pass through a mouse event).

The default builtin bindings for the mouse are:

    bind -n   MouseDown1Pane select-pane -t=; send-keys -M
    bind -n MouseDown1Status select-window -t=
    bind -n   MouseDrag1Pane copy-mode -M
    bind -n MouseDrag1Border resize-pane -M

To get the effect of turning mode-mouse off, do:

    unbind -n MouseDrag1Pane
    unbind -temacs-copy MouseDrag1Pane

The old mouse options are now gone, set-option -q may be used to
suppress warnings if mixing configuration files.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Nov 6 09:17:25 2014 UTC (9 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.60: +2 -1 lines
Diff to previous 1.60 (colored)

Add V for select line with vi(1) keys. From Juho Pohjala.

Revision 1.60 / (download) - annotate - [select for diffs], Mon Aug 11 22:39:57 2014 UTC (9 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.59: +2 -1 lines
Diff to previous 1.59 (colored)

No need to repeat other-end more than once, from Juho Pohjala. Also add
it to the commands list while here.

Revision 1.59 / (download) - annotate - [select for diffs], Tue May 13 07:54:20 2014 UTC (10 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.58: +3 -1 lines
Diff to previous 1.58 (colored)

Add a copy mode key binding to copy to a named buffer. From J Raynor.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Mar 31 21:39:31 2014 UTC (10 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.57: +3 -1 lines
Diff to previous 1.57 (colored)

Add setb -a to append and a copy mode append command, from J Raynor with
minor changes.

Revision 1.57 / (download) - annotate - [select for diffs], Mon Mar 31 21:36:43 2014 UTC (10 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.56: +16 -1 lines
Diff to previous 1.56 (colored)

Add start-of-list, end-of-list, top-line and bottom-line in choice mode,
from madmaverick9 at roxxmail dot eu, similar diff a few days later from
Marcel Partap.

Revision 1.56 / (download) - annotate - [select for diffs], Fri Feb 14 12:35:58 2014 UTC (10 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.55: +7 -1 lines
Diff to previous 1.55 (colored)

Make C-j the same as C-m, from Simon Nicolussi.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Oct 23 11:31:03 2013 UTC (10 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.54: +2 -1 lines
Diff to previous 1.54 (colored)

Key to swap to other end of selection (bound to o with vi keys), from J
Raynor.

Revision 1.54 / (download) - annotate - [select for diffs], Fri Jul 5 14:44:06 2013 UTC (10 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored)

Whitespace nits, from Ben Boeckel.

Revision 1.53 / (download) - annotate - [select for diffs], Fri Jul 5 14:38:22 2013 UTC (10 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.52: +11 -4 lines
Diff to previous 1.52 (colored)

Implement s, S, C mode switch commands in vi(1) mode, from Ben Boeckel.

Revision 1.52 / (download) - annotate - [select for diffs], Fri Mar 22 15:52:40 2013 UTC (11 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.51: +6 -2 lines
Diff to previous 1.51 (colored)

Add copy-pipe mode command to copy selection and also pipe to a command.

Revision 1.51 / (download) - annotate - [select for diffs], Thu Mar 21 16:54:37 2013 UTC (11 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.50: +1 -2 lines
Diff to previous 1.50 (colored)

Fix a couple of memory leaks, from Romain Francoise.

Revision 1.50 / (download) - annotate - [select for diffs], Mon Nov 19 10:51:25 2012 UTC (11 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.49: +3 -1 lines
Diff to previous 1.49 (colored)

Add halfpage commands to mode command string table (missed by accident),
from Thomas Adam.

Revision 1.49 / (download) - annotate - [select for diffs], Tue Oct 9 18:08:21 2012 UTC (11 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.48: +5 -1 lines
Diff to previous 1.48 (colored)

Add tree keys to vi mode too, missed by accident.

Revision 1.48 / (download) - annotate - [select for diffs], Tue Oct 2 08:16:28 2012 UTC (11 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.47: +263 -252 lines
Diff to previous 1.47 (colored)

Allow session tree (C-b s) to expand and collapse sessions with
left/right/space keys. From Thomas Adam.

Revision 1.47 / (download) - annotate - [select for diffs], Mon Aug 27 21:29:23 2012 UTC (11 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.46: +21 -21 lines
Diff to previous 1.46 (colored)

Instead of requiring a prompt to enter all numbers >10, go back to
0-9a-z and add A-Z and enter the prompt when M-0 to M-9 are pressed
(like in copy mode). Prompted by request from mcbride@, help from Thomas
Adam.

Revision 1.46 / (download) - annotate - [select for diffs], Sat Aug 11 06:45:33 2012 UTC (11 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.45: +25 -1 lines
Diff to previous 1.45 (colored)

Instead of numbering choose mode items 0-9a-z and then nothing, number
them all and if there are more than 10 use a prompt when 0-9 is
pressed. From Thomas Adam.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Mar 4 07:38:11 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.44: +10 -3 lines
Diff to previous 1.44 (colored)

Add A and I keys for vi status line editing.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Jan 21 11:12:13 2012 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.43: +5 -5 lines
Diff to previous 1.43 (colored)

Use RB trees not SPLAY.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Jan 20 19:10:29 2012 UTC (12 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.42: +7 -1 lines
Diff to previous 1.42 (colored)

Add space movement keys for vi mode in the status line from Ben Boeckel.

Revision 1.42 / (download) - annotate - [select for diffs], Sun Dec 4 16:18:01 2011 UTC (12 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.41: +9 -1 lines
Diff to previous 1.41 (colored)

Support "jump to" like vi in copy mode using t and T keys. Also add x
and X for delete in edit mode.

From Ben Boeckel, thanks.

Revision 1.41 / (download) - annotate - [select for diffs], Thu Dec 1 20:44:12 2011 UTC (12 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.40: +5 -1 lines
Diff to previous 1.40 (colored)

Add home and end keys for command prompt, from Matthias Lederhofer.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Nov 15 23:34:12 2011 UTC (12 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.39: +18 -7 lines
Diff to previous 1.39 (colored)

Add word movement and editing command for command prompt editing, from
Ben Boeckel.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Aug 16 09:47:18 2011 UTC (12 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.38: +6 -2 lines
Diff to previous 1.38 (colored)

Add up/down/left/right keys in vi edit mode. From "livibetter" SF bug
3385651.

Revision 1.38 / (download) - annotate - [select for diffs], Wed May 18 18:06:36 2011 UTC (13 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.37: +6 -1 lines
Diff to previous 1.37 (colored)

Add three new copy-mode commands - select-line, copy-line,
copy-end-of-line. From Dave Disser and Randy Stauner a while back.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Apr 5 18:55:38 2011 UTC (13 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.36: +2 -1 lines
Diff to previous 1.36 (colored)

Bind C-u to delete-line in vi mode like ksh does, suggested by thib.

Revision 1.36 / (download) - annotate - [select for diffs], Sat Jan 1 03:39:21 2011 UTC (13 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.35: +6 -6 lines
Diff to previous 1.35 (colored)

Sprinkle a little more const.

Revision 1.35 / (download) - annotate - [select for diffs], Mon Mar 22 19:10:42 2010 UTC (14 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.34: +14 -1 lines
Diff to previous 1.34 (colored)

Add vi-style "jump" commands for copy mode, from Micah Cowan.

Revision 1.34 / (download) - annotate - [select for diffs], Tue Mar 2 00:32:41 2010 UTC (14 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.33: +20 -1 lines
Diff to previous 1.33 (colored)

Permit keys in copy mode to be prefixed by a repeat count, entered with
[1-9] in vi mode, or M-[1-9] in emacs mode.

From Micah Cowan, tweaked a little by me.

Revision 1.33 / (download) - annotate - [select for diffs], Thu Feb 11 20:39:40 2010 UTC (14 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.32: +4 -1 lines
Diff to previous 1.32 (colored)

Add "N" key to search the opposite way from the last search (reverse of "n"),
from Micah Cowan.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Feb 6 17:35:01 2010 UTC (14 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.31: +6 -3 lines
Diff to previous 1.31 (colored)

Rectangle copy support, from Robin Lee Powell.

Revision 1.31 / (download) - annotate - [select for diffs], Thu Feb 4 20:00:26 2010 UTC (14 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.30: +7 -1 lines
Diff to previous 1.30 (colored)

vi-style B, W and E keys in copy mode to navigate between words treating only
spaces as word separators. Also add . to the list of word separators for
standard word navigation.

From Micah Cowan, tweaked slightly by me.

Revision 1.30 / (download) - annotate - [select for diffs], Mon Feb 1 22:15:51 2010 UTC (14 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.29: +11 -1 lines
Diff to previous 1.29 (colored)

Add scroll-up/scroll-down for choose/more mode, from Micah Cowan.

Revision 1.29 / (download) - annotate - [select for diffs], Wed Jan 27 23:26:14 2010 UTC (14 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.28: +2 -1 lines
Diff to previous 1.28 (colored)

Actually bind the new key to e.

Revision 1.28 / (download) - annotate - [select for diffs], Wed Jan 27 20:18:52 2010 UTC (14 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.27: +3 -2 lines
Diff to previous 1.27 (colored)

Alter next-word to have vi-like movement behaviour, and add next-word-end with
the existing emacs behaviour. From Micah Cowan.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Jan 25 21:33:39 2010 UTC (14 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.26: +9 -3 lines
Diff to previous 1.26 (colored)

Top/bottom of history mode keys, diff from Micah Cowan, tweaked by me.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Jan 23 17:49:21 2010 UTC (14 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.25: +3 -1 lines
Diff to previous 1.25 (colored)

Use C-e and C-y for scrolling in vi mode, from Micah Cowan.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 3 22:50:10 2009 UTC (14 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.24: +8 -8 lines
Diff to previous 1.24 (colored)

Massive spaces->tabs and trailing whitespace cleanup, hopefully for the last
time now I've configured emacs to make them displayed in really annoying
colours...

Revision 1.24 / (download) - annotate - [select for diffs], Fri Nov 13 07:00:54 2009 UTC (14 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.23: +1 -16 lines
Diff to previous 1.23 (colored)

Zap unused functions, prompted by deraadt.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Oct 13 13:45:56 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.22: +10 -2 lines
Diff to previous 1.22 (colored)

Add mode keys to move the cursor to the top, middle and bottom of the screen.
H/M/L in vi mode and M-R/M-r in emacs (bottom of screen not bound in emacs).

Revision 1.22 / (download) - annotate - [select for diffs], Wed Oct 7 15:58:40 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.21: +3 -1 lines
Diff to previous 1.21 (colored)

Support J and K for scroll up and scroll down in copy mode with vi keys,
suggested by martynas.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Oct 6 07:09:00 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.20: +7 -1 lines
Diff to previous 1.20 (colored)

Make C-Up and C-Down in copy mode scroll the screen up and down one line
without moving the cursor, like Up and Down in scroll mode (which will shortly
disappear).

Revision 1.20 / (download) - annotate - [select for diffs], Sun Oct 4 11:18:26 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.19: +4 -4 lines
Diff to previous 1.19 (colored)

Get / and ? the right way round in vi mode, and use : for goto line rather than
g.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Oct 4 08:26:41 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.18: +3 -1 lines
Diff to previous 1.18 (colored)

C-v and M-v too.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Oct 4 08:23:01 2009 UTC (14 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.17: +4 -2 lines
Diff to previous 1.17 (colored)

Support C-n/C-p with emacs keys in choice mode, also fix a comment.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Sep 2 06:33:20 2009 UTC (14 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

Add a transpose-chars command in edit mode (C-t in emacs mode only). From Kalle
Olavi Niemitalo.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Aug 18 07:23:43 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.15: +5 -2 lines
Diff to previous 1.15 (colored)

Add a "delete line" key when editing in the status line or the search up/down
prompt. C-u with emacs keys, d with vi.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Aug 18 07:08:26 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.14: +14 -2 lines
Diff to previous 1.14 (colored)

Add (naive) searching and goto line in copy mode. Searching is C-r and C-s with
emacs keys, / and ? with vi; n repeats the search again with either key
set. All searching wraps the top/bottom. Goto line is g for both emacs and vi.

The search prompts don't have full line editing, just simple append and delete
characters.

Also sort the mode keys list in tmux.1.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Aug 13 23:44:18 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.13: +3 -1 lines
Diff to previous 1.13 (colored)

Switch the prompt code to return an empty string when the user enters no
response and reserve NULL for an explicit cancel. Change all callbacks to treat
them the same so no functional change.

Also add cancel key bindings to emacs mode which were missing.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Aug 13 22:32:18 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.12: +6 -2 lines
Diff to previous 1.12 (colored)

vi(1)-style half page scroll in copy and scroll modes. Move the vi full page
scroll key to C-b instead of C-u and use C-u/C-d for half page scrolling with
vi keys. In emacs mode, half page scrolling is bound to M-Up and M-Down.

Suggested by merdely (about a year ago :-)).

Revision 1.12 / (download) - annotate - [select for diffs], Thu Jul 30 20:41:48 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.11: +2 -1 lines
Diff to previous 1.11 (colored)

Plug some memory leaks.

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jul 28 17:05:10 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.10: +31 -1 lines
Diff to previous 1.10 (colored)

Final pieces of mode key rebinding: bind-key and unbind-key now accept a -t
argument to modify a table.

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jul 28 07:03:32 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.9: +160 -19 lines
Diff to previous 1.9 (colored)

Next step towards customisable mode keys: build each default table of keys into
a named tree on start and use that for lookups. Also add command to string
translation tables and modify list-keys to show the the mode key bindings (new
-t argument).

Revision 1.9 / (download) - annotate - [select for diffs], Mon Jul 27 20:36:13 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.8: +6 -6 lines
Diff to previous 1.8 (colored)

Remove an unused entry in the mode keys command enum and rename
MODEKEYCOPY_QUIT to _CANCEL to match the others.

Revision 1.8 / (download) - annotate - [select for diffs], Mon Jul 27 19:29:35 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.7: +168 -184 lines
Diff to previous 1.7 (colored)

Change mode key bindings from big switches into a set of tables. Rather than
lumping them all together, split editing keys from those used in choice/more
mode and those for copy/scroll mode.

Tidier and clearer, and the first step towards customisable mode keys.

Revision 1.7 / (download) - annotate - [select for diffs], Mon Jul 27 18:51:46 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.6: +1 -6 lines
Diff to previous 1.6 (colored)

Get rid of empty mode_key_free function.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Jul 27 12:11:11 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.5: +9 -1 lines
Diff to previous 1.5 (colored)

Add a key to delete to end of line at the prompt (^K in emacs mode, C/D in vi).

From Kalle Olavi Niemitalo.

Revision 1.5 / (download) - annotate - [select for diffs], Sun Jul 26 21:42:08 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Detect backspace by looking at termios VERASE and translate it into \177 (which
matches screen's behaviour if not its termcap/terminfo entry). The terminfo kbs
cap is often wrong or missing so it can't be used, and just assuming \177 may
be wrong.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jul 23 13:44:02 2009 UTC (14 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.3: +2 -1 lines
Diff to previous 1.3 (colored)

C-d is delete as well in emacs mode.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Jul 21 17:57:29 2009 UTC (14 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.2: +8 -8 lines
Diff to previous 1.2 (colored)

Tidy up keys: use an enum for the key codes, and remove the macros which just
wrap flag sets/clears/tests.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Jul 12 16:15:34 2009 UTC (14 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.1: +5 -2 lines
Diff to previous 1.1 (colored)

Add a "back to indentation" key in copy mode to move the cursor to the first
non-whitespace character. ^ with vi and M-m with emacs key bindings. Another
from Kalle Olavi Niemitalo, thanks.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Jun 1 22:58:49 2009 UTC (14 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6

Import tmux, a terminal multiplexor allowing (among other things) a single
terminal to be switched between several different windows and programs
displayed on one terminal be detached from one terminal and moved to another.

ok deraadt pirofti

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.