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 Firefox completions #9090

Merged
merged 1 commit into from
Aug 9, 2022
Merged

Conversation

daanturo
Copy link
Contributor

Description

Add firefox completions

Fixes issue: None

TODOs:

  • Changes to fish usage are reflected in user documentation/manpages.
  • Tests have been added for regressions fixed
  • User-visible changes noted in CHANGELOG.rst

@daanturo daanturo force-pushed the firefox-completions branch 2 times, most recently from c564347 to 9f0d57c Compare July 26, 2022 20:03
complete -c firefox -l new-instance -d "Open new instance, not a new window in running instance"
complete -c firefox -l safe-mode -d "Disables extensions and themes for this session"
complete -c firefox -l allow-downgrade -d "Allows downgrading a profile"
complete -c firefox -l MOZ_LOG -r -d "Treated as MOZ_LOG=<modules> environment variable, overrides it"
Copy link
Contributor

Choose a reason for hiding this comment

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

since this never takes file arguments, we could suppress them with -f

@daanturo daanturo force-pushed the firefox-completions branch 3 times, most recently from 6bfa43c to ec97fdf Compare August 9, 2022 13:43
complete -c firefox -l private-window -r -d "Open <url> in a new private window"
complete -c firefox -l preferences -d "Open Preferences dialog"
complete -c firefox -l screenshot -d "Save screenshot to <path> or in working directory"
complete -c firefox -f -l window-size -d "Width and optionally height of screenshot"
Copy link
Contributor

Choose a reason for hiding this comment

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

this should have -r (AKA --require-parameter)

complete -c firefox -f -l new-instance -d "Open new instance, not a new window in running instance"
complete -c firefox -f -l safe-mode -d "Disables extensions and themes for this session"
complete -c firefox -f -l allow-downgrade -d "Allows downgrading a profile"
complete -c firefox -l MOZ_LOG -r -d "Treated as MOZ_LOG=<modules> environment variable, overrides it"
Copy link
Contributor

Choose a reason for hiding this comment

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

small misunderstanding: I meant only the --MOZ_LOG should have -f. Not the other flags like --new-instance, they don't take any parameters anyway

I'll correct both and merge. Thanks for the contribution!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thank you.

@krobelus krobelus force-pushed the firefox-completions branch from ec97fdf to 2a9d63c Compare August 9, 2022 16:54
@krobelus krobelus merged commit 08a48af into fish-shell:master Aug 9, 2022
@krobelus krobelus added this to the fish 3.6.0 milestone Aug 9, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants