Skip to content

Path Completion

  • Take git for example, when entering git add, pressing the Space and Tab keys, path completion will not be triggered, only completion provided by the module will be triggered.
  • If you want to trigger path completion, you need to enter a content which matches ^(?:\.\.?|~)?(?:[/\\]).*.
  • e.g.
    • Enter ./ or .\ and press Tab key to get path completion for the subdirectory or file.
    • Enter ../ or ..\ and press Tab key to get path completion for the parent directory or file.
    • Enter / or \ and press Tab key to get path completion for the sibling directory.
    • More examples: ~/, ../../, ...
  • So you can enter git add ./ and then press Tab key to get the path completion.