OpenBSD CVS

CVS log for src/usr.bin/tmux/cmd-display-menu.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.43 / (download) - annotate - [select for diffs], Thu Mar 21 11:51:32 2024 UTC (8 weeks, 3 days ago) by nicm
Branch: MAIN
CVS Tags: HEAD
Changes since 1.42: +4 -4 lines
Diff to previous 1.42 (colored)

Add -M to always turn mouse on in a menu, GitHub issue 3779.

Revision 1.42 / (download) - annotate - [select for diffs], Tue Aug 15 07:01:47 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
Changes since 1.41: +7 -6 lines
Diff to previous 1.41 (colored)

Add an option menu-selected-style to configure the currently selected
menu item, from Alexis Hildebrandt.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Aug 8 08:08:47 2023 UTC (9 months, 1 week ago) by nicm
Branch: MAIN
Changes since 1.40: +30 -11 lines
Diff to previous 1.40 (colored)

Add options and flags for menu styles similar to those existing for
popups, from Alexis Hildebrandt. GitHub issue 3650.

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

Free title earlier, from Alexis Hildebrandt.

Revision 1.39 / (download) - annotate - [select for diffs], Wed Mar 15 19:23:22 2023 UTC (14 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.38: +4 -1 lines
Diff to previous 1.38 (colored)

Do not leak screen in popups, GitHub issue 3492.

Revision 1.38 / (download) - annotate - [select for diffs], Fri Jan 20 21:36:00 2023 UTC (15 months, 4 weeks ago) by nicm
Branch: MAIN
Changes since 1.37: +23 -8 lines
Diff to previous 1.37 (colored)

Add a flag to display-menu to select the manu item chosen first, GitHub
issue 3442.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Oct 25 09:38:36 2021 UTC (2 years, 6 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.36: +8 -5 lines
Diff to previous 1.36 (colored)

Add -s and -S to display-popup to set popup and border style, from
Alexis Hildebrandt in GitHub issue 2931.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Oct 20 09:50:40 2021 UTC (2 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.35: +11 -5 lines
Diff to previous 1.35 (colored)

Add -T to set a popup title, from Alexis Hildebrandt in GitHub issue 2941.

Revision 1.35 / (download) - annotate - [select for diffs], Thu Oct 14 13:19:01 2021 UTC (2 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.34: +25 -9 lines
Diff to previous 1.34 (colored)

Add popup-border-lines option to set popup line style, from Alexis
Hildebrandt, GitHub issue 2930.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Oct 11 10:55:30 2021 UTC (2 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.33: +22 -7 lines
Diff to previous 1.33 (colored)

Add -e flag to set environment for popup, from Alexis Hildebrandt in
GitHub issue 2924.

Revision 1.33 / (download) - annotate - [select for diffs], Fri Aug 27 17:25:55 2021 UTC (2 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

Replace %% in command lists (by copying them) for template arguments ,
this means they can be used with {} as well. Also make argument
processing from an existing vector preserve commands. GitHub issue 2858.

Revision 1.32 / (download) - annotate - [select for diffs], Wed Aug 25 08:51:55 2021 UTC (2 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.31: +34 -8 lines
Diff to previous 1.31 (colored)

Validate command argument types (string or command list) and give more
useful error messages.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Aug 23 08:17:41 2021 UTC (2 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.30: +7 -7 lines
Diff to previous 1.30 (colored)

Limit width and height to tty correctly, GitHub issue 2843.

Revision 1.30 / (download) - annotate - [select for diffs], Sun Aug 22 13:48:29 2021 UTC (2 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.29: +1 -3 lines
Diff to previous 1.29 (colored)

Do not double free expanded path in source-file, also remove some
unnecessary assignments.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Aug 21 10:22:38 2021 UTC (2 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.28: +3 -3 lines
Diff to previous 1.28 (colored)

Add args parsing callback for some future work, currently unused.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Aug 20 19:50:16 2021 UTC (2 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.27: +28 -26 lines
Diff to previous 1.27 (colored)

Hide struct args behind a couple of accessor functions.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Aug 13 17:03:29 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.26: +5 -3 lines
Diff to previous 1.26 (colored)

Add -B flag to remove border from popup.

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jul 21 08:09:43 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.25: +2 -2 lines
Diff to previous 1.25 (colored)

Do not add height twice when calculating popup_mouse_top, from M Kelly.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Jul 8 11:14:53 2021 UTC (2 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.24: +2 -2 lines
Diff to previous 1.24 (colored)

Fix mouse_word format now word-separators has no space and position of
menu if too close to the bottom.

Revision 1.24 / (download) - annotate - [select for diffs], Thu Jun 10 07:22:06 2021 UTC (2 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.23: +2 -2 lines
Diff to previous 1.23 (colored)

Fix display-menu -xR, from Alexis Hildebrandt.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Mar 2 10:56:45 2021 UTC (3 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.22: +28 -33 lines
Diff to previous 1.22 (colored)

Drop support for popups where the content is provided directly to tmux
(which does not have many practical uses) and only support running a
program in the popup. display-popup is now simpler and can accept
multiple arguments to avoid escaping problems (like the other commands).

Revision 1.22 / (download) - annotate - [select for diffs], Thu Nov 26 13:06:21 2020 UTC (3 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.21: +2 -2 lines
Diff to previous 1.21 (colored)

Fix check for vertical centre.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Nov 3 08:09:35 2020 UTC (3 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.20: +170 -88 lines
Diff to previous 1.20 (colored)

Expand menu and popup -x and -y as a format, from teo_paul1 at yahoo dot
com in GitHub issue 2442.

Revision 1.20 / (download) - annotate - [select for diffs], Fri Oct 30 08:55:56 2020 UTC (3 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.19: +5 -3 lines
Diff to previous 1.19 (colored)

Add a -O flag to display-menu to change the mouse behaviour and not
close the menu when the mouse is released, from teo_paul1 at yahoo dot
com.

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

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

Revision 1.18 / (download) - annotate - [select for diffs], Mon Apr 13 20:51:57 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.17: +49 -50 lines
Diff to previous 1.17 (colored)

Make client -c and -t handling common in cmd-queue.c and try to be
clearer about whether the client is the target client (must have a
session) or not.

Revision 1.17 / (download) - annotate - [select for diffs], Mon Apr 13 14:46:04 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.16: +8 -8 lines
Diff to previous 1.16 (colored)

Move cmdq_state into cmd-queue.c.

Revision 1.16 / (download) - annotate - [select for diffs], Mon Apr 13 14:04:25 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.15: +8 -8 lines
Diff to previous 1.15 (colored)

Rename cmdq_shared to cmdq_state which will better reflect what it is
(going to be) used for.

Revision 1.15 / (download) - annotate - [select for diffs], Mon Apr 13 13:42:35 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.14: +12 -10 lines
Diff to previous 1.14 (colored)

Store a key event not a mouse event in the shared data.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Apr 13 10:59:58 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.13: +23 -24 lines
Diff to previous 1.13 (colored)

Also move cmdq_item and cmdq_list into cmd-queue.c (this is to make its
use more clearly defined and preparation for some future work).

Revision 1.13 / (download) - annotate - [select for diffs], Mon Apr 13 08:26:27 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.12: +3 -3 lines
Diff to previous 1.12 (colored)

Make struct cmd local to cmd.c and move it out of tmux.h.

Revision 1.12 / (download) - annotate - [select for diffs], Wed Apr 8 10:58:09 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.11: +4 -4 lines
Diff to previous 1.11 (colored)

Pass the cmd item to format expansion so that mouse formats work.

Revision 1.11 / (download) - annotate - [select for diffs], Thu Apr 2 05:35:15 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.10: +43 -11 lines
Diff to previous 1.10 (colored)

Add a W position to display-menu -y to use the line above (or below) the
status line containing the window list. Leave S meaning above (or below)
all status lines. GitHub issue 2145.

Revision 1.10 / (download) - annotate - [select for diffs], Sat Mar 28 09:55:30 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.9: +4 -8 lines
Diff to previous 1.9 (colored)

Change default position for menu and popup to centre rather than top left.

Revision 1.9 / (download) - annotate - [select for diffs], Sat Mar 28 09:51:12 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.8: +4 -2 lines
Diff to previous 1.8 (colored)

Make two -E only close popup automatically if the command exited with 0.

Revision 1.8 / (download) - annotate - [select for diffs], Sat Mar 28 09:39:44 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.7: +6 -2 lines
Diff to previous 1.7 (colored)

Fix how popup height is calculated to take embedded newlines into account.

Revision 1.7 / (download) - annotate - [select for diffs], Tue Mar 24 08:09:43 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.6: +94 -1 lines
Diff to previous 1.6 (colored)

Add support for overlay popup boxes to show text or output temporarily
above the normal layout. These work similarly to menus and are created
with the display-popup command.

Revision 1.6 / (download) - annotate - [select for diffs], Thu Mar 19 13:32:49 2020 UTC (4 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.5: +6 -3 lines
Diff to previous 1.5 (colored)

Add C position for terminal centre with display-menu -x and -y.

Revision 1.5 / (download) - annotate - [select for diffs], Wed Mar 18 09:13:49 2020 UTC (4 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.4: +81 -70 lines
Diff to previous 1.4 (colored)

Break position calculation into a helper function.

Revision 1.4 / (download) - annotate - [select for diffs], Tue May 28 07:18:42 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.3: +33 -18 lines
Diff to previous 1.3 (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.3 / (download) - annotate - [select for diffs], Sun May 26 17:34:45 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

Add formats for word and line under the mouse and use them to add some
items to the pane menu.

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

Remove menu_create_from_items, I thought I would use it for some later
work but I don't need it.

Revision 1.1 / (download) - annotate - [select for diffs], Fri May 10 18:04:06 2019 UTC (5 years ago) by nicm
Branch: MAIN

Add support for simple menus usable with mouse or keyboard. New command
display-menu shows a menu (bound to the mouse on status line by default)
and a couple of extra formats for the default menus.

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.