-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Develop
- Loading branch information
Showing
8 changed files
with
120 additions
and
204 deletions.
There are no files selected for viewing
125 changes: 66 additions & 59 deletions
125
PoshCodex/Docs/Write-Completion.md → PoshCodex/Docs/Enter-CompletionKeybind.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,66 @@ | ||
--- | ||
external help file: PoshCodex-help.xml | ||
Module Name: PoshCodex | ||
online version: | ||
schema: 2.0.0 | ||
--- | ||
|
||
# Write-Completion | ||
|
||
## SYNOPSIS | ||
|
||
This function is called when the keybind is hit, and should only be called by hitting the keybind, NOT manually because that would defeat the purpose of completion (since this function reads the current buffer and tries to generate the completion). | ||
|
||
## SYNTAX | ||
|
||
``` | ||
Write-Completion [-ProgressAction <ActionPreference>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
Check help for the module to learn more. | ||
|
||
PS> Get-Help PoshCodex | ||
|
||
## EXAMPLES | ||
|
||
## PARAMETERS | ||
|
||
### -ProgressAction | ||
|
||
{{ Fill ProgressAction Description }} | ||
|
||
```yaml | ||
Type: ActionPreference | ||
Parameter Sets: (All) | ||
Aliases: proga | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
### None (reads current buffer) | ||
## OUTPUTS | ||
### None (writes to console) | ||
## NOTES | ||
## RELATED LINKS | ||
--- | ||
external help file: PoshCodex-help.xml | ||
Module Name: PoshCodex | ||
online version: | ||
schema: 2.0.0 | ||
--- | ||
|
||
# Enter-CompletionKeybind | ||
|
||
## SYNOPSIS | ||
|
||
{{ Change the completion keybind for PoshCodex by reading user input. }} | ||
|
||
## SYNTAX | ||
|
||
``` | ||
Enter-CompletionKeybind [-ProgressAction <ActionPreference>] [<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
{{ }} | ||
|
||
## EXAMPLES | ||
|
||
### Example 1 | ||
|
||
```powershell | ||
PS C:\> {{ Add example code here }} | ||
``` | ||
|
||
{{ Add example description here }} | ||
|
||
## PARAMETERS | ||
|
||
### -ProgressAction | ||
|
||
{{ Fill ProgressAction Description }} | ||
|
||
```yaml | ||
Type: ActionPreference | ||
Parameter Sets: (All) | ||
Aliases: proga | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
### None | ||
## OUTPUTS | ||
### System.Object | ||
## NOTES | ||
## RELATED LINKS |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
## Set necessary environment variables: | ||
|
||
[System.Environment]::SetEnvironmentVariable('OLLAMA_HOST', 'http://localhost:11434', [System.EnvironmentVariableTarget]::User) | ||
[System.Environment]::SetEnvironmentVariable('OLLAMA_MODEL', 'rishi255/posh_codex_model', [System.EnvironmentVariableTarget]::User) | ||
[Environment]::SetEnvironmentVariable('OLLAMA_HOST', 'http://localhost:11434', [System.EnvironmentVariableTarget]::User) | ||
[Environment]::SetEnvironmentVariable('OLLAMA_MODEL', 'rishi255/posh_codex_model', [System.EnvironmentVariableTarget]::User) | ||
|
||
|
||
## Set default keybind: | ||
|
||
$default_keybind = 'Ctrl+Shift+O' | ||
Set-CompletionKeybind $null $default_keybind; | ||
[Environment]::SetEnvironmentVariable('AUTOCOMPLETE_KEYBIND', $default_keybind, [System.EnvironmentVariableTarget]::User) | ||
Set-CompletionKeybind $null $default_keybind; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.