Skip to content

bash-completion: complete file aliases#18041

Open
shbernal wants to merge 1 commit into
mpv-player:masterfrom
shbernal:bash-completion-file-aliases
Open

bash-completion: complete file aliases#18041
shbernal wants to merge 1 commit into
mpv-player:masterfrom
shbernal:bash-completion-file-aliases

Conversation

@shbernal
Copy link
Copy Markdown

Summary:

  • resolve file-valued aliases in Bash completion before completing option values
  • let list-operation aliases such as --sub-file complete filesystem paths via their parent file option
  • reuse the same path for related aliases such as --audio-file, --external-file, --cover-art-file, and --glsl-shader

Fixes #7955

Tests:

  • bash -n etc/mpv.bash-completion
  • manual tiny Bash completion check for --sub-file returning subtitle.srt

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.

Filenames are not tab-completed if "=" present after the option

1 participant