chore(vscode): set keybinding default to vscode-style. (#302)

sweep/improve-logging-information
Zhiming Ma 2023-07-17 12:58:42 +08:00 committed by GitHub
parent 3c8455077e
commit ec73728825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 12 deletions

View File

@ -2,8 +2,7 @@
## Basic Usage
Tabby will show inline suggestions when you stop typing.
You can accept press `Tab` to accept by line, `Ctrl +Tab` key to accept full suggestion, or `Ctrl + RightArrow` to accept single word.
Tabby will show inline suggestions when you stop typing, and you can accept suggestions by just pressing the `Tab` key.
![Demo](https://tabbyml.github.io/tabby/img/demo.gif)
@ -15,7 +14,7 @@ When multiple choices are available, you can cycle through them by pressing `Alt
You can select a keybinding profile in the [settings](command:tabby.openSettings), or customize your own [keybindings](command:tabby.openKeybindings).
| | Accept Full Completion | Accept Next Word | Accept Next Line |
| -------------: | :--------------------: | :---------------: | :--------------: |
| _tabby-style_ | Ctrl + Tab | Ctrl + RightArrow | Tab |
| _vscode-style_ | Tab | Ctrl + RightArrow | - |
| | Next Line | Full Completion | Next Word |
| :--------------------------------- | :-------- | :-------------- | :---------------- |
| _vscode-style_ | - | Tab | Ctrl + RightArrow |
| _tabby-style_<br/>_(experimental)_ | Tab | Ctrl + Tab | Ctrl + RightArrow |

View File

@ -124,11 +124,11 @@
"tabby.keybindings": {
"type": "string",
"enum": [
"tabby-style",
"vscode-style"
"vscode-style",
"tabby-style"
],
"default": "tabby-style",
"markdownDescription": "Select keybinding profile to accept current inline completion. \n | | Accept Full Completion | Accept Next Word | Accept Next Line | \n |---:|:--:|:--:|:--:| \n | _tabby-style_ | Ctrl + Tab | Ctrl + RightArrow | Tab | \n | _vscode-style_ | Tab | Ctrl + RightArrow | - | \n "
"default": "vscode-style",
"markdownDescription": "Select keybinding profile to accept current inline completion. \n | | Next Line | Full Completion | Next Word | \n |:---:|:---:|:---:|:---:| \n | _vscode-style_ | - | Tab | Ctrl + RightArrow | \n | _tabby-style_ <br/> _(experimental)_ | Tab | Ctrl + Tab | Ctrl + RightArrow | \n"
},
"tabby.usage.anonymousUsageTracking": {
"type": "boolean",

View File

@ -28,8 +28,6 @@ export function agent(): TabbyAgent {
export async function createAgentInstance(context: ExtensionContext): Promise<TabbyAgent> {
if (!instance) {
// NOTE: env.appHost will be "desktop" when running target "Run Web Extension in VS Code"
// To test data store in the web extension, run target "Run Web Extension in Browser"
const extensionDataStore: DataStore = {
data: {},
load: async function () {