diff options
author | nicm <nicm> | 2015-04-27 16:25:57 +0000 |
---|---|---|
committer | nicm <nicm> | 2015-04-27 16:25:57 +0000 |
commit | 95195f52584565483bf9850840f6d81cd88bf9b2 (patch) | |
tree | 440e88b83f3d9085e3c9ab5b8931106aa12e6905 /tmux.h | |
parent | a70762c9b50e9d9249fa9a56233c0df4129c82fc (diff) | |
download | rtmux-95195f52584565483bf9850840f6d81cd88bf9b2.tar.gz rtmux-95195f52584565483bf9850840f6d81cd88bf9b2.tar.bz2 rtmux-95195f52584565483bf9850840f6d81cd88bf9b2.zip |
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.
Diffstat (limited to 'tmux.h')
-rw-r--r-- | tmux.h | 25 |
1 files changed, 13 insertions, 12 deletions
@@ -1740,8 +1740,19 @@ size_t args_print(struct args *, char *, size_t); int args_has(struct args *, u_char); void args_set(struct args *, u_char, const char *); const char *args_get(struct args *, u_char); -long long args_strtonum( - struct args *, u_char, long long, long long, char **); +long long args_strtonum(struct args *, u_char, long long, long long, + char **); + +/* cmd-find.c */ +struct session *cmd_find_current(struct cmd_q *); +struct session *cmd_find_session(struct cmd_q *, const char *, int); +struct winlink *cmd_find_window(struct cmd_q *, const char *, + struct session **); +struct winlink *cmd_find_pane(struct cmd_q *, const char *, struct session **, + struct window_pane **); +struct client *cmd_find_client(struct cmd_q *, const char *, int); +int cmd_find_index(struct cmd_q *, const char *, + struct session **); /* cmd.c */ int cmd_pack_argv(int, char **, char *, size_t); @@ -1756,16 +1767,6 @@ int cmd_mouse_at(struct window_pane *, struct mouse_event *, struct winlink *cmd_mouse_window(struct mouse_event *, struct session **); struct window_pane *cmd_mouse_pane(struct mouse_event *, struct session **, struct winlink **); -struct session *cmd_current_session(struct cmd_q *, int); -struct client *cmd_current_client(struct cmd_q *); -struct client *cmd_find_client(struct cmd_q *, const char *, int); -struct session *cmd_find_session(struct cmd_q *, const char *, int); -struct winlink *cmd_find_window(struct cmd_q *, const char *, - struct session **); -int cmd_find_index(struct cmd_q *, const char *, - struct session **); -struct winlink *cmd_find_pane(struct cmd_q *, const char *, struct session **, - struct window_pane **); char *cmd_template_replace(const char *, const char *, int); extern const struct cmd_entry *cmd_table[]; extern const struct cmd_entry cmd_attach_session_entry; |