You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-10Lines changed: 19 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,17 +13,26 @@ z.lua is a faster way to navigate your filesystem. It tracks your most used dire
13
13
14
14
For example, `z foo bar` would match `/foo/bar` but not `/bar/foo`.
15
15
16
+
## Reputation
17
+
18
+
From people using z.lua:
19
+
20
+
- I like this in principal. I’m pretty damn predictable at the command line and far too lazy to make shortcuts
21
+
- It feels far more intuitive and it's so incredibly convenient to be able to jump between folders I'm working in without having to traverse an entire tree. The shell used to feel so constraining for me, but tools like this are making me enjoy it so much more.
22
+
- I can finally have autojump-like functionality on my Raspberry Pi 1 without waiting 30 seconds every time I open a new shell. Thanks z.lua devs.
23
+
- Anyway, z.lua is a promising project. If you only need directory jumping, it may be the best choice.
24
+
16
25
17
26
## Features
18
27
19
28
-**10x** times faster than **fasd** and **autojump**, **3x** times faster than **z.sh**.
20
-
-Capable to gain the ultimate speed with a[native module](https://github.com/skywind3000/czmod) written in C.
29
+
-Gain the ultimate speed with an optional[native module](https://github.com/skywind3000/czmod) written in C.
21
30
- Available for **posix shells**: bash, zsh, dash, sh, ash, ksh, busybox and etc.
22
31
- Available for Fish Shell, Power Shell and Windows cmd.
23
32
-[Enhanced matching algorithm](#enhanced-matching) takes you to where ever you want precisely.
24
33
- Allow updating database only if `$PWD` changed with "$_ZL_ADD_ONCE" set to 1.
25
34
- Interactive selection enables you to choose where to go before cd.
26
-
-Intergrated with FZF (optional) for interactive selection and completion.
35
+
-Integrated with FZF (optional) for interactive selection and completion.
27
36
- Quickly go back to a parent directory instead of typing "cd ../../..".
28
37
- Corresponding experience in different shells and operating systems.
29
38
- Compatible with Lua 5.1, 5.2 and 5.3+
@@ -451,19 +460,19 @@ As you see, z.lua is the fastest one and requires less resource.
451
460
452
461
## Native Module
453
462
454
-
Since z.lua is a standalone script, but it can also work with a native module written in C:
463
+
z.lua is fast enough for most case, the path tracking action will be triggered each time when you change your current directory.
455
464
456
-
-[czmod](https://github.com/skywind3000/czmod): native module to boost `z.lua`.
465
+
So I still recommend the pure lua script for portability and flexibility, but for someone who really care about `10ms` or `1ms` things, this module can help them to gain the ultimate speed.
457
466
458
-
z.lua can be **4-5** times faster than zoxide after enabling czmod.
467
+
-[czmod](https://github.com/skywind3000/czmod): native module to boost `z.lua`.
459
468
469
+
Average performance:
460
470
461
-
## Reputation
471
+
| Name | czmod | z.lua |
472
+
|-|-|-|-|-|
473
+
|**Update Time**| 1.6ms | 13.2ms |
474
+
|**Query Time**| 1.5ms | 9.8ms |
462
475
463
-
- "I like this in principal. I’m pretty damn predictable at the command line and far too lazy to make shortcuts"
464
-
- "It feels far more intuitive and it's so incredibly convenient to be able to jump between folders I'm working in without having to traverse an entire tree. The shell used to feel so constraining for me, but tools like this are making me enjoy it so much more. "
465
-
- "I can finally have autojump-like functionality on my Raspberry Pi 1 without waiting 30 seconds every time I open a new shell. Thanks z.lua devs."
466
-
- "Anyway, z.lua is a promising project. If you only need directory jumping, it may be the best choice."
0 commit comments