Skip to content

Commit

Permalink
Add completion for some common built-in commands.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kenny Pitt committed Oct 6, 2014
1 parent 16ebfbf commit 99562f4
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 2 deletions.
52 changes: 51 additions & 1 deletion config.json
Expand Up @@ -23,11 +23,61 @@
trycf: "try {\n\t${2}\n} catch [${1:Exception}] {\n} finally {\n}"
},
internal: true
},
"Tools:Complete:Builtin": {
scriptUrl: "/default/command/builtin_completer.js",
builtins: [
"Get-ChildItem",
"Add-Content",
"Get-Content",
"Set-Content",
"Get-Credential",
"Copy-Item",
"Get-Item",
"Move-Item",
"New-Item",
"Remove-Item",
"Rename-Item",
"Set-Item",
"Group-Object",
"New-Object",
"Select-Object",
"Sort-Object",
"Where-Object",
"Join-Path",
"Split-Path",
"Test-Path",
"Get-Process",
"Start-Process",
"Stop-Process",
"Wait-Process",
"Add-Type",
"Format-List",
"Format-Table",
"Format-Wide",
"Invoke-Command",
"Invoke-Item",
"Out-File",
"Out-GridView",
"Out-Null",
"Out-String",
"Read-Host",
"Select-String",
"Write-Debug",
"Write-Error",
"Write-Host",
"Write-Output",
"Write-Progress",
"Write-Verbose",
"Write-Warning"
],
internal: true
}
},
handlers: {
complete: [
"Tools:Complete:Snippet"
"Tools:Complete:Snippet",
"Tools:Complete:Builtin"
]
}
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "PowerShell Mode",
"uri": "gh:kpitt/zed-powershell-mode",
"version": "0.2",
"version": "0.3",
"description": "Windows PowerShell mode for Zed",
"files": []
}

0 comments on commit 99562f4

Please sign in to comment.