aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* When resizing a screen smaller in alternate screen mode, all the lines neededNicholas Marriott2009-07-18
| | | | | | | could be consumed by deleting from the bottom, leaving none to be removed from the top. In this case, don't call grid_view_delete_lines with ny of 0 as this is incorrect and causes a bounds check to fatal error if built with -DDEBUG.
* Tidy up new-session and attach-session and change them to work from insideNicholas Marriott2009-07-18
| | | | | tmux, switching the current client to the new or requested session.
* Remove a duplicate key binding, and turn off autorepeat for up/down as it isNicholas Marriott2009-07-18
| | | | | kind of annoying by default.
* If -u is specified or UTF-8 is otherwise detected when the server is started,Nicholas Marriott2009-07-18
| | | | | | enable the utf8 and status-utf8 optons. While here, note in the man page that the server is started with the first session and exits when none remain.
* When resizing a screen smaller in alternate screen mode, all the lines neededNicholas Marriott2009-07-17
| | | | | | | could be consumed by deleting from the bottom, leaving none to be removed from the top. In this case, don't call grid_view_delete_lines with ny of 0 as this is incorrect and causes a bounds check to fatal error if built with -DDEBUG.
* - New command display-message (alias display) to display a message in theTiago Cunha2009-07-17
| | | | | | | | status line (bound to "i" by default). - Add support for including the window index, pane index, and window name in status-left, or status-right. - Bump protocol version.
* Update TODO.Nicholas Marriott2009-07-17
|
* Changed the wrong thing here.Nicholas Marriott2009-07-17
|
* Stupid cvsps.Nicholas Marriott2009-07-17
|
* A similar for fix for window_choose: don't rely on the callback always beingNicholas Marriott2009-07-17
| | | | | | called to free data, have a separate free callback and call it from the mode cleanup code.
* Oops, it is always a good idea to get arguments the right way round.Nicholas Marriott2009-07-17
|
* Memory could be leaked if a second prompt or message appeared while another wasNicholas Marriott2009-07-17
| | | | | | still present, so add a separate prompt free callback and make the _clear function responsible for calling it if necessary (rather than the individual
* Remove some duplicate code that was causing the status line to be redrawn evenNicholas Marriott2009-07-17
| | | | | when it hadn't changed.
* Fix arguments to switch-client.Nicholas Marriott2009-07-17
|
* Typo in grid_duplicate_lines (sy for dy) causing it to write into the wrongNicholas Marriott2009-07-17
| | | | | place when copying UTF-8 data. Found by Dan Colish.
* Update TODO.Nicholas Marriott2009-07-16
|
* Typo in grid_duplicate_lines (sy for dy) causing it to write into the wrongNicholas Marriott2009-07-16
| | | | | place when copying UTF-8 data. Found by Dan Colish.
* Improved NetBSD current-process detection from Roy Marples.Nicholas Marriott2009-07-15
|
* Make status_message_set a variadic printf-like function. No functional change -Nicholas Marriott2009-07-15
| | | | | helpful for a couple of things coming soon.
* Return -1 not NULL on error, pointed out by Roy Marples.Nicholas Marriott2009-07-15
|
* Add a -k flag to unlink-window which makes it behave the same as the oldNicholas Marriott2009-07-15
| | | | | | kill-window - if a window is linked into only one session it unlinked and destroyed.
* The man page says that kill-window removes the window entirely, unlinking itNicholas Marriott2009-07-15
| | | | | | | | from any sessions. In fact the implementation only affected the current session, making it the same as unlink-window but destroying the window if it was linked into only one session (unlinkw gives an error). Change the behaviour to match what it documented and was originally intended.
* Having to update NSETOPTION/NSETWINDOWOPTION when adding new options is a bitNicholas Marriott2009-07-15
| | | | | | | annoying and it is only use for iterating, so use a sentinel to mark the end of each array instead. Different fix for a problem pointed out by Kalle Olavi Niemitalo.
* Add main-pane-height to the options list (was missed before).Nicholas Marriott2009-07-15
|
* For some reason when clearing status/message it was redrawing the entire clientNicholas Marriott2009-07-15
| | | | | | not just the status line. Changing this also revealed the check for the status line was incorrect when drawing the pane.
* Instead of faking up a status line in status_redraw, use the same code toNicholas Marriott2009-07-15
| | | | | redraw it as to draw the entire screen, just skip all lines but the last.
* Don't accept input to a window if it not visible.Nicholas Marriott2009-07-15
|
* The scroll region cannot be one line only, ignore attempts to make it so.Nicholas Marriott2009-07-15
|
* Get rid of the PANE_HIDDEN flag in favour of a function, and moving theNicholas Marriott2009-07-15
| | | | | | | | | decision for whether or not a pane should be drawn out of the layout code and into the redraw code. This is needed for the new layout design, getting it in now to make that easier to work on.
* Escape ~, pointed out by tcunha.Nicholas Marriott2009-07-14
|
* Need time.h not sys/time.h for time(2).Nicholas Marriott2009-07-14
|
* Whoops, chose the wrong one in a conflict. Revert.Nicholas Marriott2009-07-14
|
* arg.c is no longer required.Nicholas Marriott2009-07-14
|
* Don't need ncurses, use curses.Nicholas Marriott2009-07-14
|
* Having fixed flags for single-character getopt options is a bit hard toNicholas Marriott2009-07-14
| | | | | | | | | | maintain and is only going to get worse as more are used. So instead, add a new uint64_t member to cmd_entry which is a bitmask of upper and lowercase options accepted by the command. This means new single character options can be used without the need to add it explicitly to the list.
* copy-mode and scroll-mode have a -u flag missing from usage, add it.Nicholas Marriott2009-07-14
|
* Tidy up and improve target (-t) argument parsing:Nicholas Marriott2009-07-14
| | | | | | | | | | | | | | | - move the code back into cmd.c and merge with the existing functions where possible; - accept "-tttyp0" as well as "-t/dev/ttyp0" for clients; - when looking up session names, try an exact match first, and if that fails look for it as an fnmatch pattern and then as the start of a name - if more that one session matches an error is given; so if there is one session called "mysession", -tmysession, -tmysess, -tmysess* are equivalent but if there is also "mysession2", the last two are errors; - similarly for windows, if the argument is not a valid index or exact window name match, try it against the window names as an fnmatch pattern and a prefix.
* Support "alternate screen" mode (terminfo smcup/rmcup) typically used by fullNicholas Marriott2009-07-14
| | | | | | | | screen interactive programs to preserve the screen contents. When activated, it saves a copy of the visible grid and disables scrolling into and resizing out of the history; when deactivated the visible data is restored and the history reenabled.
* Missed this declaration in key bindings change. Whoops.Nicholas Marriott2009-07-14
|
* Document the -k flag to new-window.Nicholas Marriott2009-07-14
|
* Add a "back to indentation" key in copy mode to move the cursor to the firstNicholas Marriott2009-07-14
| | | | | | non-whitespace character. ^ with vi and M-m with emacs key bindings. Another from Kalle Olavi Niemitalo, thanks.
* Merge three copies of identical code to move the cursor x position into aNicholas Marriott2009-07-14
| | | | | single function, from Kalle Olavi Niemitalo.
* If it exist, load a system-wide configuration file /etc/tmux.conf before anyNicholas Marriott2009-07-14
| | | | | user-specified one.
* Update.Tiago Cunha2009-07-13
|
* Expand leading tilde on commands which expect a filename.Tiago Cunha2009-07-13
|
* Update.Nicholas Marriott2009-07-13
|
* Update TODO.Nicholas Marriott2009-07-13
|
* Limit the history to hlimit not hlimit - 1. This makes a history-limit settingNicholas Marriott2009-07-12
| | | | | of 0 work as expected.
* Add -r to the synopsis of the paste-buffer command, prompted by jmc.Nicholas Marriott2009-07-12
|
* When pasting, translate \n into \r. This matches xterm and putty's behaviour,Nicholas Marriott2009-07-12
| | | | | | | | and makes emacs happy when pasting into some modes. A new -r (raw) flag to paste-buffer pastes without the translation. From Kalle Olavi Niemitalo, thanks!