Commit graph

23 commits

Author SHA1 Message Date
Bruno Sutic 76a5c8485f Bump version 2014-06-29 14:18:25 +02:00
Bruno Sutic ea13a18a5d Bugfix: copy line binding never yanks newlines
This addresses a tmux/bash issue that occurs for commands with multiple
lines. When 'C-e' is pressed in a command, this confuses tmux so
newlines are yanked in copy-mode.

When a user wants to line-yank multiple-line command he is better off
when newlines aren't yanked.
This commit reliably enables this.

Fixes #13
2014-06-29 14:13:27 +02:00
Bruno Sutic 2fa5010bf4 Code cleanup
Removed lines weren't really used.
2014-06-29 12:18:23 +02:00
Bruno Sutic 144a849901 Add a readme entry about yank-line support for remote shells
Closes #12
2014-06-28 01:11:11 +02:00
Bruno Sutic bed68528d9 Bugfix: line yank doesn't work when in last pane line
When the current command line is the last/bottom line in the scrollback
buffer, then jumping to the bottom of the buffer:
- stays in the current line
- goes to the start of current line

This is, of course, not desired bc we get the wrong result.

The fix is to just 'down' movement in copy mode. The down movement
preserves cursor column.

Fixes #11.
2014-06-28 00:50:35 +02:00
Bruno Sutic 8a0c06e1fe Adds wait time for 'yank line' when running remote shell
If 'yank line' is tried when running in a remote shell (ssh) with
latency, the result will not be good.
I consistently yanked only the *last character* in the command.
This is due to latency: yank line feature works faster than the cursor
is moved in the remote shell.

To fix this issue, if remote shell is detected (ssh or mosh) wait time
is added to compensate for network latency.
Wait time of '0.2s' seemed to give good results, but at the end, wait of
'0.4s' is set. This should be more robust and allow for even greater
latency (I only wonder how could anyone work with that).
2014-06-27 12:42:33 +02:00
Bruno Sutic 9d22eccee7 Readme updates 2014-06-26 15:53:43 +02:00
Bruno Sutic 260c29505b v0.0.2 2014-06-25 16:02:58 +02:00
Bruno Sutic 89ed2b2f5e Add copy to command line feature to readme 2014-06-25 16:02:14 +02:00
Bruno Sutic 7cbde7b5dd Line copy feature now works accross multiple lines 2014-06-25 15:35:48 +02:00
Bruno Sutic 22c55eaeda Make sure the line copy feature works with vi and emacs copy mode 2014-06-25 15:16:05 +02:00
Bruno Sutic 4a15a81783 Add a feature for copying current command line to clipboard 2014-06-25 15:11:27 +02:00
Bruno Sutic 94bc2628a8 Extract key-related functions to a helper 2014-06-25 13:33:23 +02:00
Bruno Sutic 6ce34352c3 Set things up for a yank_line key binding 2014-06-25 13:24:28 +02:00
Bruno Sutic 67e875b2a7 Change tmux option names for key bindings 2014-06-25 13:22:56 +02:00
Bruno Sutic cacccb7ca0 Small readme tweak 2014-06-25 12:20:47 +02:00
Bruno Sutic a8da4c2a96 Improve requirements check for OS X 2014-06-25 12:17:15 +02:00
Bruno Sutic cf98b09425 Update readme 2014-06-25 12:08:33 +02:00
Bruno Sutic 34a97e02db Bump version 2014-06-24 15:04:37 +02:00
Bruno Sutic 4224d4cd9d Add readme 2014-06-24 15:02:32 +02:00
Bruno Sutic f0b0dc9d8e Add error handling 2014-06-24 14:40:50 +02:00
Bruno Sutic 2aa6c0615f Plugin working 2014-06-24 14:26:03 +02:00
Bruno Sutic 53b38cab96 First commit 2014-06-24 11:39:47 +02:00