OpenBSD CVS

CVS log for src/usr.bin/tmux/notify.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.44 / (download) - annotate - [select for diffs], Fri Jun 30 13:19:32 2023 UTC (10 months, 2 weeks 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.43: +3 -3 lines
Diff to previous 1.43 (colored)

Get rid of some warnings with GCC 10, from Thomas Klausner.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Oct 28 13:00:02 2022 UTC (18 months, 3 weeks ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.42: +11 -3 lines
Diff to previous 1.42 (colored)

Add paste-buffer-deleted notification and fix name of paste-buffer-changed.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Aug 15 09:10:34 2022 UTC (21 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.41: +23 -8 lines
Diff to previous 1.41 (colored)

Notify when a paste buffer is deleted, GitHub issue 3302 from George
Nachman.

Revision 1.41 / (download) - annotate - [select for diffs], Mon May 30 12:55:25 2022 UTC (23 months, 2 weeks ago) by nicm
Branch: MAIN
Changes since 1.40: +2 -2 lines
Diff to previous 1.40 (colored)

Spacing/style nits.

Revision 1.40 / (download) - annotate - [select for diffs], Tue Mar 8 21:58:37 2022 UTC (2 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1
Changes since 1.39: +48 -15 lines
Diff to previous 1.39 (colored)

Fix user hooks (which are strings not arrays).

Revision 1.39 / (download) - annotate - [select for diffs], Thu Aug 12 08:10:20 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

Do not dereference pane when it is NULL, fixes a crash when creating a
hook from the config, GitHub issue 2820.

Revision 1.38 / (download) - annotate - [select for diffs], Thu Aug 12 08:05:11 2021 UTC (2 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.37: +25 -26 lines
Diff to previous 1.37 (colored)

Move hook format setup earlier and add a hook_client, GitHub issue 2809.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Mar 16 09:14:58 2021 UTC (3 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_9_BASE, OPENBSD_6_9
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)

Add client-detached notification in control mode, from Mohsin Kaleem.

Revision 1.36 / (download) - annotate - [select for diffs], Thu May 21 07:24:13 2020 UTC (3 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.35: +1 -12 lines
Diff to previous 1.35 (colored)

Support code for control mode flow control: allow clients to have
separate offsets (used and acknowleged) into the pane buffers; turn off
reading from panes when no clients can accept the data; and add a -A
flag to refresh-client to let clients turn receiving a pane on and off.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Apr 14 06:00:52 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.34: +7 -4 lines
Diff to previous 1.34 (colored)

Provide an accessor for the running queue item and use it to not let
hooks recurse.

Revision 1.34 / (download) - annotate - [select for diffs], Mon Apr 13 15:55:51 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.33: +18 -18 lines
Diff to previous 1.33 (colored)

When adding a list of commands to the queue, instead of automatically
creating a new state for each group of commands, require the caller to
create one and use it for all the commands in the list. This means the
current target works even with list with multiple groups (which can
happen if they are defined with newlines).

Revision 1.33 / (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.32: +2 -2 lines
Diff to previous 1.32 (colored)

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

Revision 1.32 / (download) - annotate - [select for diffs], Mon Apr 13 13:32:09 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.31: +3 -2 lines
Diff to previous 1.31 (colored)

Move the NOHOOKS flag into the shared flags.

Revision 1.31 / (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.30: +8 -7 lines
Diff to previous 1.30 (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.30 / (download) - annotate - [select for diffs], Mon Apr 13 07:25:33 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.29: +9 -1 lines
Diff to previous 1.29 (colored)

Change so that the appropriate hooks for windows and panes belong to
pane/window options rather than all being session options. This is
useful for example to create a pane that is automatically closed on some
condition. From Anindya Mukherjee.

Revision 1.29 / (download) - annotate - [select for diffs], Thu Dec 19 09:22:33 2019 UTC (4 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.28: +2 -4 lines
Diff to previous 1.28 (colored)

When adding a list with multiple commands to the queue, the next item to
insert after needs to be the last one added, not the first. Reported by
Jason Kim in GitHub issue 2023.

Revision 1.28 / (download) - annotate - [select for diffs], Tue May 7 10:25:15 2019 UTC (5 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.27: +3 -3 lines
Diff to previous 1.27 (colored)

Do not use evbuffer_add_buffer because it is destructive and doesn't
work in newer libevent.

Revision 1.27 / (download) - annotate - [select for diffs], Fri Apr 26 11:38:51 2019 UTC (5 years ago) by nicm
Branch: MAIN
Changes since 1.26: +51 -25 lines
Diff to previous 1.26 (colored)

Merge hooks into options and make each one an array option. This allows
multiple commands to be easily bound to one hook. set-hook and
show-hooks remain but they are now variants of set-option and
show-options. show-options now has a -H flag to show hooks (by default
they are not shown).

Revision 1.26 / (download) - annotate - [select for diffs], Wed Jul 4 12:30:52 2018 UTC (5 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.25: +21 -3 lines
Diff to previous 1.25 (colored)

Add set-hook -R to run a hook immediately (useful to set multiple hooks
to the same thing).

Revision 1.25 / (download) - annotate - [select for diffs], Wed Aug 30 10:33:57 2017 UTC (6 years, 8 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.24: +9 -9 lines
Diff to previous 1.24 (colored)

Pass flags into cmd_find_from_* to fix prefer-unattached, reported by
Thomas Sattler.

Revision 1.24 / (download) - annotate - [select for diffs], Thu May 4 07:16:43 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.23: +7 -1 lines
Diff to previous 1.23 (colored)

Some new notifications, mainly for active pane and current window and
session:

    pane-mode-changed
    window-pane-changed
    client-session-changed
    session-window-changed

From Joshua Brot.

Revision 1.23 / (download) - annotate - [select for diffs], Fri Apr 28 19:13:55 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.22: +8 -8 lines
Diff to previous 1.22 (colored)

Log what is happening with window and session reference counts much more
obviously.

Revision 1.22 / (download) - annotate - [select for diffs], Fri Apr 21 20:26:34 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.21: +5 -8 lines
Diff to previous 1.21 (colored)

Make the cmd_find_* functions more obvious when looking for a client,
rather than having it inside other functions. Should be no change to the
way targets are resolved just yet.

Revision 1.21 / (download) - annotate - [select for diffs], Fri Apr 21 14:09:44 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

More unnecessary arguments now winlink points back to session.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Jan 11 14:56:44 2017 UTC (7 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.19: +3 -1 lines
Diff to previous 1.19 (colored)

Some tidying and tweaks to options code.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Oct 16 22:18:04 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.18: +39 -19 lines
Diff to previous 1.18 (colored)

Use notifys for alerts too.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Oct 16 22:06:40 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.17: +62 -91 lines
Diff to previous 1.17 (colored)

Use the notify name string instead of going via an enum and change
existing hooks to use notifys instead.

Revision 1.17 / (download) - annotate - [select for diffs], Sun Oct 16 19:55:52 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.16: +21 -9 lines
Diff to previous 1.16 (colored)

Add hook_session and hook_window formats to get information on the
affected session or window when a hook fires. Enable session-created and
session-closed hooks now that that is available.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Oct 16 19:36:37 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.15: +3 -6 lines
Diff to previous 1.15 (colored)

Provide a way for hooks to tag formats onto the commands they fire so
that the user can get at additional information - now used for the
"hook" format, more to come.

Revision 1.15 / (download) - annotate - [select for diffs], Sun Oct 16 19:15:02 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.14: +52 -63 lines
Diff to previous 1.14 (colored)

Notifys can go via the command queue instead of using their own queue.

Revision 1.14 / (download) - annotate - [select for diffs], Sun Oct 16 19:04:05 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.13: +5 -5 lines
Diff to previous 1.13 (colored)

Mass rename struct cmd_q to struct cmdq_item and related.

Revision 1.13 / (download) - annotate - [select for diffs], Sun Oct 16 17:55:14 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.12: +6 -8 lines
Diff to previous 1.12 (colored)

Rewrite command queue handling. Each client still has a command queue,
but there is also now a global command queue. Instead of command queues
being dispatched on demand from wherever the command happens to be
added, they are now all dispatched from the top level server
loop. Command queues may now also include callbacks as well as commands,
and items may be inserted after the current command as well as at the end.

This all makes command queues significantly more predictable and easier
to use, and avoids the complex multiple nested command queues used by
source-file, if-shell and friends.

A mass rename of struct cmdq to a better name (cmdq_item probably) is
coming.

Revision 1.12 / (download) - annotate - [select for diffs], Sat Oct 15 00:12:58 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

Rename a function for consistency and some spacing nits.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Oct 15 00:09:30 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.10: +51 -3 lines
Diff to previous 1.10 (colored)

Fire hooks on the simple notifys (window-renamed and session-renamed),
the complicated ones get no hooks for now (more to come).

Revision 1.10 / (download) - annotate - [select for diffs], Sat Oct 15 00:01:01 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.9: +2 -27 lines
Diff to previous 1.9 (colored)

Drain notifys once at the end of the server loop instead of doing it
from the end of every command queue (which could be nested).

Revision 1.9 / (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.8: +10 -9 lines
Diff to previous 1.8 (colored)

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

Revision 1.8 / (download) - annotate - [select for diffs], Fri Jun 5 18:18:32 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0, OPENBSD_5_9_BASE, OPENBSD_5_9, OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.7: +2 -2 lines
Diff to previous 1.7 (colored)

Similarly, for sessions use a callback to free rather than checking
every loop.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Jun 5 18:06:30 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.6: +2 -2 lines
Diff to previous 1.6 (colored)

Change deref to the more sensible unref, and add a couple I missed before.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Apr 24 23:17:11 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.5: +3 -5 lines
Diff to previous 1.5 (colored)

Convert clients list into a TAILQ.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Sep 25 07:41:22 2012 UTC (11 years, 7 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7, OPENBSD_5_6_BASE, OPENBSD_5_6, OPENBSD_5_5_BASE, OPENBSD_5_5, OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.4: +21 -1 lines
Diff to previous 1.4 (colored)

Add notification for input from a pane, from George Nachman.

Revision 1.4 / (download) - annotate - [select for diffs], Mon Sep 3 09:32:38 2012 UTC (11 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.3: +9 -9 lines
Diff to previous 1.3 (colored)

Send notifications to control clients. Also don't redraw client when
suspended.

Revision 1.3 / (download) - annotate - [select for diffs], Tue Aug 21 10:00:33 2012 UTC (11 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.2: +3 -2 lines
Diff to previous 1.2 (colored)

Fix up window reference counting and don't crash if the rename timer
fires while the window is dead but still referenced. Fixes problem
reported by Michael Scholz.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jul 13 06:27:41 2012 UTC (11 years, 10 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2
Changes since 1.1: +138 -9 lines
Diff to previous 1.1 (colored)

Add a queue of notifys and a way to turn them off and on (we do not want
notifys to happen during some commands). Based on code from George
Nachman.

Revision 1.1 / (download) - annotate - [select for diffs], Sat Mar 17 22:35:09 2012 UTC (12 years, 2 months ago) by nicm
Branch: MAIN

Add notify hooks for various events, the functions are currently empty
stubs but will be filled in for control mode later. From George Nachman.

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.