-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expand :Focus :.Spawn
into what will actually be called
#270
Comments
I think that would be fine, although it's starting to get convoluted. |
This diff got Ideas? diff --git a/autoload/dispatch.vim b/autoload/dispatch.vim
index 90cbfe2..efb528e 100644
--- a/autoload/dispatch.vim
+++ b/autoload/dispatch.vim
@@ -949,6 +949,10 @@ function! dispatch#focus_command(bang, args, count, ...) abort
let args = dispatch#focus(line(a:args[1]))[0]
elseif args =~# '^:\d\+Dispatch$'
let args = dispatch#focus(+matchstr(a:args, '\d\+'))[0]
+ elseif args =~# '^:[.$]Spawn$'
+ let args = dispatch#focus(line(a:args[1]))[0]
+ elseif args =~# '^:\d\+Spawn`$'
+ let args = dispatch#focus(+matchstr(a:args, '\d\+'))[0]
elseif args =~# '^--\S\@!' && !has_key(opts, 'compiler')
let args = matchstr(args, '\s\+\zs.*')
if empty(args) |
I think what you want to do, effectively, is prepend Note that I retooled the existing |
Oh, you'll actually need |
I use
:.Spawn
to run the current test in a new window and automatically focus it.:Focus :.Dispatch
expands:.Dispatch
before setting the global focus to it, I'd expect:Focus :.Spawn
to do the same.If we collectively want this, I'd happily submit a PR if I can be put into the right direction.
The text was updated successfully, but these errors were encountered: