From c4512b47d25c8886c4fb03f0f81753735d12c28a Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Wed, 18 Mar 2020 22:36:35 +0800 Subject: [PATCH 1/5] update doc --- README.md | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index ab25bd8..67343e3 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,13 @@ z.lua is a faster way to navigate your filesystem. It tracks your most used dire For example, `z foo bar` would match `/foo/bar` but not `/bar/foo`. +## Reputation + +- I like this in principal. I’m pretty damn predictable at the command line and far too lazy to make shortcuts +- 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. +- 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. +- Anyway, z.lua is a promising project. If you only need directory jumping, it may be the best choice. + ## Features @@ -455,15 +462,14 @@ Since z.lua is a standalone script, but it can also work with a native module wr - [czmod](https://github.com/skywind3000/czmod): native module to boost `z.lua`. -z.lua can be **4-5** times faster than zoxide after enabling czmod. +z.lua can be **4-5** times faster than zoxide after enabling czmod: +| Name | czmod | zoxide | z.lua | autojump | +|-|-|-|-|-| +| **Update Time** | 1.6ms | 7.1ms | 13.2ms | 85.2ms | +| **Query Time** | 1.5ms | 5.8ms | 9.8ms | 79.3ms | +| **Binary Size** | 102 KB | 2.2 MB | 70 KB | 100 KB | -## Reputation - -- "I like this in principal. I’m pretty damn predictable at the command line and far too lazy to make shortcuts" -- "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. " -- "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." -- "Anyway, z.lua is a promising project. If you only need directory jumping, it may be the best choice." ## History From a55bb87e1b3833aadef56aa10cf5abe523f579b8 Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Wed, 18 Mar 2020 22:38:46 +0800 Subject: [PATCH 2/5] update docs --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 67343e3..0479042 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ For example, `z foo bar` would match `/foo/bar` but not `/bar/foo`. ## Reputation +From people using z.lua: + - I like this in principal. I’m pretty damn predictable at the command line and far too lazy to make shortcuts - 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. - 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. From b40df870a6903343d0d8d0fca4d450e921c53242 Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Wed, 18 Mar 2020 22:47:05 +0800 Subject: [PATCH 3/5] update doc --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0479042..1ebddd3 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ From people using z.lua: ## Features - **10x** times faster than **fasd** and **autojump**, **3x** times faster than **z.sh**. -- Capable to gain the ultimate speed with a [native module](https://github.com/skywind3000/czmod) written in C. +- Gain the ultimate speed with an optional [native module](https://github.com/skywind3000/czmod) written in C. - Available for **posix shells**: bash, zsh, dash, sh, ash, ksh, busybox and etc. - Available for Fish Shell, Power Shell and Windows cmd. - [Enhanced matching algorithm](#enhanced-matching) takes you to where ever you want precisely. From a4c51d81036de21efcb5abd06957aade0d5a90ae Mon Sep 17 00:00:00 2001 From: skywind3000 Date: Sat, 28 Mar 2020 19:48:20 +0800 Subject: [PATCH 4/5] update doc --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1ebddd3..518bffe 100644 --- a/README.md +++ b/README.md @@ -460,17 +460,18 @@ As you see, z.lua is the fastest one and requires less resource. ## Native Module -Since z.lua is a standalone script, but it can also work with a native module written in C: +z.lua is fast enough for most case, the path tracking action will be triggered each time when you change your current directory. + +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. - [czmod](https://github.com/skywind3000/czmod): native module to boost `z.lua`. -z.lua can be **4-5** times faster than zoxide after enabling czmod: +Average performance: -| Name | czmod | zoxide | z.lua | autojump | +| Name | czmod | z.lua | |-|-|-|-|-| -| **Update Time** | 1.6ms | 7.1ms | 13.2ms | 85.2ms | -| **Query Time** | 1.5ms | 5.8ms | 9.8ms | 79.3ms | -| **Binary Size** | 102 KB | 2.2 MB | 70 KB | 100 KB | +| **Update Time** | 1.6ms | 13.2ms | +| **Query Time** | 1.5ms | 9.8ms | From 8a90ca6df4529e53aca88a9c832a0c422a4a6c7c Mon Sep 17 00:00:00 2001 From: Jonas Date: Fri, 29 May 2020 11:14:38 +0200 Subject: [PATCH 5/5] Update README.md Fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 518bffe..51aabaa 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ From people using z.lua: - [Enhanced matching algorithm](#enhanced-matching) takes you to where ever you want precisely. - Allow updating database only if `$PWD` changed with "$_ZL_ADD_ONCE" set to 1. - Interactive selection enables you to choose where to go before cd. -- Intergrated with FZF (optional) for interactive selection and completion. +- Integrated with FZF (optional) for interactive selection and completion. - Quickly go back to a parent directory instead of typing "cd ../../..". - Corresponding experience in different shells and operating systems. - Compatible with Lua 5.1, 5.2 and 5.3+