Path Completion
- Take
gitfor example, when enteringgit add, pressing theSpaceandTabkeys, 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 pressTabkey to get path completion for the subdirectory or file. - Enter
../or..\and pressTabkey to get path completion for the parent directory or file. - Enter
/or\and pressTabkey to get path completion for the sibling directory. - More examples:
~/,../../, ...
- Enter
- So you can enter
git add ./and then pressTabkey to get the path completion.