aboutsummaryrefslogtreecommitdiff
path: root/cmd.c
Commit message (Collapse)AuthorAge
...
| * Remove now unused cmd_get_default_path.nicm2013-10-10
| |
| * Support -c for new-session, based on code from J Raynor.nicm2013-10-10
| |
* | We accidentally haven't been using $TMUX to work out the session for a whileNicholas Marriott2013-10-06
| | | | | | | | | | and in fact it is less useful that using the client ttyname. So don't bother and don't pass it from the client. If we need it in future it is in c->environ.
* | Remove now unused cmd_get_default_path.Nicholas Marriott2013-10-06
| |
* | Support -c for new-session, based on code from J Raynor.Nicholas Marriott2013-10-01
| |
* | Remove the barely-used and unnecessary command check() function.Nicholas Marriott2013-08-21
| |
* | Merge branch 'obsd-master'Thomas Adam2013-05-25
|\| | | | | | | | | Conflicts: tmux.h
| * Reserve space for \0 in cmd_print, from George Nachman.Nicholas Marriott2013-05-15
| |
| * Sort includes and fix spaces.Nicholas Marriott2013-03-25
| |
| * Rename session idx to session id throughout and add $ prefix to targetsNicholas Marriott2013-03-25
| | | | | | | | to use it, extended from a diff from George Nachman.
| * Add a wait-for command which blocks a client on a named channel until itNicholas Marriott2013-03-25
| | | | | | | | is woken up again (with wait-for -S). From Thiago Padilha.
| * Add a command queue to standardize and simplify commands that call otherNicholas Marriott2013-03-24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commands and allow a command to block execution of subsequent commands. This allows run-shell and if-shell to be synchronous which has been much requested. Each client has a default command queue and commands are consumed one at a time from it. A command may suspend execution from the queue by returning CMD_RETURN_WAIT and then resume it by calling cmd_continue() - for example run-shell does this from the callback that is fired after the job is freed. When the command queue becomes empty, command clients are automatically exited (unless attaching). A callback is also fired - this is used for nested commands in, for example, if-shell which can block execution of the client's cmdq until a new cmdq becomes empty. Also merge all the old error/info/print functions together and lose the old curclient/cmdclient distinction - a cmdq is bound to one client (or none if in the configuration file), this is a command client if c->session is NULL otherwise an attached client.
| * Fix error reporting for client commands by adding a flag toNicholas Marriott2013-03-24
| | | | | | | | | | cmd_find_client to tell it whether or not to show errors, sometimes it's needed and sometimes not.
| * Need to set clients in context before changing their reference count.Nicholas Marriott2013-03-22
| |
| * Add functions to allocate and free command contexts rather than doing itNicholas Marriott2013-03-22
| | | | | | | | all on the stack.
| * Do not crash when calling choose-tree with a command that changes the mode.Nicholas Marriott2013-03-21
| |
* | Spacing, warning nits.Nicholas Marriott2013-03-25
| |
* | Rename session idx to session id throughout and add $ prefix to targets to useNicholas Marriott2013-03-07
| | | | | | | | it, extended from a diff from George Nachman.
* | Add a wait-for command which blocks a client on a named channel until it isNicholas Marriott2013-03-06
| | | | | | | | wokrn up again (with wait-for -S). From Thiago Padilha.
* | tty.path can be NULL, don't dereference it. From George Nachman.Nicholas Marriott2013-03-04
| |
* | Add a command queue to standardize and simplify commands that call otherNicholas Marriott2013-02-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | commands and allow a command to block execution of subsequent commands. This allows run-shell and if-shell to be synchronous which has been much requested. Each client has a default command queue and commands are consumed one at a time from it. A command may suspend execution from the queue by returning CMD_RETURN_WAIT and then resume it by calling cmd_continue() - for example run-shell does this from the callback that is fired after the job is freed. When the command queue becomes empty, command clients are automatically exited (unless attaching). A callback is also fired - this is used for nested commands in, for example, if-shell which can block execution of the client's cmdq until a new cmdq becomes empty. Also merge all the old error/info/print functions together and lose the old curclient/cmdclient distinction - a cmdq is bound to one client (or none if in the configuration file), this is a command client if c->session is NULL otherwise an attached client.
* | Fix error reporting for client commands by adding a flag to cmd_find_client toNicholas Marriott2013-02-22
| | | | | | | | tell it whether or not to show errors, sometimes it's needed and sometimes not.
* | Need to set clients in context before changing their reference count.Nicholas Marriott2013-02-20
| |
* | Add functions to allocate and free command contexts rather than doing it all onNicholas Marriott2013-02-18
| | | | | | | | the stack.
* | Do not crash when calling choose-tree with a command that changes the mode.Nicholas Marriott2013-02-13
| |
* | Fix constness again, sigh.Nicholas Marriott2013-02-13
| |
* | Fix constness of cmd_template_replace.Nicholas Marriott2013-02-13
| |
* | Merge branch 'obsd-master'Thomas Adam2013-01-30
|\| | | | | | | | | | | Conflicts: Makefile grid-utf8.c
| * Style nits - return (x) not return x.Nicholas Marriott2013-01-18
| |
* | Merge branch 'obsd-master'Thomas Adam2012-12-31
|\| | | | | | | Sync from OpenBSD.
| * Add ^ and $ special command targets to select lowest and highestNicholas Marriott2012-12-24
| | | | | | | | numbered windows, from Raghavendra D Prabhu.
* | Merge branch 'obsd-master'Thomas Adam2012-11-27
|\| | | | | | | Sync from OpenBSD.
| * Fix session choice so that preferring unattached sessions actuallyNicholas Marriott2012-11-27
| | | | | | | | works, reported by Drew Frank.
| * Use pgrp of pty fd not pid of immediate child when recovering currentNicholas Marriott2012-09-24
| | | | | | | | working directory (like current process). From Marcel Partap.
| * add cmd-choose-list to allow arbitrary options to be selected. FromNicholas Marriott2012-09-03
| | | | | | | | Thomas Adam.
| * Make command exec functions return an enum rather than -1/0/1 values andNicholas Marriott2012-07-11
| | | | | | | | | | | | add a new value to mean "leave client running but don't attach" to fix problems with using some commands in a command sequence. Most of the work by Thomas Adam, problem reported by "jspenguin" on SF bug 3535531.
| * xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott2012-07-10
| |
| * Add choose-tree command to show windows and sessions in the sameNicholas Marriott2012-07-08
| | | | | | | | | | list. Change choose-window and -session to use the same code. From Thomas Adam.
| * Do not crash when the current session has no window, fixes a bugNicholas Marriott2012-06-18
| | | | | | | | reported by Giorgio Lando. Fix from Thomas Adam.
| * Do not return a buffer on the stack, mentioned by jsg a while ago.Nicholas Marriott2012-04-23
| |
| * Fix printing commands with no arguments, from Benjamin Poirier.Nicholas Marriott2012-04-22
| |
| * Add move-pane command (like join-pane but allows the same window). AlsoNicholas Marriott2012-03-03
| | | | | | | | | | -b flag to join-pane and move-pane to place the pane to the left or above. From George Nachman.
| * Don't die if fail to get root directory, from Ben Boeckel.Nicholas Marriott2012-02-06
| |
| * Provide defined ways to set the various default-path possibilities: ~Nicholas Marriott2012-01-31
| | | | | | | | | | | | | | | | | | for home directory, . for server start directory, - for session start directory and empty for the pane's working directory (the default). All can also be used as part of a relative path (eg -/foo). Also provide -c flags to neww and splitw to override default-path setting. Based on a diff from sthen. ok sthen
| * Give each window a unique id, like panes but prefixed with @. Based onNicholas Marriott2012-01-30
| | | | | | | | work from George Nachman.
| * Add some const and fix a warning.Nicholas Marriott2012-01-20
| |
| * Allow $HOME as default-path in tmux.conf so the same config file can be usedStefan Sperling2011-12-27
| | | | | | | | | | on different machines regardless of where the user's home directory is. ok nicm
| * Change the way the working directory for new processes is discovered. IfNicholas Marriott2011-12-09
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | default-path isn't empty, it is used. Otherwise: 1) If tmux neww is run from the command line, the working directory of the client is used. 2) Otherwise sysctl KERN_PROC_CWD is used to retrieve the current working directory of the process in the active pane. 3) If that fails, the directory where the session was created is used. Support code by Romain Francois, OpenBSD specific bits by me. Note this requires a recent userland and kernel with KERN_PROC_CWD.
| * Add a respawn-pane command, from Marcel Partap.Nicholas Marriott2011-06-05
| |
| * Get rid of the layout string code which tries to walk through the layoutNicholas Marriott2011-06-05
| | | | | | | | hierarchy and instead just look at what panes are actually in the window.