OpenBSD CVS

CVS log for src/usr.bin/tmux/format-draw.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.28 / (download) - annotate - [select for diffs], Thu Aug 17 14:10:28 2023 UTC (9 months 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.27: +45 -7 lines
Diff to previous 1.27 (colored)

Add a session, pane and user mouse range types for the status line and
add format variables for mouse_status_line and mouse_status_range so
they can be associated with different commands in the key bindings.
GitHub issue 3652.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Aug 7 10:04:29 2023 UTC (9 months, 1 week ago) by nicm
Branch: MAIN
Changes since 1.26: +3 -3 lines
Diff to previous 1.26 (colored)

Trim can generate strings longer than the original if there are many #s,
so create a bigger buffer. Reported by Robert Morris.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Feb 22 11:07:25 2022 UTC (2 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.25: +4 -4 lines
Diff to previous 1.25 (colored)

Initialize copy_width before adjusting it, GitHub issue 3079.

Revision 1.25 / (download) - annotate - [select for diffs], Tue Oct 26 12:22:23 2021 UTC (2 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.24: +7 -2 lines
Diff to previous 1.24 (colored)

Do not allow inline styles to replace mode-style for the selected item,
from Alexis Hildebrandt in GitHub issue 2946.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Aug 22 15:33:14 2021 UTC (2 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.23: +83 -116 lines
Diff to previous 1.23 (colored)

Fix handling of leading #s when working out width.

Revision 1.23 / (download) - annotate - [select for diffs], Thu Mar 11 06:41:04 2021 UTC (3 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.22: +189 -27 lines
Diff to previous 1.22 (colored)

Add an "absolute-centre" alignment to use the centre of the total space
instead of only the available space. From Magnus Gross in GitHub issue 2578.

Revision 1.22 / (download) - annotate - [select for diffs], Tue Dec 1 08:12:58 2020 UTC (3 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.21: +7 -3 lines
Diff to previous 1.21 (colored)

Make replacement of ##s consistent when drawing formats, whether
followed by [ or not. Add a flag (e) to the q: format modifier to double
up #s and use it for the window_flags format variable so it doesn't end
up escaping any following text. GitHub issue 2485.

Revision 1.21 / (download) - annotate - [select for diffs], Mon Nov 9 09:10:10 2020 UTC (3 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.20: +163 -13 lines
Diff to previous 1.20 (colored)

Change how escaping is processed for formats so that ## and # can be
used in styles. Also add a 'w' format modifier for the width. From Chas
J Owens IV in GitHub issue 2389.

Revision 1.20 / (download) - annotate - [select for diffs], Sat May 16 16:26:34 2020 UTC (4 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.19: +3 -2 lines
Diff to previous 1.19 (colored)

Add an option to set the pane border lines style from a choice of single
lines (ACS or UTF-8), double or heavy (UTF-8), simple (plain ASCII) or
number (the pane numbers). Lines that won't work on a non-UTF-8 terminal
are translated back into ACS when they are output.

Revision 1.19 / (download) - annotate - [select for diffs], Sat May 16 16:02:24 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.18: +2 -2 lines
Diff to previous 1.18 (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.18 / (download) - annotate - [select for diffs], Sat May 16 15:34:08 2020 UTC (4 years ago) by nicm
Branch: MAIN
Changes since 1.17: +5 -5 lines
Diff to previous 1.17 (colored)

Do not hoke into struct window_pane from the tty code and instead set
everything up in tty_ctx. Provide a way to initialize the tty_ctx from a
callback and use it to let popups draw directly through input_parse in
the same way as panes do, rather than forcing a full redraw on every
change.

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

Add 'e' key in buffer mode to open the buffer in an editor.

Revision 1.16 / (download) - annotate - [select for diffs], Thu Apr 9 15:35:27 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.15: +2 -2 lines
Diff to previous 1.15 (colored)

More style nits.

Revision 1.15 / (download) - annotate - [select for diffs], Sat Mar 7 10:58:32 2020 UTC (4 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.14: +3 -2 lines
Diff to previous 1.14 (colored)

Use correct width of right marker so it doesn't draw over status right
when more than one character. Reported by Tyler Culp.

Revision 1.14 / (download) - annotate - [select for diffs], Wed Jan 8 14:40:52 2020 UTC (4 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.13: +7 -3 lines
Diff to previous 1.13 (colored)

Do not hang in format_trim_* on invalid UTF-8 characters.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Sep 15 21:42:57 2019 UTC (4 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.12: +17 -6 lines
Diff to previous 1.12 (colored)

Add push-default and pop-default in styles to change the default colours
and attributes and use them to restore the previous behaviour of
window-status-style being the default for window-status-format in the
status line. From John Drouhard in GitHub issue 1912.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Jul 6 20:37:29 2019 UTC (4 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Correctly clear underscore colour in grid_get_cell1, also fix struct
grid_cell to avoid padding. Fixes increased memory use reported by Suraj
N Kurapati.

Revision 1.11 / (download) - annotate - [select for diffs], Mon Jul 1 06:56:00 2019 UTC (4 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.10: +15 -2 lines
Diff to previous 1.10 (colored)

Add a "fill" style attribute to clear the entire format drawing area in
a colour, GitHub issue 1815.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 14 15:35:58 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.9: +3 -2 lines
Diff to previous 1.9 (colored)

Do not loop forever if a menu item contains invisible characters,
reported by Thomas Sattler.

Revision 1.9 / (download) - annotate - [select for diffs], Thu May 23 14:44:33 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.8: +3 -9 lines
Diff to previous 1.8 (colored)

Fix drawing of status-right when it is aligned to the centre, GitHub
issue 1754.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Apr 24 20:27:52 2019 UTC (5 years ago) by nicm
Branch: MAIN
Changes since 1.7: +5 -3 lines
Diff to previous 1.7 (colored)

Do not loop forever if there is a nonprintable character in the format.

Revision 1.7 / (download) - annotate - [select for diffs], Thu Mar 28 22:18:46 2019 UTC (5 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.6: +4 -1 lines
Diff to previous 1.6 (colored)

Fix offset of list ranges.

Revision 1.6 / (download) - annotate - [select for diffs], Wed Mar 20 07:30:05 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.5: +7 -5 lines
Diff to previous 1.5 (colored)

Include function name in logging.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Mar 20 07:28:31 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.4: +5 -2 lines
Diff to previous 1.4 (colored)

Do not leak ranges on error.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Mar 20 07:24:03 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.3: +3 -2 lines
Diff to previous 1.3 (colored)

Ignore invalid styles rather than throwing away the whole format, this
matches what we used to do.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Mar 20 07:13:02 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.2: +6 -2 lines
Diff to previous 1.2 (colored)

Bit more logging to show drawing errors.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Mar 18 21:55:04 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.1: +8 -2 lines
Diff to previous 1.1 (colored)

Free temporary screens when writing format.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Mar 18 20:53:33 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN

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.

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.