Skip to content

Add Firefox completions#9090

Merged
krobelus merged 1 commit into
fish-shell:masterfrom
daanturo:firefox-completions
Aug 9, 2022
Merged

Add Firefox completions#9090
krobelus merged 1 commit into
fish-shell:masterfrom
daanturo:firefox-completions

Conversation

@daanturo
Copy link
Copy Markdown

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
Comment thread share/completions/firefox.fish Outdated
Comment thread share/completions/firefox.fish Outdated
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
Copy Markdown
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

Comment thread share/completions/firefox.fish Outdated
Comment thread share/completions/firefox.fish Outdated
Comment thread CHANGELOG.rst
@daanturo daanturo force-pushed the firefox-completions branch 3 times, most recently from 6bfa43c to ec97fdf Compare August 9, 2022 13:43
Comment thread share/completions/firefox.fish Outdated
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
Copy Markdown
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)

Comment thread share/completions/firefox.fish Outdated
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
Copy Markdown
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
Copy Markdown
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