Commit Graph

89 Commits (master)

Author SHA1 Message Date
spike a62c16c8c3 add a mini sleep for slow to start shells (fish omf) 2 years ago
spike 3c0a1708dc fix pane height parameters 2 years ago
Michael van der Kamp 2344b96fed Add a guard against queries matching current pane 2 years ago
Michael van der Kamp 076e13b77c Directly return empty string when not using existing runner
- This should have been happening anyway due to a later conditional,
      but may not if tmux changed its behaviour.
2 years ago
Michael van der Kamp 740320b798
Address #212 (#213) 2 years ago
Michael van der Kamp 3daa0e91f0
Support tmux's target-pane and target-window syntax for finding an existing runner (#210) 2 years ago
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.
3 years ago
Matthias Bilger 031cc6208e
Merge pull request #202 from mvanderkamp/issue_201
Use same height and orientation arguments for opening and toggling panes
3 years ago
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.
3 years ago
Michael van der Kamp 55a470dc0d Use same height and orientation arguments for opening and toggling panes 3 years ago
Michael van der Kamp a1650d5f9b
Use abort for all function declarations (#196)
See:
`:help func-abort`
`:help except-compat`
3 years ago
John Bredall ee0dfae330
Fix VimuxTogglePane (#195) 3 years ago
jaspertandy 59b1d28f80 Needs no argument rather than a blank argument 3 years ago
jaspertandy 784b2834c7 Preference to allow up-arrow 3 years ago
Michael van der Kamp 54d24d1694 Add an option to autoclose the runner 3 years ago
Gerhard Hellmann 5b1791673c
Add option to expand VimuxPromptCommand arguments (#166)
Co-authored-by: Gerhard Siegesmund <gerhard.siegesmund@btd.de>
3 years ago
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.
3 years ago
Caleb Maclennan 29c5b39545
Merge branch 'master' into initialize_settings 3 years ago
Caleb Maclennan 992d525ef9
feat: Make s:tmuxExec (was _VimuxTmux) public VimuxTmux 3 years ago
Caleb Maclennan 566833e291
style: Format each function as a paragraph with no blanks 3 years ago
Caleb Maclennan 43681e9f91
refactor: Simplify script-local private function names 3 years ago
Caleb Maclennan 601749152e
feat: Make s:VimuxOption (was _VimuxOption) public VimuxOption 3 years ago
Michael van der Kamp b13568ea1b
Support buffer-local variants of options 3 years ago
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
3 years ago
Caleb Maclennan 5f999f4dc4
Fix variable mismatch looking for previous command 3 years ago
Caleb Maclennan 3a1aad8752
style: Normalize indentation and other whitespace 3 years ago
Caleb Maclennan a2ab8880a1
Allow all commands to be used in chains (#182)
Allow all commands to be used in chains
3 years ago
Caleb Maclennan c212352f93
Use robust operators 3 years ago
Caleb Maclennan f589e21472
Use the full option name 3 years ago
Caleb Maclennan a5a17b8e32
Prefer single quoted strings 3 years ago
Caleb Maclennan e6fb662bf1
Replace underscore convention with proper script-local scopes 3 years ago
Matthias Bilger af602e362d Allow setting of VimuxRunner name to reuse session 3 years ago
Thales Mello 57bbdc4478
Enable tab autocompletion on VimuxPromptOption (#142) 3 years ago
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.
3 years ago
Caleb Maclennan 71f28c8296
Merge pull request #174 from mvanderkamp/split-extra-args 3 years ago
Caleb Maclennan 48b541b1a4
Avoid useless space in default empty argument string 3 years ago
Philipp Moers ef5622f225
Add VimuxClearTerminalScreen (#178) 3 years ago
Caleb Maclennan 7f15726b07
Merge pull request #155 from lyuts/check_tmux_binary 3 years ago
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.
3 years ago
Giuseppe Rota 46377b8ab9
Escape the text sent to tmux
Closes #76
3 years ago
Eugene Yunak 1dec7164ca
Use IDs instead of indexes to identify windows and panes (#110)
...because indexes can change while IDs are constant and unique.
3 years ago
Michael vanderKamp 556a2d692b Add a VimuxOpenRunner command 4 years ago
Michael vanderKamp 3fdafcfd60 Add VimuxOpenExtraArgs option 4 years ago
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.
7 years ago
lyuts 0a560ba419 Check tmux binary availability at startup.
Updated the plugin to:
- let override the location of tmux executable.
- check tmux executable availability.
7 years ago
lingceng 1b847e6d6a Fix #57 Escape character "`" before send command 7 years ago
everbot 770ae77092 Fix #133: escape backslash 9 years ago
Ben Mills bc11e401f1 Merge pull request #120 from bergman/master
VimuxRunCommandInDir: run in subshell
9 years ago
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.
9 years ago
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.
9 years ago