Skip to content

Commit

Permalink
feat(completions): update git
Browse files Browse the repository at this point in the history
  • Loading branch information
abgox committed Dec 13, 2024
1 parent f9ff5e4 commit 35e4630
Show file tree
Hide file tree
Showing 3 changed files with 362 additions and 85 deletions.
2 changes: 1 addition & 1 deletion completions/git/guid.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2d2649bc-a167-4753-9f85-42e42ce5e994
bff9b965-50be-4b70-aeb5-65554f7596b8
192 changes: 152 additions & 40 deletions completions/git/language/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -771,154 +771,206 @@
},
{
"name": "config",
"tip": "Retrieve and configure repository or global options.",
"tip": [
"Retrieve and configure repository or global options."
],
"next": [
{
"name": "user.name",
"tip": [
"Configure the username\n",
"Configure the username.\n",
"E: [--global] user.name xxx"
]
},
{
"name": "user.email",
"tip": [
"Configure the email\n",
"Configure the email.\n",
"E: [--global] user.email [email protected]"
]
},
{
"name": "core.editor",
"tip": [
"Configure the default editor"
"Configure the default editor."
],
"next": [
{
"name": "\"code --wait\"",
"tip": [
"Configure the default editor as vscode"
"Configure the default editor as vscode."
]
},
{
"name": "vim",
"tip": "Configure the default editor as vim"
"tip": [
"Configure the default editor as vim."
]
},
{
"name": "nvim",
"tip": "Configure the default editor as nvim"
"tip": [
"Configure the default editor as nvim."
]
},
{
"name": "notepad",
"tip": "Configure the default editor as Notepad (Microsoft Notepad)"
"tip": [
"Configure the default editor as Notepad (Microsoft Notepad)."
]
}
]
},
{
"name": "https.proxy",
"tip": [
"Configure the Git https proxy.\n",
"E: [--global] https.proxy 127.0.0.1:10810 --- Set proxy\n",
" [--global] --unset https.proxy --- Unset proxy"
]
},
{
"name": "commit.template",
"tip": [
"Configure the default commit template\n",
"Configure the default commit template.\n",
"E: [--global] commit.template ~/.gitmessage"
]
},
{
"name": "color.ui",
"tip": "Configure command auto-coloring.",
"tip": [
"Configure the command auto-coloring."
],
"next": [
{
"name": "true",
"tip": "Enable command auto-coloring configuration."
"tip": [
"Enable command auto-coloring configuration."
]
},
{
"name": "false",
"tip": "Disable command auto-coloring configuration."
"tip": [
"Disable command auto-coloring configuration."
]
}
]
},
{
"name": "color.status",
"tip": "Configure auto-coloring for the status command.",
"tip": [
"Configure the auto-coloring for the status command."
],
"next": [
{
"name": "auto",
"tip": "Default value. Automatically determine whether to enable color display based on terminal support."
"tip": [
"Default value.\n",
"Automatically determine whether to enable color display based on terminal support."
]
},
{
"name": "always",
"tip": "Always enable color display, regardless of terminal support."
"tip": [
"Always enable color display, regardless of terminal support."
]
},
{
"name": "never",
"tip": "Never enable color display, even if the terminal supports it."
"tip": [
"Never enable color display, even if the terminal supports it."
]
}
]
},
{
"name": "color.diff",
"tip": "Configure auto-coloring for the diff command.",
"tip": [
"Configure the auto-coloring for the diff command."
],
"next": [
{
"name": "auto",
"tip": "Default value. Automatically determine whether to enable color display based on terminal support."
"tip": [
"Default value.\n",
"Automatically determine whether to enable color display based on terminal support."
]
},
{
"name": "always",
"tip": "Always enable color display, regardless of terminal support."
"tip": [
"Always enable color display, regardless of terminal support."
]
},
{
"name": "never",
"tip": "Never enable color display, even if the terminal supports it."
"tip": [
"Never enable color display, even if the terminal supports it."
]
}
]
},
{
"name": "color.branch",
"tip": "Configure auto-coloring for the branch command.",
"tip": [
"Configure the auto-coloring for the branch command."
],
"next": [
{
"name": "auto",
"tip": "Default value. Automatically determine whether to enable color display based on terminal support."
"tip": [
"Default value.\n",
"Automatically determine whether to enable color display based on terminal support."
]
},
{
"name": "always",
"tip": "Always enable color display, regardless of terminal support."
"tip": [
"Always enable color display, regardless of terminal support."
]
},
{
"name": "never",
"tip": "Never enable color display, even if the terminal supports it."
"tip": [
"Never enable color display, even if the terminal supports it."
]
}
]
},
{
"name": "color.interactive",
"tip": "Configure auto-coloring for the -i (interactive) command.",
"tip": [
"Configure the auto-coloring for the -i (interactive) command."
],
"next": [
{
"name": "auto",
"tip": "Default value. Automatically determine whether to enable color display based on terminal support."
"tip": [
"Default value.\n",
"Automatically determine whether to enable color display based on terminal support."
]
},
{
"name": "always",
"tip": "Always enable color display, regardless of terminal support."
"tip": [
"Always enable color display, regardless of terminal support."
]
},
{
"name": "never",
"tip": "Never enable color display, even if the terminal supports it."
"tip": [
"Never enable color display, even if the terminal supports it."
]
}
]
},
{
"name": "https.proxy",
"tip": [
"Set the Git https proxy\n",
"E: [--global] https.proxy 127.0.0.1:10810 --- Set proxy\n",
" [--global] --unset https.proxy --- Unset proxy"
]
}
],
"options": [
{
"name": "--global",
"tip": "Perform global settings."
"tip": [
"Perform global settings."
]
},
{
"name": "-e",
Expand All @@ -932,15 +984,75 @@
},
{
"name": "--unset",
"symbol": "WriteSpaceTab",
"tip": [
"Remove config\n",
"Remove config.\n",
"E: [--global] --unset user.name"
],
"next": [
{
"name": "user.name",
"tip": [
"Remove config --- the username."
]
},
{
"name": "user.email",
"tip": [
"Remove config --- the email."
]
},
{
"name": "core.editor",
"tip": [
"Remove config --- the default editor."
]
},
{
"name": "https.proxy",
"tip": [
"Remove config --- the Git https proxy."
]
},
{
"name": "commit.template",
"tip": [
"Remove config --- the default commit template."
]
},
{
"name": "color.ui",
"tip": [
"Remove config --- the command auto-coloring."
]
},
{
"name": "color.status",
"tip": [
"Remove config --- the auto-coloring for the status command."
]
},
{
"name": "color.diff",
"tip": [
"Remove config --- the auto-coloring for the diff command."
]
},
{
"name": "color.branch",
"tip": [
"Remove config --- the auto-coloring for the branch command."
]
},
{
"name": "color.interactive",
"tip": [
"Remove config --- the auto-coloring for the -i (interactive) command."
]
}
]
},
{
"name": "--get",
"symbol": "WriteSpaceTab",
"tip": [
"Get config value (Usually can be omitted)\n",
"E: [--global] [--get] user.name"
Expand Down
Loading

0 comments on commit 35e4630

Please sign in to comment.