Title: Better way to handle completion options · Issue #18963 · PowerShell/PowerShell · GitHub
Open Graph Title: Better way to handle completion options · Issue #18963 · PowerShell/PowerShell
X Title: Better way to handle completion options · Issue #18963 · PowerShell/PowerShell
Description: Summary of the new feature / enhancement There are several user requests to provide tab completion options for various things. Examples include: #16747 #3118 #10064 #14337 Tab completion already includes a couple of options like [bool] R...
Open Graph Description: Summary of the new feature / enhancement There are several user requests to provide tab completion options for various things. Examples include: #16747 #3118 #10064 #14337 Tab completion already in...
X Description: Summary of the new feature / enhancement There are several user requests to provide tab completion options for various things. Examples include: #16747 #3118 #10064 #14337 Tab completion already in...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/18963
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Better way to handle completion options","articleBody":"### Summary of the new feature / enhancement\n\nThere are several user requests to provide tab completion options for various things. Examples include:\r\nhttps://github.com/PowerShell/PowerShell/issues/16747\r\nhttps://github.com/PowerShell/PowerShell/issues/3118\r\nhttps://github.com/PowerShell/PowerShell/issues/10064\r\nhttps://github.com/PowerShell/PowerShell/issues/14337\r\n\r\nTab completion already includes a couple of options like `[bool] RelativePaths` and `[bool]IgnoreHiddenShares` but the current way to set such options is hard to discover and inconvenient to change on the fly. \r\nFor people that don't know, you need to modify the TabExpansion2 so both `CompleteInput` method calls use a hashtable with all the desired options set. There is an `options` parameter but if you try to set the default value there it gets ignored when you call TabExpansion2 with your tab key.\n\n### Proposed technical implementation details (optional)\n\nAdd a new variable similar to `$PSStyle` that contains all tabexpansion options, it could be called `$PSTabExpansionOptions`. \r\nAnother option would be to add 2 commands: `Get-TabExpansionOption` and `Set-TabExpansionOption`.","author":{"url":"https://github.com/MartinGC94","@type":"Person","name":"MartinGC94"},"datePublished":"2023-01-17T22:49:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/18963/PowerShell/issues/18963"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:495e93f4-2c84-4b99-44e8-9b41dee4df0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AA0E:326E71:5DA927:7E3069:6A580A51 |
| html-safe-nonce | 100b3aec5b228aeb0801961bb2d6163338758d36b49b71669bcd010b2002198f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQTBFOjMyNkU3MTo1REE5Mjc6N0UzMDY5OjZBNTgwQTUxIiwidmlzaXRvcl9pZCI6IjI5MjI4MzA3MjY4MTM5NzcxNjkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 35c0baaea26b50b57799270ff53b7afabc081877ac5716cdb06e2a9ec8359450 |
| hovercard-subject-tag | issue:1537133657 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PowerShell/PowerShell/18963/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a0880cf0966ce8c0471a34140aade5ab8302857e26f986be4b40aa1692141923/PowerShell/PowerShell/issues/18963 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a0880cf0966ce8c0471a34140aade5ab8302857e26f986be4b40aa1692141923/PowerShell/PowerShell/issues/18963 |
| og:image:alt | Summary of the new feature / enhancement There are several user requests to provide tab completion options for various things. Examples include: #16747 #3118 #10064 #14337 Tab completion already in... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MartinGC94 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 49c8c15fabcbf356d607a90ca115c13b273e42ff8b74155de050fd229a9b0121 |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fb1f684e7a833eb1b2d01d39875a2b52cb4fe9b |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width