OpenBSD CVS

CVS log for src/usr.bin/tmux/window-client.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.34 / (download) - annotate - [select for diffs], Tue Aug 8 07:41:04 2023 UTC (9 months, 1 week ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, HEAD
Changes since 1.33: +2 -2 lines
Diff to previous 1.33 (colored)

Extend the menu drawing function to support custom characters and
styles, from Alexis Hildebrandt.

Revision 1.33 / (download) - annotate - [select for diffs], Mon May 30 12:55:25 2022 UTC (23 months, 2 weeks ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Spacing/style nits.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Aug 20 19:50:17 2021 UTC (2 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.31: +3 -3 lines
Diff to previous 1.31 (colored)

Hide struct args behind a couple of accessor functions.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Apr 12 06:50:25 2021 UTC (3 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.30: +41 -4 lines
Diff to previous 1.30 (colored)

Permit shortcut keys in buffer, client, tree modes to be configured with
a format; the default remains the line number. GitHub issue 2636.

Revision 1.30 / (download) - annotate - [select for diffs], Thu Dec 3 07:12:12 2020 UTC (3 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.29: +13 -1 lines
Diff to previous 1.29 (colored)

Redraw any visible modes when status line changes so that formats like
the pane title are updated. GitHub issue 2487. Also a man page fix from
jmc.

Revision 1.29 / (download) - annotate - [select for diffs], Mon Jun 1 09:43:01 2020 UTC (3 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.28: +2 -2 lines
Diff to previous 1.28 (colored)

Instead of sending all data to control mode clients as fast as possible,
add a limit of how much data will be sent to the client and try to use
it for panes with some degree of fairness. GitHub issue 2217, with
George Nachman.

Revision 1.28 / (download) - annotate - [select for diffs], Sat May 16 16:02:24 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

Add a customize mode where keys and options may be browsed and changed,
includes adding a brief description of each option. Bound to "C" by
default.

Revision 1.27 / (download) - annotate - [select for diffs], Sat May 16 14:10:29 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.26: +2 -3 lines
Diff to previous 1.26 (colored)

Tweak the default choose modes formats:

- Only show pane title if it is not default and not empty.
- Add a prettier time format and use that instead of long ctime().
- Remove clutter and change the order.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Jan 28 08:06:11 2020 UTC (4 years, 3 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Add a define for flags meaning a client is not attached, and fix
unattached counter, reported by Thomas Sattler.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Dec 3 10:47:23 2019 UTC (4 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Style nits in function arguments.

Revision 1.24 / (download) - annotate - [select for diffs], Fri Aug 16 11:49:12 2019 UTC (4 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.23: +41 -67 lines
Diff to previous 1.23 (colored)

Add a flag to reverse sort in the various choose modes, from Benjamin
Poirier in GitHub issue 1875.

Revision 1.23 / (download) - annotate - [select for diffs], Tue May 28 07:18:42 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.22: +14 -11 lines
Diff to previous 1.22 (colored)

Change display-menu from taking a single string to a set of arguments,
which is much easier to work with. Based on a diff from Avi Halachmi.

Revision 1.22 / (download) - annotate - [select for diffs], Sun May 12 08:58:09 2019 UTC (5 years ago) by nicm
Branch: MAIN
Changes since 1.21: +29 -2 lines
Diff to previous 1.21 (colored)

Add simple menus to tree, client, buffer modes.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Mar 18 20:53:33 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.20: +23 -7 lines
Diff to previous 1.20 (colored)

Extend the #[] style syntax and use that together with previous format
changes to allow the status line to be entirely configured with a single
option.

Now that it is possible to configure their content, enable the existing
code that lets the status line be multiple lines in height. The status
option can now take a value of 2, 3, 4 or 5 (as well as the previous on
or off) to configure more than one line. The new status-format array
option configures the format of each line, the default just references
the existing status-* options, although some of the more obscure status
options may be eliminated in time.

Additions to the #[] syntax are: "align" to specify alignment (left,
centre, right), "list" for the window list and "range" to configure
ranges of text for the mouse bindings.

The "align" keyword can also be used to specify alignment of entries in
tree mode and the pane status lines.

Revision 1.20 / (download) - annotate - [select for diffs], Mon Mar 18 14:10:25 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.19: +2 -1 lines
Diff to previous 1.19 (colored)

Add format variables for the default formats for the various modes
(tree_mode_format and so on) and add a -a flag to display-message to
list variables with values.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Mar 16 19:12:13 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.18: +2 -5 lines
Diff to previous 1.18 (colored)

Use a pointer for the active screen in the status line instead of
copying them around all the time.

Revision 1.18 / (download) - annotate - [select for diffs], Sat Mar 16 17:14:07 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.17: +4 -4 lines
Diff to previous 1.17 (colored)

Tidy and rename some bits of status line code.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Mar 12 20:02:47 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.16: +3 -3 lines
Diff to previous 1.16 (colored)

DECRC and DECSC apparently need to preserve origin mode as well, based
on a fix from Marc Reisner.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Mar 7 20:24:21 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.15: +16 -14 lines
Diff to previous 1.15 (colored)

Add a separate mode struct for the active window mode if any.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 18 13:20:44 2018 UTC (5 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.14: +5 -4 lines
Diff to previous 1.14 (colored)

Pass window into mode functions.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Feb 28 08:55:44 2018 UTC (6 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.13: +2 -1 lines
Diff to previous 1.13 (colored)

Add -Z flag to choose-tree, choose-client, choose-buffer to
automatically zoom the pane when the mode is entered and unzoom when it
exits, assuming the pane is not already zoomed. Add -Z to the default
key bindings.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Feb 5 08:21:54 2018 UTC (6 years, 3 months ago) by nicm
Branch: MAIN
Changes since 1.12: +4 -4 lines
Diff to previous 1.12 (colored)

Add struct status_line to hold status line members of struct client, not
used yet but will be soon. From Thomas Adam.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Nov 3 17:02:33 2017 UTC (6 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Support mouse on preview in tree mode.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Nov 2 22:00:42 2017 UTC (6 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.10: +12 -20 lines
Diff to previous 1.10 (colored)

Make the mode draw function use the parent screen directly rather than
its own to avoid copying twice.

Revision 1.10 / (download) - annotate - [select for diffs], Thu Nov 2 21:29:17 2017 UTC (6 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.9: +3 -3 lines
Diff to previous 1.9 (colored)

Add a "fast" version of screen_write_copy for tree mode that doesn't do
all the checks and selection and marking stuff needed for copy mode.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Oct 25 11:26:11 2017 UTC (6 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.8: +15 -35 lines
Diff to previous 1.8 (colored)

Add P key to paste tagged in buffer mode, and trim some code that should
no longer be necessary.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Aug 9 11:43:45 2017 UTC (6 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.7: +14 -7 lines
Diff to previous 1.7 (colored)

Add -F to choose-tree, choose-client, choose-buffer to specify the
format of each line, as well as adding a couple of formats needed for
the default display.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jun 30 22:24:08 2017 UTC (6 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Try to show a better preview of sessions and windows in tree mode.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Jun 9 16:01:39 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.5: +13 -4 lines
Diff to previous 1.5 (colored)

Extend filters (f key) to buffer and client mode and add -f flag to
specify to command.

Revision 1.5 / (download) - annotate - [select for diffs], Fri Jun 9 15:29:15 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.4: +4 -4 lines
Diff to previous 1.4 (colored)

Add -O option to choose-* to set initial sort order.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Jun 8 07:48:04 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.3: +28 -4 lines
Diff to previous 1.3 (colored)

Add size to client descriptions in list, suggested by Greg Hurrell.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Jun 7 14:37:30 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.2: +3 -3 lines
Diff to previous 1.2 (colored)

Add simple searching (C-s and n) to the various choose modes: by name
for client and tree, and by name and content for buffer.

Revision 1.2 / (download) - annotate - [select for diffs], Wed May 31 15:27:57 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.1: +2 -1 lines
Diff to previous 1.1 (colored)

time.h here too.

Revision 1.1 / (download) - annotate - [select for diffs], Tue May 30 21:44:59 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN

Rewrite of choose mode, both to simplify and tidy the code and to add
some modern features.

Now the common code is in mode-tree.c, which provides an API used by the
three modes now separated into window-{buffer,client,tree}.c. Buffer
mode shows buffers, client mode clients and tree mode a tree of
sessions, windows and panes.

Each mode has a common set of key bindings plus a few that are specific
to the mode. Other changes are:

- each mode has a preview pane: for buffers this is the buffer content
  (very useful), for others it is a preview of the pane;

- items may be sorted in different ways ('O' key);

- multiple items may be tagged and an operation applied to all of them
  (for example, to delete multiple buffers at once);

- in tree mode a command may be run on the selected item (session,
  window, pane) or on tagged items (key ':');

- displayed items may be filtered in tree mode by using a format (this
  is used to implement find-window) (key 'f');

- the custom format (-F) for the display is no longer available;

- shortcut keys change from 0-9, a-z, A-Z which was always a bit weird
  with keys used for other uses to 0-9, M-a to M-z.

Now that the code is simpler, other improvements will come later.

Primary key bindings for each mode are documented under the commands in
the man page (choose-buffer, choose-client, choose-tree).

Parts written by Thomas Adam.

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.