| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
| |
Print -l and -p when showing command, pointed out by Tiago Cunha.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a choose-client command and extend choose-{session,window} to accept a
template. After a choice is made, %% (or %1) in the template is replaced by the
name of the session, window or client suitable for -t and the result executed
as a command. So, for example, "choose-window "killw -t '%%'"" will kill the
selected window.
The defaults if no template is given are (as now) select-window for
choose-window, switch-client for choose-session, and detach-client for
choose-client (now bound to D).
|
|
|
|
|
| |
gcc2 doesn't understand attributes on function pointers.
|
| |
|
|
|
|
|
|
|
| |
Add some other obvious variables to update-environment (WINDOWID SSH_ASKPASS
SSH_AUTH_SOCK SSH_AGENT_PID SSH_CONNECTION) so they are updated in the session
environment on new/attach.
|
|
|
|
|
| |
Some code tidying.
|
|
|
|
|
|
|
| |
When using source-file, run the commands in the context of the source-file
command rather than with no context. This makes things like attach work from a
file.
|
|
|
|
|
|
| |
The cursession member in struct cmd_ctx is always either curclient->session or
NULL when curclient is also NULL, so just eliminate it.
|
| |
|
|
|
|
|
| |
Emulate dch/dch1 if missing by redrawing the entire line.
|
|
|
|
|
|
| |
Ugh, committed the wrong version of this change and got both solutions rather
than just the second. Remove unused assignment.
|
|
|
|
|
|
|
|
| |
When moving up or down in copy mode, save the cursor position and size of the
last line with content (width != 0) and use it to determine if the cursor
should be at the end of the line. Fixes problem of the cursor always jumping to
the end of the line when scrolling past a blank line.
|
|
|
|
|
|
| |
Fix grid_expand_line so it actually works when the required size is bigger than
2 * the current size.
|
|
|
|
|
|
|
|
| |
A few trivial optimisations: no need to check for zero size if calling
buffer_ensure in buffer.c; expand grid lines by a greater increase than one
each time; and don't read UTF-8 data unless it actually needs to be checked
when overwriting a cell.
|
|
|
|
|
| |
Nuke unused variable.
|
|
|
|
|
| |
comment.
|
| |
|
|
|
|
|
|
| |
VEOF and VEOL indexes for them. ICANON is set by default, so don't bother to
set VTIME and VMIN.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Handle the device attributes (DA) escape sequence.
|
|
|
|
|
| |
tweak previous;
|
|
|
|
|
|
| |
Don't read beyond the edge of the screen when searching (dies with debug
enabled).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Extend command-prompt with a -p option which is a comma-separated list of one
or more prompts to present in order.
The responses to the prompt are replaced in the template string: %% are
replaced in order, so the first prompt replaces the first %%, the second
replaces the second, and so on. In addition, %1 up to %9 are replaced with the
responses to the first the ninth prompts
The default template is "%1" so the response to the first prompt is processed
as a command.
Note that this changes the behaviour for %% so if there is only one prompt,
only the first %% will be replaced. Templates such as "neww -n '%%' 'ssh %%'"
should be changed to "neww -n '%1' 'ssh %1'".
From Tiago Cunha.
|
|
|
|
|
|
|
|
|
| |
Instead of just checking for an empty buffer, which may not be the case if
there is unconsumed data, save the previous size and use it instead. This means
that activity monitoring should work in this (unlikely) event.
Also remove a debugging statement that no longer seems necessary.
|
|
|
|
|
| |
Whoops, getting the comparison the right way round is usually recommended.
|
|
|
|
|
| |
Move another expensive options test to after a cheaper timer check/update.
|
|
|
|
|
|
|
| |
options_get_number() is relatively expensive and a check for dead panes happens
a lot more often than actually finding one, so instead of getting the option
for every check, get it for every dead window found.
|
|
|
|
|
|
|
| |
Now that pane targets (-t) are supported, switch some commands to use them
where it makes sense: clock-mode, copy-mode, scroll-mode, send-keys,
send-prefix.
|
|
|
|
|
| |
Tag a few missed printf-like functions and fix a missing "%s".
|
|
|
|
|
| |
patchsets 268, and 269.
|
|
|
|
|
|
| |
Pass show-buffer output through vis(3) as well, and wrap it to the edge of the
terminal when used from the command line.
|
|
|
|
|
| |
Change list-buffers to run the preview of the buffer through vis(1).
|
|
|
|
|
| |
Use the full screen width when printing output rather than one less.
|
|
|
|
|
| |
Nuke unnecessary assignment.
|
|
|
|
|
|
| |
Add a "delete line" key when editing in the status line or the search up/down
prompt. C-u with emacs keys, d with vi.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add (naive) searching and goto line in copy mode. Searching is C-r and C-s with
emacs keys, / and ? with vi; n repeats the search again with either key
set. All searching wraps the top/bottom. Goto line is g for both emacs and vi.
The search prompts don't have full line editing, just simple append and delete
characters.
Also sort the mode keys list in tmux.1.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
sys/ttydefaults.h is just a copy of the file from *BSD, taking no account of
the fact that their OWN termios.h uses entirely different indexes into the
array.
I know ttydefaults.h is not meant to be portable, but you'd think it would be
obvious to anyone that no file is better than a broken one...
|
| |
|
| |
|
| |
|