Commit message (Collapse) | Author | Age | ||
---|---|---|---|---|
... | ||||
| * | Do not need getopt.h. | nicm | 2017-04-22 | |
| | | ||||
* | | Merge branch 'obsd-master' | Thomas Adam | 2017-04-22 | |
|\| | ||||
| * | Get rid of the extra layer of flags and cmd_prepare() and just store the | nicm | 2017-04-22 | |
| | | | | | | | | | | | | 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. | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2017-04-22 | |
|\| | ||||
| * | Log error properly when no current state, and some other minor tweaks. | nicm | 2017-04-21 | |
| | | ||||
| * | Make sure cmd_find_from_* clear the state if they fail. | nicm | 2017-04-21 | |
| | | ||||
* | | Merge branch 'obsd-master' | Thomas Adam | 2017-04-21 | |
|\| | ||||
| * | Make the cmd_find_* functions more obvious when looking for a client, | nicm | 2017-04-21 | |
| | | | | | | | | | | rather than having it inside other functions. Should be no change to the way targets are resolved just yet. | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2017-04-21 | |
|\| | ||||
| * | Add cmd_find_from_winlink_pane and use it in a couple of places, and | nicm | 2017-04-21 | |
| | | | | | | | | make functions that can't fail void. | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2017-04-21 | |
|\| | ||||
| * | More unnecessary arguments now winlink points back to session. | nicm | 2017-04-21 | |
| | | ||||
| * | Store state shared between multiple commands in the queue in a shared | nicm | 2017-04-21 | |
| | | | | | | | | structure. | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2017-04-06 | |
|\| | | | | | | | | | | | Conflicts: server-client.c tmux.1 | |||
| * | Try again to resolve problems with mistaking sessions for windows: now | nicm | 2017-04-05 | |
| | | | | | | | | | | | | | | | | | | | | 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). | |||
| * | Give each client a name. This defaults to the tty name as before but | nicm | 2017-04-05 | |
| | | | | | | | | | | | | | | 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. | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2017-03-13 | |
|\| | ||||
| * | Revert previous, breaks normal short targets, reported by Theo Buehler. | nicm | 2017-03-13 | |
| | | ||||
* | | Merge branch 'obsd-master' | Thomas Adam | 2017-03-11 | |
|\| | ||||
| * | Only look for window and pane parts of target as a sesson and window if | nicm | 2017-03-11 | |
| | | | | | | | | they look like an ID. | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2016-11-16 | |
|\| | ||||
| * | The target validity check used window_pane_visible but that may be false | nicm | 2016-11-16 | |
| | | | | | | | | | | | | | | 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. | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2016-10-18 | |
|\| | ||||
| * | Tweak a couple of log statements. | nicm | 2016-10-18 | |
| | | ||||
* | | Merge branch 'obsd-master' | Thomas Adam | 2016-10-17 | |
|\| | ||||
| * | Use the notify name string instead of going via an enum and change | nicm | 2016-10-16 | |
| | | | | | | | | existing hooks to use notifys instead. | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2016-10-16 | |
|\| | ||||
| * | Mass rename struct cmd_q to struct cmdq_item and related. | nicm | 2016-10-16 | |
| | | ||||
* | | Merge branch 'obsd-master' | Thomas Adam | 2016-10-16 | |
|\| | ||||
| * | Rewrite command queue handling. Each client still has a command queue, | nicm | 2016-10-16 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2016-10-15 | |
|\| | ||||
| * | Fire hooks on the simple notifys (window-renamed and session-renamed), | nicm | 2016-10-15 | |
| | | | | | | | | the complicated ones get no hooks for now (more to come). | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2016-10-13 | |
|\| | ||||
| * | Some improvements and bug fixes for hooks: | nicm | 2016-10-13 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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. | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2016-10-12 | |
|\| | | | | | | | | | | | Conflicts: format.c osdep-openbsd.c | |||
| * | Add static in cmd-* and fix a few other nits. | nicm | 2016-10-10 | |
| | | ||||
* | | Merge branch 'obsd-master' | Thomas Adam | 2016-03-03 | |
|\| | ||||
| * | Accept clients as sessions in cmd_find_get_session. | nicm | 2016-03-03 | |
| | | ||||
* | | Merge branch 'obsd-master' | Thomas Adam | 2016-01-19 | |
|\| | ||||
| * | Split out getting the current state from the target search so it can be | nicm | 2016-01-19 | |
| | | | | | | | | replaced if we already know the current. | |||
| * | I no longer use my SourceForge address so replace it. | nicm | 2016-01-19 | |
| | | ||||
* | | Merge branch 'obsd-master' | Thomas Adam | 2016-01-16 | |
|\| | ||||
| * | Add hooks for alerts (bell, silence, activity), from Thomas Adam. | nicm | 2016-01-16 | |
| | | ||||
* | | Merge branch 'obsd-master' | Thomas Adam | 2015-12-18 | |
|\| | ||||
| * | As well as setting up the state, actually use it in cmd_find_target. | nicm | 2015-12-17 | |
| | | ||||
* | | Merge branch 'obsd-master' | Thomas Adam | 2015-12-17 | |
|\| | ||||
| * | Add infrastructure to work out the best target given a pane or window | nicm | 2015-12-16 | |
| | | | | | | | | alone and use it to add pane_died and pane_exited hooks. | |||
* | | Merge branch 'obsd-master' | Thomas Adam | 2015-12-15 | |
|\| | ||||
| * | Copy state directly rather than dereferencing wl (which could be NULL). | nicm | 2015-12-15 | |
| | | ||||
* | | Merge branch 'obsd-master' | Thomas Adam | 2015-12-15 | |
|\| |