48 Commits

Author SHA1 Message Date
Chris Toomey
e8abf1ae69 Remove ZoomRunnerPane in favor of FocusRunnerPane
The functionality was largely duplicated across the commands, and with
regard to naming, `FocusRunnerPane` better maps to how I use it.

Closes #35 - Unify Focus & Zoom runner pane functions
2014-12-31 14:12:25 -05:00
Chris Toomey
e1749bc7fb Error when running commands without a runner pane
Previous behavior was to implicitly open a runner pane if none
attached. I regularly ran into this in unwanted circumstances. With the
recent updated to make AttachToPane smarter, an error plus quick
manual attach is nearly as quick as the implicit form, but is much
better overall.

Closes #36 - Explicitly error when running without a pane attached
2014-12-31 14:05:31 -05:00
Chris Toomey
f39a860595 Capture the major orientation with AttachToPane
ReorientRunner needs to know the current orientation in order to be
able to toggle it. With this change, we capture the current major
orientation (outermost split orientation) and assume it to be
representative. Imperfect, but I believe it to be a very good
approximation.

Closes #32 - Error: Reorient Runner fails when run after manual attach
2014-12-31 11:25:22 -05:00
Chris Toomey
cf363c892c Remove ResizeRunner command
It was buggy and the functionality is much better handled through tmux
bindings than through plugin behavior

Closes #34 - Remove ResizeRunner command
2014-12-31 11:02:22 -05:00
Chris Toomey
b00685f019 Unify SendLines by making it accept a range
Love cleaning up the interface and removing code!

Closes #15 - Unify SendLines command by allowing it to take a range
2014-11-17 13:06:46 -05:00
Chris Toomey
7c4cd3d059 Smarten up AttachToPane functionality
- Automatically attach if only 2 panes
- Ensure pane with index exists before attaching

The runner_pane must not be the Vim pane, so if there are only two
panes, then we can be certain that the desired pane is the other, and
automatically attach

Closes #20 - Make AttachToPane command smarter
2014-11-17 12:51:21 -05:00
Chris Toomey
e05b373ff3 Prevent killing the Vim pane
If the user has swapped the pane layout, it is possible that VTR could
attempt to kill the Vim pane. This introduces a sanity check that
prevents killing the active / Vim pane.

Closes #7 - Protect against killing Vim pane
2014-11-14 16:41:59 -05:00
Chris Toomey
1be6d62b51 Ensure runner pane is present before sending lines
Closes #8 - Only send line(s) when runner pane is open
2014-11-14 14:03:41 -05:00
Chris Toomey
20a02948c7 Add mapping for AttachToPane 2014-11-14 14:03:09 -05:00
Chris Toomey
457c189f16 Ignore empty pane number in AttachToPane
Closes #23 - AttachToPane Ctrl-C interpreted as 0
2014-11-14 13:46:17 -05:00
Chris Toomey
4fdd883ce5 Zoom runner on focus 2014-11-14 12:09:24 -05:00
Chris Toomey
0c571bc5ca Enter copy-mode on zoom 2014-07-27 19:26:13 -04:00
Chris Toomey
fb486dcfed Use <leader> maps. Not sure how this lasted so long... 2014-04-11 13:50:25 -04:00
Chris Toomey
cf0b282fe2 Add zoom runner command and map 2014-04-11 13:43:23 -04:00
Chris Toomey
191d9d843c Add support for python syntactic whitespace
Closes #18 - Stripping whitespace

Add ipython readline and auto-indent notes
2014-02-17 10:30:18 -05:00
Chris Toomey
18d5ef9acd Allow for attaching to specific numbered pane 2013-08-23 14:23:09 -04:00
Chris Toomey
620f0ca989 Include explicit enter string 2013-06-09 20:07:19 -04:00
Chris Toomey
626531af5d Strip whitespace when sending lines
Closes #12 - Trim leading whitespace before sending
2013-06-05 21:28:58 -04:00
Chris Toomey
0470d5cb3f Add CtrlD send sequence 2013-03-22 14:48:03 -04:00
Chris Toomey
0160b455e1 Add ability to pass parameters to OpenRunner cmd
Closes #5 - Accept arguments to OpenRunner command for context specific
runners

This allows for specific variants of the VtrOpenRunner command to be
mapped allowing for context dependant runner orientations, sizing, and
initial command.
2013-01-27 12:21:39 -05:00
Chris Toomey
f423093897 Revert "Create runner pane in temp window"
This reverts commit 60bb1622d4b061caa1c3349ea5986cd9e1c3f229.
2013-01-27 10:58:44 -05:00
Chris Toomey
fc3acbaded Add SendSelected and SendLine commands
These commands allow for arbitrary text in the Vim buffer
to be passed to the runner pane for execution.
2013-01-27 10:00:53 -05:00
Chris Toomey
00b5ae4e40 Accept optional new_percent arg to Resize command 2013-01-26 17:50:18 -05:00
Chris Toomey
3e4a0e50e2 Change default to not clear on resize 2013-01-26 13:07:03 -05:00
Chris Toomey
60bb1622d4 Create runner pane in temp window
In order to avoid rapid flickering of runner window as it is created
and initialized, create and initialize it in a temporary background
window then bring it in.
2012-11-29 19:32:41 -05:00
Chris Toomey
b8a531b9b8 Allow VtrSendCommandToRunner cmd to accept args 2012-11-28 20:30:12 -05:00
Chris Toomey
4d59059612 Guard against empty command string 2012-11-27 22:29:40 -05:00
Chris Toomey
29a904e676 Bugfix: dimensions not actually returned 2012-11-27 21:57:13 -05:00
Chris Toomey
6124221c66 Use script local vars for orientation and percent 2012-11-27 21:42:39 -05:00
Chris Toomey
562bbf1435 Normalize command and function names to match docs 2012-11-27 21:06:20 -05:00
Chris Toomey
4c3cd1729a Update clear sequence to use ^U^L 2012-11-24 13:42:06 -05:00
Chris Toomey
c5df405e43 Update KillRunner to also kill detached window 2012-11-24 11:55:27 -05:00
Chris Toomey
e496ccc593 Add guard functions to require pane, window 2012-11-24 11:29:28 -05:00
Chris Toomey
b153665259 Escape commands passed in via SendCommand function 2012-11-24 10:11:42 -05:00
Chris Toomey
0565d25a69 Expose public VTRSendCommand function 2012-11-23 23:38:45 -05:00
Chris Toomey
4bd17efd06 Allow repeated runs of the previous command 2012-11-23 22:24:09 -05:00
Chris Toomey
ddb36560a0 Add detach and reattach commands 2012-11-23 22:06:45 -05:00
Chris Toomey
1237988753 Cover horizontal orientation in resize 2012-11-23 21:34:29 -05:00
Chris Toomey
1c8250b229 Reorganize initialization code 2012-11-23 20:44:28 -05:00
Chris Toomey
369fba87b5 Add initial ResizeRunner command 2012-11-23 19:31:59 -05:00
Chris Toomey
a601e99ffe Add doc file, prompt string option 2012-11-23 13:06:14 -05:00
Chris Toomey
e6a0136d8b Auto sendEnterSequence with sendKeys 2012-11-23 12:21:01 -05:00
Chris Toomey
fa3f90375d Add initialCommand option for runner startup 2012-11-23 12:13:49 -05:00
Chris Toomey
41bcb5b887 Add RotateRunner command 2012-11-23 11:24:55 -05:00
Chris Toomey
4b7f1c5a42 Wrap tmux cmds with target panes 2012-11-23 00:50:43 -05:00
Chris Toomey
ca66df9ec7 Pass all tmux calls through same function 2012-11-23 00:43:19 -05:00
Chris Toomey
42217e1600 Add KillRunner and FocusRunner commands 2012-11-23 00:33:07 -05:00
Chris Toomey
cd0aa7cc7d Initial OpenRunnerPane implementation 2012-11-22 23:12:17 -05:00