This patchset contains various fixes and changes to behave more like vi (commands referenced by their vi keybindings since that's what I'm familiar with). The patches are fairly distinct (though the EOL tracking should go after the looping fix). I have done light spot testing, but will be using them in my local tmux build to further work them.
Fixes: - Backs up a character with the 'e' and 'E' motions to match vi if the vi keybindings are selected in the statusbar and copy mode. - Looping when moving left on the first line and right on the last line in copy mode. Features: - New 's', 'S', and 'C' commands when editing on the status line. These commands enter insert mode while replacing the current character, the entire line, and the text to the end of the line, respectively. I do not think that emacs has equivalents of these since they are normal mode commands (C-k for 'S' behavior is already bound). Behavior changes: - EOL tracking in copy mode. When '$' is used when navigating in copy mode to go the the end of a line, this fact is forgotten when moving up and down between lines. Any other motion seems to reset this flag in vi, so that behavior is copied here. - Moving to the "front" of the line on page-wise motions. When moving page-wise, the cursor can end up hanging off the end of the text of the new line. Vim seems to do '^' after page-wise movements which seems to me to be a good compromise. If this should be guarded by a rectflag check or only happen for vi keybindings, that can be changed. Nits: - Some whitespace errors I came across while implementing the changes (take as you see fit). Ben Boeckel (6): Implement 's', 'S', and 'C' vi keybindings Act like vi with word motions in the statusline Don't loop in copy mode on first and last lines Implement EOL tracking Move to the indentation of a line on scrolling Whitespace fixes mode-key.c | 21 ++++++++++++------- status.c | 10 ++++++++- tmux.h | 3 +++ window-copy.c | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++------- 4 files changed, 85 insertions(+), 15 deletions(-) -- 1.8.2.1 ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users