OpenBSD CVS

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


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.83 / (download) - annotate - [select for diffs], Mon Jul 10 09:24:53 2023 UTC (10 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.82: +2 -2 lines
Diff to previous 1.82 (colored)

Use a stack for last panes line windows, from Thomas Bertschinger in
GitHub issue 3588.

Revision 1.82 / (download) - annotate - [select for diffs], Tue Nov 1 09:46:14 2022 UTC (18 months, 2 weeks ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_3_BASE, OPENBSD_7_3
Changes since 1.81: +6 -6 lines
Diff to previous 1.81 (colored)

Use active pane in target window not current window for +/-. GitHub
issue 3370.

Revision 1.81 / (download) - annotate - [select for diffs], Wed Jul 6 08:32:28 2022 UTC (22 months, 1 week ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.80: +2 -2 lines
Diff to previous 1.80 (colored)

Remove debugging code.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Jul 6 08:31:59 2022 UTC (22 months, 1 week ago) by nicm
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)

Defer reading from control client until the command line command has
completed.

Revision 1.79 / (download) - annotate - [select for diffs], Sat May 16 16:20:59 2020 UTC (4 years ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8
Changes since 1.78: +18 -7 lines
Diff to previous 1.78 (colored)

Add a client flag 'active-pane' which stores the active pane in the
client and allows it to be changed independently from the real active
pane stored in the window. This is can be used with session groups which
allow an independent current window (although it would be nice to have a
flag for this too and remove session groups). The client active pane is
only really useful interactively, many things (hooks, window-style,
zooming) still use the window active pane.

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

Move cmdq_state into cmd-queue.c.

Revision 1.77 / (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.76: +4 -4 lines
Diff to previous 1.76 (colored)

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

Revision 1.76 / (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.75: +2 -2 lines
Diff to previous 1.75 (colored)

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

Revision 1.75 / (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.74: +7 -6 lines
Diff to previous 1.74 (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.74 / (download) - annotate - [select for diffs], Thu Apr 9 13:54:38 2020 UTC (4 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.73: +13 -11 lines
Diff to previous 1.73 (colored)

Do not try to use the client if the item containing it is NULL.

Revision 1.73 / (download) - annotate - [select for diffs], Wed Jun 12 09:10:29 2019 UTC (4 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.72: +10 -65 lines
Diff to previous 1.72 (colored)

Do not use $TMUX to find the session because for windows in multiple
sessions it is wrong as often as it is right, and for windows in one
session it is pointless. Instead check TMUX_PANE to find the pane and
look for the MRU session as usual. GitHub issue 1793.

Revision 1.72 / (download) - annotate - [select for diffs], Wed May 8 18:05:03 2019 UTC (5 years ago) by nicm
Branch: MAIN
Changes since 1.71: +7 -3 lines
Diff to previous 1.71 (colored)

Adjust how mouse targets are found so they always have a session, window
and pane.

Revision 1.71 / (download) - annotate - [select for diffs], Fri Mar 15 15:20:00 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.70: +5 -5 lines
Diff to previous 1.70 (colored)

Add a : to make error messages clearer.

Revision 1.70 / (download) - annotate - [select for diffs], Tue Mar 12 13:14:04 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.69: +2 -1 lines
Diff to previous 1.69 (colored)

When asked for a window index, return it even if the window exists.

Revision 1.69 / (download) - annotate - [select for diffs], Tue Mar 12 12:49:46 2019 UTC (5 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.68: +31 -10 lines
Diff to previous 1.68 (colored)

Tweak target debug logging.

Revision 1.68 / (download) - annotate - [select for diffs], Sat Aug 18 20:08:52 2018 UTC (5 years, 9 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.67: +5 -5 lines
Diff to previous 1.67 (colored)

SESSION_UNATTACHED flag is no longer necessary now we have an attached
count instead.

Revision 1.67 / (download) - annotate - [select for diffs], Thu Aug 2 11:44:07 2018 UTC (5 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.66: +3 -2 lines
Diff to previous 1.66 (colored)

Make key trees and some other bits static.

Revision 1.66 / (download) - annotate - [select for diffs], Tue Jun 26 13:21:28 2018 UTC (5 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.65: +2 -3 lines
Diff to previous 1.65 (colored)

Style nit.

Revision 1.65 / (download) - annotate - [select for diffs], Mon May 28 11:50:47 2018 UTC (5 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.64: +7 -3 lines
Diff to previous 1.64 (colored)

When looking for panes, ignore dead ones (with -1 file
descriptor). GitHub issue 1354.

Revision 1.64 / (download) - annotate - [select for diffs], Wed May 9 07:50:03 2018 UTC (6 years ago) by nicm
Branch: MAIN
Changes since 1.63: +3 -2 lines
Diff to previous 1.63 (colored)

Another check for NULL window if looking for index.

Revision 1.63 / (download) - annotate - [select for diffs], Fri May 4 08:21:42 2018 UTC (6 years ago) by nicm
Branch: MAIN
Changes since 1.62: +21 -4 lines
Diff to previous 1.62 (colored)

Improve logging of sessions.

Revision 1.62 / (download) - annotate - [select for diffs], Thu May 3 16:56:59 2018 UTC (6 years ago) by nicm
Branch: MAIN
Changes since 1.61: +7 -6 lines
Diff to previous 1.61 (colored)

Use window target if specified and exists even when looking for an
index, fixes neww -a with -t as well.

Revision 1.61 / (download) - annotate - [select for diffs], Wed Apr 18 14:35:37 2018 UTC (6 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Change how display-message uses the client. Originally it was only
intended as the target client where the message should be displayed but
at some point (perhaps when -p was added), it was used for format
expansion too. This means it can get a bit weird where you have client
formats expanding for a client with a different current session than the
target session.

However, it is nice that display-message can be used to show information
about a specific client. So change so that the -c client will be used if
the session matches the target session (-t or default), otherwise the
best client will be chosen.

Revision 1.60 / (download) - annotate - [select for diffs], Sat Mar 17 16:48:17 2018 UTC (6 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.59: +2 -2 lines
Diff to previous 1.59 (colored)

Fix negative window index range check (> not <). Reported by Juan Pablo
in GitHub issue 1283.

Revision 1.59 / (download) - annotate - [select for diffs], Mon Jan 15 15:30:03 2018 UTC (6 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.58: +7 -11 lines
Diff to previous 1.58 (colored)

Another redundant check, GitHub issue 1219.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jan 15 15:27:03 2018 UTC (6 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.57: +1 -3 lines
Diff to previous 1.57 (colored)

Some unused code, GitHub issue 1219.

Revision 1.57 / (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_2_BASE, OPENBSD_6_2
Changes since 1.56: +30 -30 lines
Diff to previous 1.56 (colored)

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

Revision 1.56 / (download) - annotate - [select for diffs], Mon Aug 28 12:36:38 2017 UTC (6 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.55: +14 -20 lines
Diff to previous 1.55 (colored)

Do not forbid targets to specify non-visible panes - the checks for
visibility are better where the target is used. GitHub issue 1049.

Revision 1.55 / (download) - annotate - [select for diffs], Fri Jul 7 07:13:14 2017 UTC (6 years, 10 months ago) by nicm
Branch: MAIN
Changes since 1.54: +49 -20 lines
Diff to previous 1.54 (colored)

When working out the current client (for example for switch-client with
no target), prefer clients attached to the current session if there is
one. GitHub issue 995 from Jan Larres.

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

Tweak some logging.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Jun 14 07:37:17 2017 UTC (6 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.52: +5 -2 lines
Diff to previous 1.52 (colored)

Add missing error message when no target, GitHub issue 971.

Revision 1.52 / (download) - annotate - [select for diffs], Sat Apr 22 12:08:41 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

Do not need getopt.h.

Revision 1.51 / (download) - annotate - [select for diffs], Sat Apr 22 10:22:39 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.50: +7 -1 lines
Diff to previous 1.50 (colored)

Get rid of the extra layer of flags and cmd_prepare() and just store the
CMD_FIND_* flags in the cmd_entry and call it for the command. Commands
with special requirements call it themselves and update the target for
hooks to use.

Revision 1.50 / (download) - annotate - [select for diffs], Fri Apr 21 22:23:24 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.49: +3 -4 lines
Diff to previous 1.49 (colored)

Log error properly when no current state, and some other minor tweaks.

Revision 1.49 / (download) - annotate - [select for diffs], Fri Apr 21 22:00:06 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.48: +22 -9 lines
Diff to previous 1.48 (colored)

Make sure cmd_find_from_* clear the state if they fail.

Revision 1.48 / (download) - annotate - [select for diffs], Fri Apr 21 20:26:34 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.47: +157 -205 lines
Diff to previous 1.47 (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.47 / (download) - annotate - [select for diffs], Fri Apr 21 17:22:20 2017 UTC (7 years ago) by nicm
Branch: MAIN
Changes since 1.46: +19 -5 lines
Diff to previous 1.46 (colored)

Add cmd_find_from_winlink_pane and use it in a couple of places, and
make functions that can't fail void.

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

More unnecessary arguments now winlink points back to session.

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

Store state shared between multiple commands in the queue in a shared
structure.

Revision 1.44 / (download) - annotate - [select for diffs], Wed Apr 5 11:04:48 2017 UTC (7 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.43: +15 -10 lines
Diff to previous 1.43 (colored)

Try again to resolve problems with mistaking sessions for windows: now
do not look up windows as sessions (and panes as windows) when they are
qualified with a ':' or a '.'. So 'foo' as a window target will look for
windows and sessions called 'foo', but ':foo' will only look for
windows, and 'foo:' only for sessions. This means the common case of
using an unadorned session as a window target (send -tfoo) should
continue to work, but an explicit window will not get confused with a
session (send -t:foo).

Revision 1.43 / (download) - annotate - [select for diffs], Wed Apr 5 10:49:46 2017 UTC (7 years, 1 month ago) by nicm
Branch: MAIN
Changes since 1.42: +12 -13 lines
Diff to previous 1.42 (colored)

Give each client a name. This defaults to the tty name as before but
falls back to an alternative if the tty name is not available. This is
clearer than overloading the client ttyname member and allows us to
remove the path stored in the tty struct, it should always be the same
as the client.

Revision 1.42 / (download) - annotate - [select for diffs], Mon Mar 13 10:53:32 2017 UTC (7 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.41: +4 -4 lines
Diff to previous 1.41 (colored)

Revert previous, breaks normal short targets, reported by Theo Buehler.

Revision 1.41 / (download) - annotate - [select for diffs], Sat Mar 11 15:16:08 2017 UTC (7 years, 2 months ago) by nicm
Branch: MAIN
Changes since 1.40: +5 -5 lines
Diff to previous 1.40 (colored)

Only look for window and pane parts of target as a sesson and window if
they look like an ID.

Revision 1.40 / (download) - annotate - [select for diffs], Wed Nov 16 00:24:03 2016 UTC (7 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.39: +19 -13 lines
Diff to previous 1.39 (colored)

The target validity check used window_pane_visible but that may be false
if the pane is zoomed, so instead add a new function to just check if
the pane is actually on screen (most commands still want to accept panes
invisible by zoom). Also reject panes outside the window for various
special targets. Problem reported by Sean Haugh.

Revision 1.39 / (download) - annotate - [select for diffs], Tue Oct 18 12:51:26 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.38: +5 -5 lines
Diff to previous 1.38 (colored)

Tweak a couple of log statements.

Revision 1.38 / (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.37: +2 -2 lines
Diff to previous 1.37 (colored)

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

Revision 1.37 / (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.36: +43 -41 lines
Diff to previous 1.36 (colored)

Mass rename struct cmd_q to struct cmdq_item and related.

Revision 1.36 / (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.35: +2 -2 lines
Diff to previous 1.35 (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.35 / (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.34: +19 -1 lines
Diff to previous 1.34 (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.34 / (download) - annotate - [select for diffs], Thu Oct 13 10:01:49 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.33: +20 -4 lines
Diff to previous 1.33 (colored)

Some improvements and bug fixes for hooks:

- Prepare the state again before the "after" hooks are run, because the
  command may have killed or moved windows.

- Use the hooks list from the newly prepared target, not the old hooks
  list (only matters for new-session really).

- Correctly detect an invalid current state and ignore it in
  cmd_find_target ("killw; swapw").

- Change neww, new, killp, killw, splitw, swapp, swapw to update the
  current state (used if no explicit target is given) to something more
  useful after they have finished. For example, neww changes it to the
  newly created window.

Hooks are still relatively new and primitive so there are likely to be
more changes to come.

Parts based on bug reports from Uwe Werler and Iblis Lin.

Revision 1.33 / (download) - annotate - [select for diffs], Mon Oct 10 21:51:39 2016 UTC (7 years, 7 months ago) by nicm
Branch: MAIN
Changes since 1.32: +45 -53 lines
Diff to previous 1.32 (colored)

Add static in cmd-* and fix a few other nits.

Revision 1.32 / (download) - annotate - [select for diffs], Thu Mar 3 14:14:46 2016 UTC (8 years, 2 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.31: +10 -2 lines
Diff to previous 1.31 (colored)

Accept clients as sessions in cmd_find_get_session.

Revision 1.31 / (download) - annotate - [select for diffs], Tue Jan 19 16:01:30 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.30: +18 -13 lines
Diff to previous 1.30 (colored)

Split out getting the current state from the target search so it can be
replaced if we already know the current.

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

I no longer use my SourceForge address so replace it.

Revision 1.29 / (download) - annotate - [select for diffs], Sat Jan 16 00:36:53 2016 UTC (8 years, 4 months ago) by nicm
Branch: MAIN
Changes since 1.28: +17 -1 lines
Diff to previous 1.28 (colored)

Add hooks for alerts (bell, silence, activity), from Thomas Adam.

Revision 1.28 / (download) - annotate - [select for diffs], Thu Dec 17 23:08:22 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.27: +4 -3 lines
Diff to previous 1.27 (colored)

As well as setting up the state, actually use it in cmd_find_target.

Revision 1.27 / (download) - annotate - [select for diffs], Wed Dec 16 21:50:37 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.26: +50 -5 lines
Diff to previous 1.26 (colored)

Add infrastructure to work out the best target given a pane or window
alone and use it to add pane_died and pane_exited hooks.

Revision 1.26 / (download) - annotate - [select for diffs], Tue Dec 15 14:32:55 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.25: +3 -3 lines
Diff to previous 1.25 (colored)

Copy state directly rather than dereferencing wl (which could be NULL).

Revision 1.25 / (download) - annotate - [select for diffs], Tue Dec 15 00:45:02 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.24: +15 -6 lines
Diff to previous 1.24 (colored)

We changed somewhat recently to us the pty when tmux was run inside
itself to work out the current pane. This is confusing in many cases
(particularly notable is that "tmux neww\; splitw" would not split the
new window), and the few advantages do not make up for the confusion.

So drop this behaviour and return to using the current window and pane;
keep the pty check but only use it to limit the list of possible current
sessions.

Revision 1.24 / (download) - annotate - [select for diffs], Tue Dec 15 00:11:24 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.23: +11 -10 lines
Diff to previous 1.23 (colored)

Don't copy marked pane when can just point to it.

Revision 1.23 / (download) - annotate - [select for diffs], Tue Dec 15 00:00:01 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.22: +71 -40 lines
Diff to previous 1.22 (colored)

Make the marked pane a cmd_find_state.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Dec 14 23:30:58 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.21: +1 -4 lines
Diff to previous 1.21 (colored)

Use cmd_find_clear_state instead of an extra function doing the same.

Revision 1.21 / (download) - annotate - [select for diffs], Sun Dec 13 17:55:14 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.20: +13 -9 lines
Diff to previous 1.20 (colored)

Use struct cmd_find_state directly and remove cmd_state_flag, also
change so that winlink is set even if an index is too.

Revision 1.20 / (download) - annotate - [select for diffs], Sun Dec 13 16:44:35 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.19: +55 -49 lines
Diff to previous 1.19 (colored)

Change cmd_find_target to use a state struct from the caller.

Revision 1.19 / (download) - annotate - [select for diffs], Sun Dec 13 15:32:12 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.18: +1 -150 lines
Diff to previous 1.18 (colored)

Remove the cmd_find_{session,window,pane,index} functions (which are
just wrappers around cmd_find_target) and just use cmd_find_target
directly.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 13 15:00:37 2015 UTC (8 years, 5 months ago) by nicm
Branch: MAIN
Changes since 1.17: +23 -24 lines
Diff to previous 1.17 (colored)

Move logging into cmd_find_target rather than each function.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Oct 28 09:51:55 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Like options, move the environ struct into environ.c.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Oct 27 13:23:24 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.15: +12 -4 lines
Diff to previous 1.15 (colored)

Break the common process set up, event loop and imsg dispatch code
between server and client out into a separate internal API. This will
make it easier to add another process.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Oct 23 16:29:07 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.14: +39 -2 lines
Diff to previous 1.14 (colored)

If $TMUX is set, and we are unsure about the session, use it.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Oct 22 11:23:00 2015 UTC (8 years, 6 months ago) by nicm
Branch: MAIN
Changes since 1.13: +23 -12 lines
Diff to previous 1.13 (colored)

If the pane is still on all_window_panes but not actually connected to
window or session (which can happen if it is killed during a command
sequence and something else has a reference), fall back to the best
effort. Fixes "tmux killw\; detach" for Rudis Muiznieks.

Revision 1.13 / (download) - annotate - [select for diffs], Mon Sep 14 13:22:02 2015 UTC (8 years, 8 months ago) by nicm
Branch: MAIN
Changes since 1.12: +1 -2 lines
Diff to previous 1.12 (colored)

Remove some extra blank lines.

Revision 1.12 / (download) - annotate - [select for diffs], Thu Aug 13 15:02:23 2015 UTC (8 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.11: +9 -9 lines
Diff to previous 1.11 (colored)

right-up should be right-of, also rename the values too.

Revision 1.11 / (download) - annotate - [select for diffs], Wed Aug 12 08:55:20 2015 UTC (8 years, 9 months ago) by nicm
Branch: MAIN
Changes since 1.10: +5 -5 lines
Diff to previous 1.10 (colored)

Rename left/right/up/down relative to active pane to add -of suffix
(left-of/right-of/etc) to remove conflict with left/right meaning
leftmost or rightmost pane. From Ben Boeckel.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Jun 5 09:09:08 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

Fix a warning.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Jun 5 08:14:16 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.8: +60 -34 lines
Diff to previous 1.8 (colored)

Make it so that if a window or session target is prefixed with an =,
only an exact name or index match is accepted, no special character,
prefix match, or fnmatch.

Revision 1.8 / (download) - annotate - [select for diffs], Thu Jun 4 11:43:51 2015 UTC (8 years, 11 months ago) by nicm
Branch: MAIN
Changes since 1.7: +64 -3 lines
Diff to previous 1.7 (colored)

Add support for a single "marked pane". There is one marked pane in the
server at a time; it may be toggled or cleared with select-pane -m and
-M (the border is highlighted). A new target '~' or '{marked}' specifies
the marked pane to commands and it is the default target for the
swap-pane and join-pane -s flag (this makes them much simpler to use -
mark the source pane and then change to the target pane to run swapp or
joinp).

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 7 11:42:56 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.6: +5 -5 lines
Diff to previous 1.6 (colored)

Style spacing nits.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Apr 28 12:09:24 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.5: +6 -4 lines
Diff to previous 1.5 (colored)

If looking for an index, don't fill in window when given a session.

Revision 1.5 / (download) - annotate - [select for diffs], Tue Apr 28 11:57:20 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.4: +8 -5 lines
Diff to previous 1.4 (colored)

Do not do a search for the tty path if there isn't one.

Revision 1.4 / (download) - annotate - [select for diffs], Tue Apr 28 11:33:17 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.3: +24 -4 lines
Diff to previous 1.3 (colored)

If can't find pane as a pane, try as a window; likewise if can't find
window as a session.

Revision 1.3 / (download) - annotate - [select for diffs], Mon Apr 27 22:58:58 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.2: +5 -1 lines
Diff to previous 1.2 (colored)

Do not include unattached clients when trying to find one for target.

Revision 1.2 / (download) - annotate - [select for diffs], Mon Apr 27 22:42:10 2015 UTC (9 years ago) by nicm
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

Assign to the right variable when comparing clients.

Revision 1.1 / (download) - annotate - [select for diffs], Mon Apr 27 16:25:57 2015 UTC (9 years ago) by nicm
Branch: MAIN

Rewrite of the target resolution internals to be simpler and more
consistent but with much less duplication, but keeping the same internal
API. Also adds more readable aliases for some of the special tokens used
in targets (eg "{start}" instead of "^"). Some behaviours may have
changed, for example prefix matches now happen before fnmatch.

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.