Title: Provide a way to exclude cmdlets from some modules from completions in a concrete powershell session · Issue #16747 · PowerShell/PowerShell · GitHub
Open Graph Title: Provide a way to exclude cmdlets from some modules from completions in a concrete powershell session · Issue #16747 · PowerShell/PowerShell
X Title: Provide a way to exclude cmdlets from some modules from completions in a concrete powershell session · Issue #16747 · PowerShell/PowerShell
Description: Summary of the new feature / enhancement As a user I want to configure my powershell profile to exclude completion from certain modules that I'm not using on a given context. For example, as a developer when I'm on a powershell session a...
Open Graph Description: Summary of the new feature / enhancement As a user I want to configure my powershell profile to exclude completion from certain modules that I'm not using on a given context. For example, as a deve...
X Description: Summary of the new feature / enhancement As a user I want to configure my powershell profile to exclude completion from certain modules that I'm not using on a given context. For example, as a ...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/16747
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Provide a way to exclude cmdlets from some modules from completions in a concrete powershell session","articleBody":"### Summary of the new feature / enhancement\n\nAs a user I want to configure my powershell profile to exclude completion from certain modules that I'm not using on a given context. For example, as a developer when I'm on a powershell session and type `Remove-I` for (remove-item) the first result I get on autocompletion is `Remove-InitiatorId`. \r\n\r\nIn many scenarios like these, some commands that won't ever be used in this context lead to a poor experience where you need to either type more characters to disambiguate or tab through. \r\n\r\nIt's great that by default you can get commands from all installed modules for discoverability, but with the growing number of modules it becomes painful to use on a regular session.\r\n\r\nTo provide an analogy, this is similar to importing all namespaces by default on C#, each type is readily available, but searching through the types becomes much more problematic because they are way more irrelevant types in scope.\n\n### Proposed technical implementation details (optional)\n\nIdeally this would be either an allow list or a block list (possibly an allow list), where you can set your preferences for the session via a cmd-let to filter completions to the modules you've defined.\r\n\r\n`Set-CommandCompletion Microsoft.PowerShell.Utility, Microsoft.PowerShell.Management`\r\n\r\nThat will make only commands in those modules to be considered for completions and you can put this on your $Profile so that it happens every time you create a new session.","author":{"url":"https://github.com/javiercn","@type":"Person","name":"javiercn"},"datePublished":"2022-01-14T11:43:01.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/16747/PowerShell/issues/16747"}
| 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:1db50bf6-347e-4d18-b176-d9f2e5860e68 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8B32:13E480:15629B:1DDA87:6A583E2B |
| html-safe-nonce | 4c4bd246b959e682eb81c442f1ca463d9b67f93e6f2429b4a06b95287f4938e7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QjMyOjEzRTQ4MDoxNTYyOUI6MUREQTg3OjZBNTgzRTJCIiwidmlzaXRvcl9pZCI6IjUyOTQzNDA3MTkzNzY4NzUwNTEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7a114f1aa264e9435598f14c1c6491318ff88f45754eff9eee874ea03f570811 |
| hovercard-subject-tag | issue:1103517927 |
| 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/16747/issue_layout |
| twitter:image | https://opengraph.githubassets.com/47526d191bd9790e85a2934f0ef992b00f7a8ef3b5d0033f06d0ae1540fc3df0/PowerShell/PowerShell/issues/16747 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/47526d191bd9790e85a2934f0ef992b00f7a8ef3b5d0033f06d0ae1540fc3df0/PowerShell/PowerShell/issues/16747 |
| og:image:alt | Summary of the new feature / enhancement As a user I want to configure my powershell profile to exclude completion from certain modules that I'm not using on a given context. For example, as a deve... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | javiercn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5f2a0c7865178af3d91dd9f13b0cdfc3c73a2529c873d2780bb4c01271a57ec6 |
| 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 | 8aae7b8d6caacacf5c66eaeb2702d8dc88d85b4a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width