fixes vsc-golang keymap
This commit is contained in:
parent
afb8e3271a
commit
203513ec0e
|
@ -53,31 +53,31 @@ vscgo.COLOR_STEPOUT = vscgo.COLOR_STEPOUT or vscgo.BLUEGRAY
|
||||||
-- AND NOW FOR SOMETHING DIFFERENT: THE REAL MEAT --
|
-- AND NOW FOR SOMETHING DIFFERENT: THE REAL MEAT --
|
||||||
|
|
||||||
function vscgo.debug_stop(key)
|
function vscgo.debug_stop(key)
|
||||||
mb.tap(key, keybow.F5, keybow.LEFT_SHIFT)
|
mb.tap(keybow.F5, keybow.LEFT_SHIFT)
|
||||||
end
|
end
|
||||||
|
|
||||||
function vscgo.debug_restart(key)
|
function vscgo.debug_restart(key)
|
||||||
mb.tap(key, keybow.F5, keybow.LEFT_SHIFT, keybow.LEFT_CTRL)
|
mb.tap(keybow.F5, keybow.LEFT_SHIFT, keybow.LEFT_CTRL)
|
||||||
end
|
end
|
||||||
|
|
||||||
function vscgo.debug_continue(key)
|
function vscgo.debug_continue(key)
|
||||||
mb.tap(key, keybow.F5)
|
mb.tap(keybow.F5)
|
||||||
end
|
end
|
||||||
|
|
||||||
function vscgo.debug_stepover(key)
|
function vscgo.debug_stepover(key)
|
||||||
mb.tap(key, keybow.F10)
|
mb.tap(keybow.F10)
|
||||||
end
|
end
|
||||||
|
|
||||||
function vscgo.debug_stepinto(key)
|
function vscgo.debug_stepinto(key)
|
||||||
mb.tap(key, keybow.F11)
|
mb.tap(keybow.F11)
|
||||||
end
|
end
|
||||||
|
|
||||||
function vscgo.debug_stepout(key)
|
function vscgo.debug_stepout(key)
|
||||||
mb.tap(key, keybow.F11, keybow.LEFT_SHIFT)
|
mb.tap(keybow.F11, keybow.LEFT_SHIFT)
|
||||||
end
|
end
|
||||||
|
|
||||||
function vscgo.go_test_package(key)
|
function vscgo.go_test_package(key)
|
||||||
mb.tap(key, "P", keybow.LEFT_SHIFT, keybow.LEFT_CTRL)
|
mb.tap("P", keybow.LEFT_SHIFT, keybow.LEFT_CTRL)
|
||||||
keybow.sleep(250)
|
keybow.sleep(250)
|
||||||
keybow.text("go test package")
|
keybow.text("go test package")
|
||||||
keybow.tap_enter()
|
keybow.tap_enter()
|
||||||
|
|
|
@ -30,7 +30,9 @@ function mb.tap(key, ...)
|
||||||
mb.tap_times(key, 1, ...)
|
mb.tap_times(key, 1, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Taps the same key multiple times...
|
-- Taps the same key multiple times, optionally with modifier keys; however,
|
||||||
|
-- for optimization, these modifiers are only pressed once before the tap
|
||||||
|
-- sequence, and only released once after all taps.
|
||||||
function mb.tap_times(key, times, ...)
|
function mb.tap_times(key, times, ...)
|
||||||
for modifier_argno = 1, select("#", ...) do
|
for modifier_argno = 1, select("#", ...) do
|
||||||
local modifier = select(modifier_argno, ...)
|
local modifier = select(modifier_argno, ...)
|
||||||
|
|
Loading…
Reference in New Issue