Title: Feature Request: include language keywords in command completion results · Issue #10221 · PowerShell/PowerShell · GitHub
Open Graph Title: Feature Request: include language keywords in command completion results · Issue #10221 · PowerShell/PowerShell
X Title: Feature Request: include language keywords in command completion results · Issue #10221 · PowerShell/PowerShell
Description: Summary of the new feature/enhancement Include language keywords, such as 'continue', 'switch', 'foreach', etc... in with the command completions offered by intellisense/tab completion. Proposed technical implementation details (optional...
Open Graph Description: Summary of the new feature/enhancement Include language keywords, such as 'continue', 'switch', 'foreach', etc... in with the command completions offered by intellisense/tab completion. Proposed te...
X Description: Summary of the new feature/enhancement Include language keywords, such as 'continue', 'switch', 'foreach', etc... in with the command completions offered by intellisense/tab...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10221
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Feature Request: include language keywords in command completion results","articleBody":"# Summary of the new feature/enhancement\r\n\r\nInclude language keywords, such as 'continue', 'switch', 'foreach', etc... in with the command completions offered by intellisense/tab completion.\r\n\r\n# Proposed technical implementation details (optional)\r\n\r\nI don't yet know if its possible to restrict the keywords when the insertion point is not the first command in a pipeline, but there is already 1 case in the completion logic that has decided that `foreach` should not have an ampersand `&` (invoke) operator inserted before it (its actually in the completions because its an alias for `ForEach-Object`) because its more likely what the user wanted, but none of the other keywords get this treatment. Including the keywords would actually eliminate this special case.\r\n\r\nI am sure somewhere there is a complete list of keywords in the code, I'm just not sure if there is anything to use as a tooltip text readily available.\r\n\r\nI may experiment on this while working the other bugs out of the completion code.","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2019-07-24T17:43:05Z","url":"https://github.com/PowerShell/PowerShell/issues/10221"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:480aa79d-824e-9db4-62d2-47b1d746034f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A8F8:3080FC:D7C46:12A5C6:6AFDAB4E |
| html-safe-nonce | 0a5846c66fd517650f88db01c67b7ed1bae08006cd4e4542d6812445d541b7e2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOEY4OjMwODBGQzpEN0M0NjoxMkE1QzY6NkFGREFCNEUiLCJ2aXNpdG9yX2lkIjoiMzY1MTI4NTEyNzU3ODYyNjg5NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 1d4e5181acbbe235ff4181a30cd442b6d4a2fdc5b5da05c87820d3ed1cfd177a |
| hovercard-subject-tag | issue:472412278 |
| 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/10221/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b42d18862571a264171be515cffeff75b9c86683e6a6d06c77fb6c5051b5ddd/PowerShell/PowerShell/issues/10221 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b42d18862571a264171be515cffeff75b9c86683e6a6d06c77fb6c5051b5ddd/PowerShell/PowerShell/issues/10221 |
| og:image:alt | Summary of the new feature/enhancement Include language keywords, such as 'continue', 'switch', 'foreach', etc... in with the command completions offered by intellisense/tab completion. Proposed te... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msftrncs |
| hostname | github.com |
| expected-hostname | github.com |
| None | bc86424ef34a73b386237872800e922d149d65ba907f63d6f150a2dcb8433bea |
| 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 | 0ddf53eb35c87f1f8df13dbf75c3bdadbfc6e969 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width