Linwei
e088f154d3
Merge pull request #239 from HaleTom/fix-sh-wrapper-nonzero-no-match
...
fix(sh): return non-zero on empty target or failed jump
2026-10-28 01:15:35 +08:00
Tom Hale
e21fd5534e
fix(sh): propagate failed jumps as non-zero
...
builtin cd and custom $_ZL_CD can both fail after the guards pass (missing command, no search permission, vanished directory). The inner if masked the failure back to 0, and _ZL_ECHO would even print the stale directory. Append || return 1 to both branches.
2026-10-27 20:37:54 +07:00
Tom Hale
79c0828572
fix(sh): return non-zero when cd target is empty or missing
2026-10-27 18:35:28 +07:00
Linwei
86a9fc5b30
Merge pull request #235 from brglng/feature/nushell
...
fix(nushell): fix completion for nushell
1.8.26
2026-08-09 19:42:10 +08:00
Zhaosheng Pan
99d48a0bd1
fix(nushell): disable sort in completion options
2026-08-09 18:49:21 +08:00
Zhaosheng Pan
afda9262d0
fix(nushell): fix completion for nushell
2026-08-09 18:41:29 +08:00
skywind3000
6025da3ae5
fix: don't reassign for-loop variable
v1.8.25
2026-03-09 21:15:58 +08:00
Linwei
1ebe5bcaa7
Merge pull request #228 from botantony/lua-5.5-patch
...
fix: don't reassign for-loop variable
2025-12-24 17:47:50 +08:00
botantony
e1eb7a2104
fix: don't reassign for-loop variable
...
In Lua 5.5 you can no longer reassign for-loop variables, f.e.
```lua
for k, v in pairs(tbl) do k = "foobar" end
```
This PR should fix this problem
Signed-off-by: botantony <antonsm21@gmail.com >
2025-12-23 22:49:39 +01:00
Linwei
f80e22498c
Merge pull request #223 from fabiob/patch-1
...
Adds NixOS instructions to README.md
2025-08-01 14:42:55 +08:00
Fábio D. Batista
ce1ee31529
Adds NixOS instructions to README.md
2025-07-31 18:18:15 -03:00
Linwei
aebea97d8e
Merge pull request #222 from brglng/feature/nushell
...
fix: installation instructions in README.md
2025-05-29 21:52:11 +08:00
Zhaosheng Pan
314dd0a29d
fix: installation instructions in README.md
2025-05-29 17:37:09 +08:00
skywind3000
3482460bd2
update version number
1.8.24
2025-05-24 23:05:00 +08:00
Linwei
bcb5599c12
Merge pull request #221 from brglng/feature/nushell
...
feat(nushell)!: improve nushell support for nushell v0.96+
2025-05-21 23:37:24 +08:00
Zhaosheng Pan
ef8767c5f0
feat(nushell)!: improve nushell support for nushell v0.96+
2025-05-21 22:45:12 +08:00
skywind3000
23aeabedd9
update version number
1.8.23
2025-05-18 00:18:33 +08:00
Linwei
27dceb9899
Merge pull request #219 from chrisant996/allow_interactive_with_no_args
...
Fix when _ZL_MATCH_MODE=1.
2025-05-18 00:16:39 +08:00
Chris Antos
19b2d1747e
Fix when _ZL_MATCH_MODE=1.
2025-05-17 04:29:40 -07:00
skywind3000
7c1c73af33
1. upgrade internal batch script
...
2. made _ZL_FZF_HEIGHT available on windows.
1.8.22
2025-05-17 13:57:37 +08:00
Linwei
b63a38b11a
Merge pull request #218 from chrisant996/allow_interactive_with_no_args
...
Make `z -i` and `z -I` with no arguments be interactive.
2025-05-16 15:12:21 +08:00
Chris Antos
c524e28851
Make z -i and z -I with no arguments be interactive.
...
In skywind3000/z.lua#122 there's a note that z.lua intentionally doesn't
support `z -i` being interactive to maintain consistency with how z.sh
behaves with `z -i`. But z.sh doesn't have a `-i` option, so I'm not
sure what is the intent.
This commit makes `z -i` and `z -I` go interactive even with no args.
2025-05-15 09:47:19 -07:00
Linwei
c3a182c6c9
Merge pull request #216 from chrisant996/fix_invalid_path_on_window
...
Fix invalid pathname in `z -I xyz` on Windows.
1.8.21
2025-05-15 22:14:44 +08:00
Chris Antos
771c72de5f
Fix invalid pathname in z -I xyz on Windows.
...
The fzf interactive mode (`-I`) constructs a `tmpname` pathname and
tries to sanitize it by stripping all `\` characters. But it missed
stripping all `:` characters, and the command printed this error output:
The filename, directory name, or volume label syntax is incorrect.
The `tmpname` looked like "c:\tmp\Temp\zlua_c:tmpTempsh2k0.txt", and
the embedded `:` caused the error output.
This commit adds `:` to the list of characters to be stripped (only on
Windows).
2025-05-14 16:49:50 -07:00
Linwei
4bbd0f1e58
Merge pull request #214 from russell7/patch-1
...
fix(readme): fix typo
2025-02-21 00:55:49 +08:00
洪运
db1fb1f256
fix(readme): fix typo
2025-02-20 22:46:25 +08:00
Linwei
19cb43d1ac
Merge pull request #212 from ShalokShalom/patch-1
...
Remove Fig
2025-01-14 17:28:48 +08:00
ShalokShalom
787da9512c
Remove Fig
...
Fig is no more (see https://app.fig.io/plugins/z.lua )
2025-01-14 10:23:57 +01:00
skywind3000
3875d774cb
fixed nushell completion issue
1.8.20
2024-10-18 10:35:14 +08:00
skywind3000
dff590adc1
update docs
2024-10-18 03:09:39 +08:00
skywind3000
20c0494d44
update docs
2024-10-17 08:04:13 +08:00
skywind3000
67405d57e8
update gitignore
2024-10-16 00:31:50 +08:00
skywind3000
6e67a32520
fix: indentation consistency
2024-10-14 15:42:46 +08:00
Linwei
c334bc1ae5
Merge pull request #210 from brglng/feature/nushell
...
feat: add initial support for nushell (wip)
1.8.19
2024-10-10 15:17:31 +08:00
Zhaosheng Pan
0f6318ce4c
fix(nushell): chdir failure
2024-10-09 14:59:05 +08:00
Zhaosheng Pan
3b55089ad8
improve README
2024-10-09 12:44:15 +08:00
Zhaosheng Pan
c58d31ec1d
feat: add initial support for nushell
2024-10-08 18:11:32 +08:00
skywind3000
7c890c3645
Improve handling of the '--help' option in _zlua() function to improve
...
zsh compatibility.
2024-04-30 17:16:36 +08:00
skywind3000
7af012cc35
fixed: interpret _ZL_ZSH_NO_FZF in a wrong way.
2024-04-20 20:38:20 +08:00
skywind3000
019b2af475
add a return statement for nil case in os.interpreter() function.
2024-04-07 11:26:35 +08:00
Linwei
ef9a49d73d
Merge pull request #158 from ibayramli/fig
...
Add Fig as an installation method to the README
1.8.18
2024-03-20 22:19:26 +08:00
skywind3000
7cd399b30d
bloat version
2024-03-20 22:17:58 +08:00
Linwei
9112f0e9cc
Merge pull request #189 from Arkaeriit/fix_pipes_in_filenames
...
Support '|' in path
2024-03-20 22:13:57 +08:00
Maxime Bouillot
cb4c9d3c8f
Revert back to the old separator and improve db reading
...
A smarter reading function lets us support '|' in
filenames whilst still using it as the database
separator.
2024-03-20 14:38:04 +01:00
Maxime Bouillot
924f61a48b
Change separator in data file
...
Using '|' as the data separator caused crashes if
a path with a '|' char in it was in the data file.
Changing that separator to a null byte ensures
that this kind of issue can never happen again as
the null byte can't be in a path.
2024-03-06 14:52:16 +01:00
skywind3000
30220996ca
fix typo
1.8.17
2024-02-20 12:40:23 +08:00
skywind3000
d3ba781d4d
Refactor the z.lua.plugin.zsh script to ensure proper initialization with or without FZF support
2024-02-20 11:43:00 +08:00
skywind3000
9a24fef334
Refactor logic to initialize fzf in zsh plugin to support a new condition where fzf can be disabled.
2024-02-19 11:29:04 +08:00
skywind3000
a9e034cb5c
Update z.lua zsh plugin to allow customization of the fzf command used for fuzzy finding.
...
- Introduced new environment variable _ZL_ZSH_FZF to specify the fzf command
- Updated the eval statement to use the custom fzf command if provided by the user
2024-02-19 11:24:30 +08:00
Linwei
992134061a
Merge pull request #196 from ilyagr/hyphens
...
Make z.lua try treating `-` as a normal character if there are no results
2023-12-11 01:11:14 +08:00