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

add builtin fish arg/description/documentation to suggestion #243271

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

meganrogge
Copy link
Contributor

fixes #241136

@meganrogge meganrogge requested a review from Tyriar March 11, 2025 21:41
@meganrogge meganrogge self-assigned this Mar 11, 2025
@meganrogge meganrogge added this to the March 2025 milestone Mar 11, 2025
@meganrogge meganrogge enabled auto-merge (squash) March 11, 2025 21:42
Tyriar
Tyriar previously requested changes Mar 11, 2025
Comment on lines +118 to +121
// Clean up the text:
// 1. Remove ANSI escape codes for bold and colors
// 2. Remove backspace sequences like 'a\bb' that cause display artifacts
const cleanHelpText = cleanupText(helpOutput);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can pipe it to cat to remove the sequences:

image

Copy link
Contributor Author

@meganrogge meganrogge Mar 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I try that, it doesn't work / there are duplicate chars in the output

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Screenshot 2025-03-12 at 11 23 25 AM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is with | cat | tr -d '\b'

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, since this only runs periodically, not a runtime, not sure we need to further streamline this

@meganrogge meganrogge requested a review from Tyriar March 12, 2025 15:28
@meganrogge meganrogge dismissed Tyriar’s stale review March 12, 2025 15:28

tried to address

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add fish builtin completion details/docs/args
2 participants