Skip to content

Commit

Permalink
πŸ“ update tab-autocomplete documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sestinj committed Feb 1, 2024
1 parent d860ab6 commit 5677b3d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/docs/walkthroughs/tab-autocomplete.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,15 @@ This is just another object like the ones in the `"models"` array of `config.jso

### `tabAutocompleteOptions`

Empty for now. Let use know what you'd like access to!
This object allows you to customize the behavior of tab-autocomplete. The available options are:

- `useCopyBuffer`: Determines whether the copy buffer will be considered when constructing the prompt. (Boolean)
- `useSuffix`: Determines whether to use the file suffix in the prompt. (Boolean)
- `maxPromptTokens`: The maximum number of prompt tokens to use. A smaller number will yield faster completions, but less context. (Number)
- `debounceDelay`: The delay in milliseconds before triggering autocomplete after a keystroke. (Number)
- `maxSuffixPercentage`: The maximum percentage of the prompt that can be dedicated to the suffix. (Number)
- `prefixPercentage`: The percentage of the input that should be dedicated to the prefix. (Number)
- `template`: An optional template string to be used for autocomplete. It will be rendered with the Mustache templating language, and is passed the 'prefix' and 'suffix' variables. (String)

## Troubleshooting

Expand Down

0 comments on commit 5677b3d

Please sign in to comment.