add snonyms for gt/T

This commit is contained in:
rebornix 2016-09-09 10:33:58 -07:00
parent c0a986f991
commit d56cb2f402
4 changed files with 21 additions and 4 deletions

View File

@ -525,7 +525,7 @@ Status | Command | Description | Note
Status | Command | Description | Note
---|--------|------------------|------------
:white_check_mark: | :tabn[ext] :1234: | Go to next tab page or tab page {count}. The first tab page has number one.
| {count}<C-PageDown>, {count}gt | Same as above
:white_check_mark: | {count}<C-PageDown>, {count}gt | Same as above
:white_check_mark: | :tabp[revious] :1234: | Go to the previous tab page. Wraps around from the first one to the last one.
:white_check_mark: | :tabN[ext] :1234: | Same as above
| {count}<C-PageUp>, {count}gT | Same as above

View File

@ -137,6 +137,16 @@
"command": "extension.vim_ctrl+t",
"when": "editorTextFocus && vim.useCtrlKeys"
},
{
"key": "ctrl+pagedown",
"command": "extension.vim_ctrl+pagedown",
"when": "editorTextFocus && vim.useCtrlKeys"
},
{
"key": "ctrl+pageup",
"command": "extension.vim_ctrl+pageup",
"when": "editorTextFocus && vim.useCtrlKeys"
},
{
"key": "left",
"command": "extension.vim_left",

View File

@ -2101,6 +2101,11 @@ class CommandTabNext extends BaseTabCommand {
}
}
@RegisterAction
class CommandCtrlPagedown extends CommandTabNext {
keys = ["<C-pagedown>"];
}
@RegisterAction
class CommandTabPrevious extends BaseTabCommand {
keys = ["g", "T"];
@ -2115,6 +2120,11 @@ class CommandTabPrevious extends BaseTabCommand {
}
}
@RegisterAction
class CommandCtrlPageup extends CommandTabPrevious {
keys = ["<C-pageup>"];
}
@RegisterAction
class MoveDownNonBlank extends BaseMovement {
keys = ["+"];

View File

@ -92,9 +92,6 @@ export function parseTabNewCommandArgs(args: string) : node.TabCommand {
* :tabc[lose][!] {count}. Close tab page {count}.
*/
export function parseTabCloseCommandArgs(args: string) : node.TabCommand {
if (args && args !== "" && args.startsWith("!")) {
}
return new node.TabCommand({
tab: node.Tab.Close,
count: parseCount(args)