mirror of
https://github.com/beetbox/beets.git
synced 2025-12-30 12:32:33 +01:00
Don't escape question marks in Fish completions
Fish shell previously interpreted question marks as glob characters, but that behavior has been deprecated and will soon be removed. Plus, the completion for `help` and its alias `?` does not currently seem to behave as expected anyway and is thus, at present, of limited utility.
This commit is contained in:
parent
82c3867fc0
commit
05db0d18eb
1 changed files with 2 additions and 2 deletions
|
|
@ -110,7 +110,7 @@ class FishPlugin(BeetsPlugin):
|
|||
# Collect commands, their aliases, and their help text
|
||||
cmd_names_help = []
|
||||
for cmd in beetcmds:
|
||||
names = ["\?" if alias == "?" else alias for alias in cmd.aliases]
|
||||
names = [alias for alias in cmd.aliases]
|
||||
names.append(cmd.name)
|
||||
for name in names:
|
||||
cmd_names_help.append((name, cmd.help))
|
||||
|
|
@ -229,7 +229,7 @@ def get_all_commands(beetcmds):
|
|||
# Formatting for Fish to complete command options
|
||||
word = ""
|
||||
for cmd in beetcmds:
|
||||
names = ["\?" if alias == "?" else alias for alias in cmd.aliases]
|
||||
names = [alias for alias in cmd.aliases]
|
||||
names.append(cmd.name)
|
||||
for name in names:
|
||||
word += "\n"
|
||||
|
|
|
|||
Loading…
Reference in a new issue