MetaGo 为以键盘为中心的用户在 vscode 中提供快速的 Cursor 移动/选择功能
First of all, Metago is a tool made for myself, it comes from the voice in my heartas a programmer. Metago tries its best to be the coolest keyboard(mouseless) focused navigation tool in vscode. Metago tries to make your keyboard⌨ to you as meaningful as a kitchen knife to a master chef.
Metago as a free tool, currently is maintained and developed by me in my spare time⏳, if you think has ever saved you time, boosted your efficiency, or even indispensable like some of our users, please support me
Give me a github⭐, or even sponsor me at github
quotes from users:
This boosts my performance so much since It’s a trouble for me to use VIM (I’m leftie :( )
probably the best tool for keyboard driven navigation bar none (better than vim), includes bookmarks
MetaGo is a way to move your cursor to a position quickly and without using your mouse/trackpad.
Oh, man.. I have a feeling that after that I'm going to feel crippled without it. This is fantastic.
and MORE from you...
MetaGo provides fast cursor movement/selection/delete for keyboard focused users:
metaJump is one part of the tool set MetaGo, with the goal to do cursor moving/selecting/deleting by showing decorators on possible target-locations. (detail document of MetaJump)
vsCode's default select current line command(Ctrl+l) selects current line and puts the cursor at the next line's start position.
we create our own to extend/shrink the selection of the current line:
extend/shrink selections work at the selection's active end(where cursor flashing), if you want to extend/shrink at the selection's anchor end, use Alt+a to alternate selection's anchor with active at first.
note: Ctrl+o triggers open file by default, and it triggers extend line selection above only when there is selection in active editor.
if you want to select line up, you should press Ctrl+l to select current line and then press Ctrl+o to extend line selection above.
by default selectLineUp command is configured as:
{
"command": "metaGo.selectLineUp",
"key": "ctrl+o",
"when": "editorTextFocus && editorHasSelection"
}you could assign a shortcut key not collision with default vscode ones, just remove the editorHasSelection condition, so it works even with no selection in editor.
we use ctrl+l to select current line, then ctrl+l again to extend current selection below, then ctrl+o to shrink current selection above, then alt+a to alternate the current selection's active end with anchor end, then ctrl+o to extend current selection above, then ctrl+alt+/ to add another cursor, and ctrl+l to select current line, ctrl+l again to extend selection below, then alt+a to alternate selection's active with anchor, then ctrl+o to extend selection above.
With the two selections, you could then delete or copy...
commands to select content inside a pair of separators: '(',')'; '[',']'; '{','}';''; '>', 'Alt+Shift+p: I want to select content between a pair of chars. 2. type the start character of the pair. i.e. '(', '[', '{', '"'... or the specific regex key(i.e. 't' for html/xml tag)
Note: Alt+Ctrl+p to selection both the content and the pair of separators.
it supports multiple cursors/selections
below is the default surrounding-pairs config, it support regex:
"metaGo.surroundPairs": {
"type": "object",
"default":[["{","}"],["(",")"],["[","]"],[""],["/])(?!area[\\s>])(?!base[\\s>])(?!col[\\s>])(?!command[\\s>])(?!embed[\\s>])(?!hr[\\s>])(?!img[\\s>])(?!input[\\s>])(?!keygen[\\s>])(?!link[\\s>])(?!meta[\\s>])(?!param[\\s>])(?!source[\\s>])(?!track[\\s>])(?!wbr[\\s>])((?:.(?!/>))+?)(?/ms", "//", "t"]]
},
the last one is and regex, it is used for html tag: this array has 3 items: start html tag regex, end html tag regex, trigger key. the default trigger key is the start pair, if start pair is only one char. regex is the content inside '/' and '/', is defined by javascript regex grammar you could config your own regex pairs the regex pairs support all regex flags, which means it support multiline tag.
html elements is defined in https://www.w3.org/TR/2011/WD-html-markup-20110405/syntax.html#syntax-elements
we use alt+shift+p ( to select content inside the '(' and ')', then alt+shift+p { to extend selection, then alt+shift+p { to extend further, then alt+ctrl+p { to include then pair('{'and '}') in the selection, then alt+ctrl+p to extend the selection further with the pair('{' and '}') included.
note: the hotkey in gif has been changed
we use alt+shift+p t to select content inside html tag, alt+ctrl+p to select both the content and the tag pairs.
if the cursor is in the start or end tag, alt+shift+p t would select both the tag and the content.
note: hotkeys in gif have been changed
in this demo, we alt+p ' " to change a pair of ' to ", and then goto another place use alt+p [ ( to change a pair to '[]' to '()'. Then we switch to another html file, where we alt+p t to change a surrounding pair of 'h1' to 'h2', and go to another place, to use alt+p t to change another pair of tag from 'h3' to 'h1', note: here is a multi-line start-tag, we use alt+shift+// to shrink the selection first and then modify the pair of tag.
default command always put cursor before the bracket, we want it after start bracket and before end bracket.
default command always search down for the end bracket if the cursor is not at bracket, we want it search up.
it's very easy to trigger metago command: type F1, xx.... xx` is a prefix for search metago commands
[➭Feature Summary⮵](https://gi
暂无开放 Issues,或尚未同步最近议题。