1
0
mirror of https://github.com/skywind3000/z.lua synced 2026-03-25 00:59:48 +00:00

Updated FAQ (markdown)

Linwei
2019-03-08 16:33:56 +08:00
parent 2a3d31d1da
commit 23302a8aea

12
FAQ.md

@@ -69,4 +69,14 @@ function zii() {
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`.
A: `-` is a reserved character in lua regexp. you can use either `z vue%-my%-ui` or `z vue my ui`.
## How to integrate z.lua to `ranger` ?
The ranger integration script will provide a `z` command in `ranger` and will track directories changes inside `ranger`.
Copy `ranger_zlua.py` to your `~/.config/ranger/plugins` folder, and set environment variable in your shell rc:
```bash
export RANGER_ZLUA="/path/to/z.lua"
```