Skip to content

Commit 4ee7839

Browse files
author
skywind3000
committed
update doc
1 parent 0effba4 commit 4ee7839

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.cn.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ z -b foo # 跳转到父目录中名称以 foo 开头的那一级
111111
- 设置 `$_ZL_CD` 用来指定你想用的 cd 命令,比如有人用 cd_func 。
112112
- 设置 `$_ZL_ECHO` 为 1 可以在跳转后显示目标路径名称。
113113
- 设置 `$_ZL_MATCH_MODE` 为 1 可以打开 “增强匹配模式”。
114+
- 设置 `$_ZL_HYPHEN` 为 1 可以允许关键字中包含横线 (横线默认是 lua 正则关键字,要转写成 `%-`)。
114115

115116
## Aging
116117

@@ -175,7 +176,7 @@ Frecency 是一个由 'recent' 和 'frequency' 组成的合成词,这个术语
175176
30 /home/user/workspace/project2
176177
40 /home/user/workspace/project3
177178

178-
在增强模式下使用 `"z wo"` 的话,只有 `/home/user/work` 满足匹配,因为按照第二条规则,这是唯一一条最有一段名称匹配 `wo` 的路径。
179+
在增强模式下使用 `"z wo"` 的话,只有 `/home/user/workspace` 满足匹配,因为按照第二条规则,这是唯一一条最有一段名称匹配 `wo` 的路径。
179180

180181
因为最后一级目录名称总是最容易记住的,所以给到它比较高的优先级。在默认匹配算法中,你同样可以用 `"z space$"` 来达到相同的目的,但是 `"z wo"` 可以打更少的字。
181182

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ If no match is found, it will fall back to default matching method.
196196
30 /home/user/workspace/project2
197197
40 /home/user/workspace/project3
198198

199-
If you use `"z wo"` in enhanced matching mode, only the `/home/user/work` will be matched, because according to rule No.2 it is the only path whose last segment matches `"wo"`.
199+
If you use `"z wo"` in enhanced matching mode, only the `/home/user/workspace` will be matched, because according to rule No.2 it is the only path whose last segment matches `"wo"`.
200200

201201
Since the last segment of a path is always easier to be recalled, it is sane to give it higher priority. You can also achieve this by typing `"z space$"` in both methods, but `"z wo"` is easier to type.
202202

0 commit comments

Comments
 (0)