diff --git a/FAQ.md b/FAQ.md index 9210ec6..f6da665 100644 --- a/FAQ.md +++ b/FAQ.md @@ -64,3 +64,8 @@ function zii() { [ -n "$dir" ] && cd "$dir" } ``` + +## How to input a hyphen `-` in the keyword. + +Q: There is a `~/Documents/github/vue-my-ui` directory, but when I use `z vue-my-ui` the directory cannot be matched. +A: `-` is a reserved character in lua regexp. you can use either `z vue%-my%-ui` or `z vue my ui`. \ No newline at end of file