Commit Graph

84 Commits

Author SHA1 Message Date
Michael van der Kamp
3daa0e91f0
Support tmux's target-pane and target-window syntax for finding an existing runner (#210) 2022-09-03 14:38:25 +03:00
Michael van der Kamp
028897b6fb Allow resetting the VimuxCloseOnExit option
Instead of paying attention to the value when starting up, check the
option's value at close.
2021-08-14 12:21:46 -06:00
Matthias Bilger
031cc6208e
Merge pull request #202 from mvanderkamp/issue_201
Use same height and orientation arguments for opening and toggling panes
2021-08-11 04:24:25 +02:00
Samuel Walladge
853646aef3
Abort with an error if run outside tmux session (#204)
Otherwise, the command sent will run in a different and likely unexpected tmux session.
2021-08-10 11:11:34 +03:00
Michael van der Kamp
55a470dc0d Use same height and orientation arguments for opening and toggling panes 2021-07-24 12:34:25 -06:00
Michael van der Kamp
a1650d5f9b
Use abort for all function declarations (#196)
See:
`:help func-abort`
`:help except-compat`
2021-05-25 10:10:22 +03:00
John Bredall
ee0dfae330
Fix VimuxTogglePane (#195) 2021-04-29 22:18:42 +03:00
jaspertandy
59b1d28f80 Needs no argument rather than a blank argument 2021-03-10 14:16:02 +00:00
jaspertandy
784b2834c7 Preference to allow up-arrow 2021-03-10 14:11:59 +00:00
Michael van der Kamp
54d24d1694 Add an option to autoclose the runner 2021-03-07 17:47:25 -06:00
Gerhard Hellmann
5b1791673c
Add option to expand VimuxPromptCommand arguments (#166)
Co-authored-by: Gerhard Siegesmund <gerhard.siegesmund@btd.de>
2021-02-23 15:35:38 +03:00
Caleb Maclennan
1b38911c40 Disallow chaining VimuxRunCommand and VimuxPromptCommand
Fixes #185

Vim does not allow escaping some characters in commands that can be
chained. In particular bars are disallowed and double quotes begin code
comments. Both of these things are regular features in shell command
strings.

I'm disallowing chaining for the two commands that take shell commands
as arguments so they can be used sensibly again. One solution to allow
this might be to have a ...Bar version of each. It might also be
possible to work around this with `:call` and functions instead of
commands.
2021-02-18 23:38:53 +03:00
Caleb Maclennan
29c5b39545
Merge branch 'master' into initialize_settings 2021-02-16 15:56:45 +03:00
Caleb Maclennan
992d525ef9
feat: Make s:tmuxExec (was _VimuxTmux) public VimuxTmux 2021-02-16 15:47:18 +03:00
Caleb Maclennan
566833e291
style: Format each function as a paragraph with no blanks 2021-02-16 12:41:42 +03:00
Caleb Maclennan
43681e9f91
refactor: Simplify script-local private function names 2021-02-16 12:41:33 +03:00
Caleb Maclennan
601749152e
feat: Make s:VimuxOption (was _VimuxOption) public VimuxOption 2021-02-16 12:41:10 +03:00
Michael van der Kamp
b13568ea1b
Support buffer-local variants of options 2021-02-16 12:08:41 +03:00
Michael van der Kamp
748b54b885
Define options once at startup
This also removes a couple of "getter" functions that were being used to
look up options and fall back to their defaults
2021-02-16 12:08:24 +03:00
Caleb Maclennan
5f999f4dc4
Fix variable mismatch looking for previous command 2021-02-16 10:09:07 +03:00
Caleb Maclennan
3a1aad8752
style: Normalize indentation and other whitespace 2021-02-16 10:08:56 +03:00
Caleb Maclennan
a2ab8880a1
Allow all commands to be used in chains (#182)
Allow all commands to be used in chains
2021-02-14 20:23:57 +03:00
Caleb Maclennan
c212352f93
Use robust operators 2021-02-14 19:17:08 +03:00
Caleb Maclennan
f589e21472
Use the full option name 2021-02-14 19:15:05 +03:00
Caleb Maclennan
a5a17b8e32
Prefer single quoted strings 2021-02-14 19:12:47 +03:00
Caleb Maclennan
e6fb662bf1
Replace underscore convention with proper script-local scopes 2021-02-14 17:12:03 +03:00
Matthias Bilger
af602e362d Allow setting of VimuxRunner name to reuse session 2021-02-14 10:10:24 +01:00
Thales Mello
57bbdc4478
Enable tab autocompletion on VimuxPromptOption (#142) 2021-02-13 21:09:55 +03:00
Caleb Maclennan
cce8466613
Move the cheese, because it has to move to run
As anybody following this might have divined, my testing  was flawed and
I was running different code than I was viewing.
2021-02-13 19:29:25 +03:00
Caleb Maclennan
71f28c8296
Merge pull request #174 from mvanderkamp/split-extra-args 2021-02-13 19:23:36 +03:00
Caleb Maclennan
48b541b1a4
Avoid useless space in default empty argument string 2021-02-13 19:22:44 +03:00
Philipp Moers
ef5622f225
Add VimuxClearTerminalScreen (#178) 2021-02-13 19:17:10 +03:00
Caleb Maclennan
7f15726b07
Merge pull request #155 from lyuts/check_tmux_binary 2021-02-13 18:50:26 +03:00
Caleb Maclennan
9c05307141
Refactor PR code order to not move cheese
With tons of outstanding PRs I don't want to introduce conflicts for no
reason. We can refactor to make the source order more sensible later.
2021-02-13 18:41:57 +03:00
Giuseppe Rota
46377b8ab9
Escape the text sent to tmux
Closes #76
2021-02-13 12:38:46 +03:00
Eugene Yunak
1dec7164ca
Use IDs instead of indexes to identify windows and panes (#110)
...because indexes can change while IDs are constant and unique.
2021-02-13 12:13:02 +03:00
Michael vanderKamp
556a2d692b Add a VimuxOpenRunner command 2020-01-12 16:59:05 -06:00
Michael vanderKamp
3fdafcfd60 Add VimuxOpenExtraArgs option 2020-01-12 14:13:17 -06:00
lyuts
9f81329f60 Wrap tmux executable detection in a helper function.
Function encapsulates executable detection which is needed at vim
startup for checking tmux availability and during actual command
running.
2017-07-09 23:25:32 -07:00
lyuts
0a560ba419 Check tmux binary availability at startup.
Updated the plugin to:
- let override the location of tmux executable.
- check tmux executable availability.
2017-07-09 23:25:16 -07:00
lingceng
1b847e6d6a Fix #57 Escape character "`" before send command 2017-01-09 18:58:14 +08:00
everbot
770ae77092 Fix #133: escape backslash 2015-08-31 20:43:17 +09:30
Ben Mills
bc11e401f1 Merge pull request #120 from bergman/master
VimuxRunCommandInDir: run in subshell
2015-08-25 10:27:55 -07:00
Joakim Bergman
8c332d9919 VimuxRunCommandInDir: run in subshell
Fixes a problem where the directory is not restored if the command exits
with a non-zero code.
2015-08-24 10:27:19 +02:00
Pete Yandell
863e813928 Allow configuring which tmux binary to use.
This is mostly useful for supporting tmate, which is a fork of tmux that
uses a different command name.
2015-08-10 17:28:00 +10:00
Pawel Palucki
70e16b73f5 escape '$' before sending to tmux 2015-02-11 18:58:40 +01:00
Hendrik Purmann
7b655a7b5c Going back to formerly active directory after running command 2014-09-21 21:08:54 +02:00
Hendrik Purmann
01c0679223 Added VimuxRunCommandInDir + doc 2014-09-21 02:33:49 +02:00
Melissa Xie
d21337e01a Check for a predefined command for prompt before executing
VimuxPromptCommand was accepting 1 or more arguments instead of 0 or more. Vim
will complain about this despite nargs being set.
2014-09-03 12:22:57 -04:00
Matthias Bilger
a772fce3e2 Removed Debug Output
Removed debug output of command which was still in there
2014-08-19 10:02:25 +02:00