summaryrefslogtreecommitdiffstats
path: root/cfg.c
AgeCommit message (Collapse)Author
2015-05-07Style spacing nits.nicm
2015-04-27Reset cfg_ncauses to 0 as well or we could allocate the wrong size ifnicm
called again.
2015-04-25Fix some char* -> char *.nicm
2015-04-25Use a char **,u_int pair for cfg_causes.nicm
2015-04-19Rewrite of tmux mouse support which was a mess. Instead of havingnicm
options for "mouse-this" and "mouse-that", mouse events may be bound as keys and there is one option "mouse" that turns on mouse support entirely (set -g mouse on). See the new MOUSE SUPPORT section of the man page for description of the key names and new flags (-t= to specify the pane or window under mouse as a target, and send-keys -M to pass through a mouse event). The default builtin bindings for the mouse are: bind -n MouseDown1Pane select-pane -t=; send-keys -M bind -n MouseDown1Status select-window -t= bind -n MouseDrag1Pane copy-mode -M bind -n MouseDrag1Border resize-pane -M To get the effect of turning mode-mouse off, do: unbind -n MouseDrag1Pane unbind -temacs-copy MouseDrag1Pane The old mouse options are now gone, set-option -q may be used to suppress warnings if mixing configuration files.
2014-10-27Move cfg_causes local into cfg.c and remove struct causelist.nicm
2014-06-25Handle escaped back slashes and missing new lines at end of line by usingtobias
fparseln instead of reimplementing it on our own. with input by and ok nicm@
2014-04-17Remove some unnecessary includes and fix a typo.nicm
2013-10-20Do not run any command line command from the client which starts thenicm
server until after the configuration file completes. This prevents it racing against run-shell or if-shell in .tmux.conf that run in the background.
2013-03-25Add some additional debug logging.Nicholas Marriott
2013-03-24Add a command queue to standardize and simplify commands that call otherNicholas Marriott
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.
2013-03-22Need to set clients in context before changing their reference count.Nicholas Marriott
2013-03-22load_cfg can actually use the same context now they are reference counted.Nicholas Marriott
2013-03-22Don't try to print unterminated strings when loading configuration file.Nicholas Marriott
2013-03-22No more lint means no more ARGSUSED.Nicholas Marriott
2013-03-21Fix a couple of memory leaks, from Romain Francoise.Nicholas Marriott
2012-12-13Change load_cfg to fix a crash reported by jasper.Nicholas Marriott
2012-12-06Use strlcat not strncat in load_cfg and some other trivial tidying fromNicholas Marriott
Tiago Cunha.
2012-11-27Fix return value of load_cfg, from Thomas Adam.Nicholas Marriott
2012-11-27Correctly aggregate together errors from nested config files (withNicholas Marriott
source-file). Fix by Thomas Adam, reported by Sam Livingstone-Gray
2012-11-19Use a utility function for common code to show errors in config file,Nicholas Marriott
from Thomas Adam.
2012-07-11Make command exec functions return an enum rather than -1/0/1 values andNicholas Marriott
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.
2012-07-10xfree is not particularly helpful, remove it. From Thomas Adam.Nicholas Marriott
2012-05-17Ignore line continuation when escaped as \\, from Simon Nicolussi.Nicholas Marriott
2011-08-24Support \ for line continuation in the configuration file, from JuliusNicholas Marriott
Plenz.
2010-12-29Allow the config file parser and source-file to return "don't exit" toNicholas Marriott
the client to let attach work from configuration files.
2010-05-25Fix an out-of-date comment.Nicholas Marriott
2010-02-06Use the array.h code for the causes list.Nicholas Marriott
2010-02-06Instead of bailing out on the first configuration file error, carry on,Nicholas Marriott
collecting all the errors, then start with the active window in more mode displaying them.
2009-11-26Remove a couple of unused arguments where possible, and add /* ARGSUSED */ toNicholas Marriott
the rest to reduce lint output.
2009-10-26tabs are better; ok nicmTheo Deraadt
2009-08-23When using source-file, run the commands in the context of the source-fileNicholas Marriott
command rather than with no context. This makes things like attach work from a file.
2009-08-23The cursession member in struct cmd_ctx is always either curclient->session orNicholas Marriott
NULL when curclient is also NULL, so just eliminate it.
2009-08-09Don't leak in the (rare) case of an invalid command at the end of a file notNicholas Marriott
terminated by a \n.
2009-07-30Don't babysit people and let them try to load /dev/zero or (more useful)Nicholas Marriott
/dev/null if they want.
2009-06-25Unused prototypes. Found by lint, no binary change.Nicholas Marriott
2009-06-01Import tmux, a terminal multiplexor allowing (among other things) a singleNicholas Marriott
terminal to be switched between several different windows and programs displayed on one terminal be detached from one terminal and moved to another. ok deraadt pirofti