From 15155f86450a270b0145f48f77ff04282dd0bdb5 Mon Sep 17 00:00:00 2001 From: Gemba Date: Sat, 28 Feb 2026 18:18:53 +0100 Subject: [PATCH] Add latest flags for programmable completion. --- docs/CLIHELP.md | 6 +++--- supplementary/bash-completion/Skyscraper.bash | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/CLIHELP.md b/docs/CLIHELP.md index 29da4452..079f503c 100644 --- a/docs/CLIHELP.md +++ b/docs/CLIHELP.md @@ -17,9 +17,9 @@ will handle the installation. For the curious: It lands in `/etc/bash_completion.d/`. On _non_ RaspiOS-based RetroPie-Installments put the file from -`supplementary/bash-completion/Skyscraper.bash` to -`$XDG_DATA_HOME/bash-completion/completions/` (respective to -`$HOME/.local/share/bash-completion/completions/`). +`supplementary/bash-completion/Skyscraper.bash` to the file +`$XDG_DATA_HOME/bash-completion/completions/Skyscraper` (which is usually +`$HOME/.local/share/bash-completion/completions/Skyscraper`). In either case: Open a new bash and press ++tab++ key twice to see it in action. diff --git a/supplementary/bash-completion/Skyscraper.bash b/supplementary/bash-completion/Skyscraper.bash index 64df163b..5f72dcc2 100644 --- a/supplementary/bash-completion/Skyscraper.bash +++ b/supplementary/bash-completion/Skyscraper.bash @@ -1,13 +1,13 @@ # Programmable completion for Skyscraper: https://gemba.github.io/skyscraper/ # -# This file is part of skyscraper. Copyright (c) 2024 Gemba @ GitHub +# This file is part of Skyscraper. Copyright (c) 2024 Gemba @ GitHub # -# skyscraper is free software; you can redistribute it and/or modify +# Skyscraper is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # -# skyscraper is distributed in the hope that it will be useful, +# Skyscraper is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. @@ -73,7 +73,7 @@ _skyscraper() { ;; '-s') # scrape modules - mapfile -t COMPREPLY < <(compgen -W "arcadedb igdb mobygames openretro screenscraper thegamesdb worldofspectrum esgamelist import" -- "$cur") + mapfile -t COMPREPLY < <(compgen -W "arcadedb igdb mobygames openretro screenscraper thegamesdb zxinfo esgamelist import gamebase" -- "$cur") return 0 ;; '-f') @@ -95,14 +95,14 @@ _skyscraper() { _filedir return 0 ;; - '-h' | '--help' | '--help-all' | '-v' | '--version') + '-h' | '--help' | '--help-all' | '-v' | '--version' | '--buildinfo' | '--listext' | '--searchstem-all') return 0 ;; '--verbosity') mapfile -t COMPREPLY < <(compgen -W "0 1 2 3" -- "$cur") return 0 ;; - '-e' | '-l' | '-m' | '-u' | '--addext' | '--query' | '--maxfails' | '--lang' | '--region' | '--includepattern' | '--exludepattern') + '-e' | '-l' | '-m' | '-u' | '--addext' | '--query' | '--maxfails' | '--lang' | '--region' | '--includepattern' | '--exludepattern' | '--searchstem') # expect specific values return 0 ;;