]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
completion: complete paths after verb for fish
authorJörg Behrmann <behrmann@physik.fu-berlin.de>
Mon, 3 Feb 2025 09:19:44 +0000 (10:19 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 3 Feb 2025 09:25:37 +0000 (10:25 +0100)
mkosi/completion.py

index 50ded3728264557ff5fb85283356bad351ac00e4..c243d2b0c4c074ff7159cbd21d7ff0ee19e2b05e 100644 (file)
@@ -162,6 +162,8 @@ def finalize_completion_fish(options: list[CompletionItem], resources: Path) ->
         c.write("complete -c mkosi -n '__fish_is_first_token' -a \"")
         c.write(" ".join(str(v) for v in config.Verb))
         c.write('"\n')
+        # Complete paths after first token
+        c.write("complete -c mkosi -F -n 'not __fish_is_first_token'\n")
 
         for option in options:
             if not option.short and not option.long: