Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement the fuck command #14696

Closed
p0W3RH311 opened this issue Feb 2, 2021 · 7 comments
Closed

implement the fuck command #14696

p0W3RH311 opened this issue Feb 2, 2021 · 7 comments
Assignees
Labels
Issue-Enhancement the issue is more of a feature request than a bug Resolution-No Activity Issue has had no activity for 6 months or more WG-Interactive-Console the console experience

Comments

@p0W3RH311
Copy link

p0W3RH311 commented Feb 2, 2021

Hi Guys !

for better experience with console/terminal ... i suggest to implement new command "fuck" to renforce the suggestion mode

example

@p0W3RH311 p0W3RH311 added Issue-Enhancement the issue is more of a feature request than a bug Needs-Triage The issue is new and needs to be triaged by a work group. labels Feb 2, 2021
@rhymeswithmogul
Copy link

This might be present a localization issue for non-English users, due to the varying synonyms people may use for this command. The only other issue I see is that the alias "fudge" should be defined for the benefit of users who build PowerShell with the --disable-offensive compile-time flag.

@SteveL-MSFT
Copy link
Member

PowerShell DOES have a suggestion framework, but it needs to be fixed to work correctly. I think the intent of fuck makes sense particularly when it's clear what the typo was supposed to do. However, it seems we should have a cmdlet for it and a shorter alias (probably something more professional...).

@SeeminglyScience
Copy link
Collaborator

Worth noting that a community implementation does exist (PoShFuck) though it does not use the suggestions framework.

@daxian-dbw daxian-dbw added WG-Interactive-Console the console experience and removed Needs-Triage The issue is new and needs to be triaged by a work group. labels Feb 3, 2021
@daxian-dbw
Copy link
Member

I agree with Steve that a flexible suggestion framework would be the way to go. /cc @theJasonHelmick to comment.

@ThomasNieto
Copy link
Contributor

@StevenBucher98 I believe this issue is addressed with feedback providers and predictors to choose and execute. However, there should also be a cmdlet created like Steve mentions to execute a suggestion Invoke-Suggestion with a short alias maybe something like isug.

@StevenBucher98
Copy link
Collaborator

StevenBucher98 commented Jul 25, 2023

@p0W3RH311 we do have some similar to the experience you are showing in the GIF, check out https://devblogs.microsoft.com/powershell/what-are-feedback-providers/ and https://github.com/PowerShell/command-not-found which cover at least the apt get cases.

@ThomasNieto yeah it could be really interesting to do a cmdlet to invoke suggestions, I am little unsure about how it would integrate with feedback providers as currently feedback providers just trigger when their specific criteria is met. I wonder if we could port the rules from fuck to a feedback provider that will trigger on those errors but immediately instead of needing to type out the cmd. cc @daxian-dbw cause you may find this idea interesting 😄

PowerShell Team
This is an introduction to the concept of feedback providers in PowerShell. What they are, how to use them and why we are implementing them.
GitHub
Contribute to PowerShell/command-not-found development by creating an account on GitHub.

@StevenBucher98 StevenBucher98 self-assigned this Jul 25, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot added the Resolution-No Activity Issue has had no activity for 6 months or more label Jan 22, 2024
Copy link
Contributor

This issue has not had any activity in 6 months, if there is no further activity in 7 days, the issue will be closed automatically.

Activity in this case refers only to comments on the issue. If the issue is closed and you are the author, you can re-open the issue using the button below. Please add more information to be considered during retriage. If you are not the author but the issue is impacting you after it has been closed, please submit a new issue with updated details and a link to this issue and the original.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement the issue is more of a feature request than a bug Resolution-No Activity Issue has had no activity for 6 months or more WG-Interactive-Console the console experience
Projects
None yet
Development

No branches or pull requests

7 participants