summaryrefslogtreecommitdiffstats
path: root/cmd-find.c
AgeCommit message (Collapse)Author
2019-06-12Merge branch 'obsd-master'Thomas Adam
2019-06-12Do not use $TMUX to find the session because for windows in multiplenicm
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.
2019-05-08Merge branch 'obsd-master'Thomas Adam
2019-05-08Adjust how mouse targets are found so they always have a session, windownicm
and pane.
2019-03-18Merge branch 'obsd-master'Thomas Adam
2019-03-15Add a : to make error messages clearer.nicm
2019-03-12Merge branch 'obsd-master'Thomas Adam
2019-03-12When asked for a window index, return it even if the window exists.nicm
2019-03-12Tweak target debug logging.nicm
2018-08-18Merge branch 'obsd-master'Thomas Adam
2018-08-18SESSION_UNATTACHED flag is no longer necessary now we have an attachednicm
count instead.
2018-08-02Merge branch 'obsd-master'Thomas Adam
2018-08-02Make key trees and some other bits static.nicm
2018-06-26Merge branch 'obsd-master'Thomas Adam
2018-06-26Style nit.nicm
2018-05-28Merge branch 'obsd-master'Thomas Adam
2018-05-28When looking for panes, ignore dead ones (with -1 filenicm
descriptor). GitHub issue 1354.
2018-05-09Merge branch 'obsd-master'Thomas Adam
2018-05-09Another check for NULL window if looking for index.nicm
2018-05-04Merge branch 'obsd-master'Thomas Adam
2018-05-04Improve logging of sessions.nicm
2018-05-03Merge branch 'obsd-master'Thomas Adam
2018-05-03Use window target if specified and exists even when looking for annicm
index, fixes neww -a with -t as well.
2018-04-18Merge branch 'obsd-master'Thomas Adam
2018-04-18Change how display-message uses the client. Originally it was onlynicm
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.
2018-03-17Merge branch 'obsd-master'Thomas Adam
2018-03-17Fix negative window index range check (> not <). Reported by Juan Pablonicm
in GitHub issue 1283.
2018-01-17Merge branch 'obsd-master'Thomas Adam
2018-01-15Another redundant check, GitHub issue 1219.nicm
2018-01-15Some unused code, GitHub issue 1219.nicm
2017-08-30Merge branch 'obsd-master'Thomas Adam
2017-08-30Pass flags into cmd_find_from_* to fix prefer-unattached, reported bynicm
Thomas Sattler.
2017-08-28Merge branch 'obsd-master'Thomas Adam
2017-08-28Do not forbid targets to specify non-visible panes - the checks fornicm
visibility are better where the target is used. GitHub issue 1049.
2017-07-07Merge branch 'obsd-master'Thomas Adam
2017-07-07When working out the current client (for example for switch-client withnicm
no target), prefer clients attached to the current session if there is one. GitHub issue 995 from Jan Larres.
2017-06-16Merge branch 'obsd-master'Thomas Adam
2017-06-16Tweak some logging.nicm
2017-06-14Merge branch 'obsd-master'Thomas Adam
2017-06-14Add missing error message when no target, GitHub issue 971.nicm
2017-04-22Merge branch 'obsd-master'Thomas Adam
2017-04-22Do not need getopt.h.nicm
2017-04-22Merge branch 'obsd-master'Thomas Adam
2017-04-22Get rid of the extra layer of flags and cmd_prepare() and just store thenicm
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.
2017-04-22Merge branch 'obsd-master'Thomas Adam
2017-04-21Log error properly when no current state, and some other minor tweaks.nicm
2017-04-21Make sure cmd_find_from_* clear the state if they fail.nicm
2017-04-21Merge branch 'obsd-master'Thomas Adam
2017-04-21Make the cmd_find_* functions more obvious when looking for a client,nicm
rather than having it inside other functions. Should be no change to the way targets are resolved just yet.
2017-04-21Merge branch 'obsd-master'Thomas Adam