Skip to content

Commit 0652918

Browse files
authored
Add latest flags for programmable completion. (#235)
1 parent e70046c commit 0652918

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

docs/CLIHELP.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ will handle the installation. For the curious: It lands in
1717
`/etc/bash_completion.d/`.
1818

1919
On _non_ RaspiOS-based RetroPie-Installments put the file from
20-
`supplementary/bash-completion/Skyscraper.bash` to
21-
`$XDG_DATA_HOME/bash-completion/completions/` (respective to
22-
`$HOME/.local/share/bash-completion/completions/`).
20+
`supplementary/bash-completion/Skyscraper.bash` to the file
21+
`$XDG_DATA_HOME/bash-completion/completions/Skyscraper` (which is usually
22+
`$HOME/.local/share/bash-completion/completions/Skyscraper`).
2323

2424
In either case: Open a new bash and press ++tab++ key twice to see it in action.
2525

supplementary/bash-completion/Skyscraper.bash

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# Programmable completion for Skyscraper: https://gemba.github.io/skyscraper/
22
#
3-
# This file is part of skyscraper. Copyright (c) 2024 Gemba @ GitHub
3+
# This file is part of Skyscraper. Copyright (c) 2024 Gemba @ GitHub
44
#
5-
# skyscraper is free software; you can redistribute it and/or modify
5+
# Skyscraper is free software; you can redistribute it and/or modify
66
# it under the terms of the GNU General Public License as published by
77
# the Free Software Foundation; either version 3 of the License, or
88
# (at your option) any later version.
99
#
10-
# skyscraper is distributed in the hope that it will be useful,
10+
# Skyscraper is distributed in the hope that it will be useful,
1111
# but WITHOUT ANY WARRANTY; without even the implied warranty of
1212
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1313
# GNU General Public License for more details.
@@ -73,7 +73,7 @@ _skyscraper() {
7373
;;
7474
'-s')
7575
# scrape modules
76-
mapfile -t COMPREPLY < <(compgen -W "arcadedb igdb mobygames openretro screenscraper thegamesdb worldofspectrum esgamelist import" -- "$cur")
76+
mapfile -t COMPREPLY < <(compgen -W "arcadedb igdb mobygames openretro screenscraper thegamesdb zxinfo esgamelist import gamebase" -- "$cur")
7777
return 0
7878
;;
7979
'-f')
@@ -95,14 +95,14 @@ _skyscraper() {
9595
_filedir
9696
return 0
9797
;;
98-
'-h' | '--help' | '--help-all' | '-v' | '--version')
98+
'-h' | '--help' | '--help-all' | '-v' | '--version' | '--buildinfo' | '--listext' | '--searchstem-all')
9999
return 0
100100
;;
101101
'--verbosity')
102102
mapfile -t COMPREPLY < <(compgen -W "0 1 2 3" -- "$cur")
103103
return 0
104104
;;
105-
'-e' | '-l' | '-m' | '-u' | '--addext' | '--query' | '--maxfails' | '--lang' | '--region' | '--includepattern' | '--exludepattern')
105+
'-e' | '-l' | '-m' | '-u' | '--addext' | '--query' | '--maxfails' | '--lang' | '--region' | '--includepattern' | '--exludepattern' | '--searchstem')
106106
# expect specific values
107107
return 0
108108
;;

0 commit comments

Comments
 (0)