Ajeet D'Souza
a1be4012e0
fish: fix typo
2024-09-12 22:37:47 +05:30
Ajeet D'Souza
dc0d039be2
fish: use cd from data_dir
2024-09-12 04:43:06 +05:30
Ajeet D'Souza
1ef6d5b8fc
fish: Jump to directory from interactive selector (experimental)
2024-09-12 04:42:17 +05:30
phanium
297499a4fe
fix(fish): prefix builtin for all non-reserved words ( #865 )
2024-08-03 23:12:09 +05:30
Han Li
d655e026f5
Support `z -- dir` for zsh and fish ( #858 )
2024-07-20 10:49:43 +05:30
solodov
8da8f50eaa
support autocd option ( #695 )
...
* support autocd option
In bash, when autocd option is set and user enters a directory name as a
command, it results in a very specific call to cd:
cd -- [directory name]
zoxide's directory changing function passes all arguments to __zoxide_z as is,
including the "--" first argument. By detecting this and skipping the first
argument changing directory works with autocd set.
* remove directory check
just skip the first argument and pass the rest as is. checking for directory
breaks cd'ing to symlinked directories
* undo some of the hackery
tests are failing
2024-06-25 22:47:33 +05:30
alaviss
0dfe1c4073
fix(elvish): before-chdir should assign to oldpwd upvalue ( #818 )
...
elvish uses lexical scoping for closure capture, as such all `oldpwd`
references within the script refers to the `oldpwd` defined at the top.
However, before-chdir hook is trying to assign to `oldpwd` within the
editor scope, which is not used by this script.
This manifested as a bug in which:
```
~
> mkdir -p /tmp/another
~
> z /tmp
/tmp
> z another
/tmp/another
> z -
~
> # The previous dir should be /tmp not ~!
```
Because the hook was updating a variable that was not used.
Fix the hook so that before-chdir assign to the proper upvalue.
2024-05-29 15:06:28 +05:30
dedebenui
1a4c4933ca
fixed nushell init for new `path type` behavior ( #830 )
2024-05-29 13:15:56 +05:30
Ajeet D'Souza
1cb6312fb2
Return 0 only for Space+Tab
2024-05-06 10:47:50 +05:30
gi1242
208bb6375e
zsh: better local directory completion ( #787 )
2024-05-05 19:40:29 +05:30
Ashley Bartlett
5d8a7ea7b2
fix: Space-Tab interactive completions repeating ( #785 )
2024-04-13 02:30:59 +05:30
Ajeet D'Souza
94d3cba60e
nushell: handle queries that look like args ( #761 )
2024-03-16 23:10:35 +05:30
Ajeet D'Souza
5b2c9222f9
pwsh: handle queries that look like args ( #760 )
2024-03-16 12:30:19 +05:30
Anselm Schüler
88d494fc2d
Fix handling of directories that look like flags in fish ( #605 )
2024-03-16 11:31:42 +05:30
Ajeet D'Souza
012c67de63
Detect infinite loop on Fish ( #732 )
2024-02-24 04:00:38 +05:30
Ajeet D'Souza
c9183ce327
Always bind keys
2024-02-21 04:30:49 +05:30
Ajeet D'Souza
5592506456
Improve zsh completions ( #725 )
2024-02-21 01:45:20 +05:30
Ajeet D'Souza
cf34d02288
--cmd cd works on all shells
2024-02-16 02:31:47 +05:30
Zuruh
f32dc6bcd8
Update nushell template to use rest operator where needed ( #663 )
2024-02-13 03:01:04 +05:30
Ajeet D'Souza
3022cf3686
Fix CI
2023-11-21 02:48:58 +05:30
hackers267
f537a4e6d2
Update min version of Nushell 0.86.0 ( #632 )
...
Co-authored-by: Ajeet D'Souza <98ajeet@gmail.com>
2023-11-19 14:10:52 +05:30
matan h
3898d99f0c
Use `global` scope for PowerShell variables / functions ( #597 )
...
Co-authored-by: Ajeet D'Souza <98ajeet@gmail.com>
2023-08-04 07:25:48 +05:30
JT
786519aa8f
Update nushell env update syntax ( #587 )
2023-07-01 01:01:08 +05:30
Ajeet D'Souza
74ccc0232f
Support for PWD hooks on all versions of PowerShell ( #563 )
2023-05-07 19:19:53 +05:30
Ajeet D'Souza
0b51cb6591
Improve completions ( #562 )
2023-05-06 20:48:19 +05:30
Ajeet D'Souza
a7c8231e56
Update GitHub Actions
2023-05-05 13:24:44 +05:30
Ajeet D'Souza
56956779b2
Consistent style for environment variables
2023-04-16 19:54:55 +05:30
Ajeet D'Souza
4dff2b1602
Add support for older Fish versions
2023-04-15 00:08:16 +05:30
Lily Mara
4f475a75cb
Nushell: use new lambda syntax
2023-04-15 00:05:05 +05:30
Ajeet D'Souza
86741bbe6a
Define completions on __zoxide_z
2023-01-08 07:51:03 +05:30
Ajeet D'Souza
3ab0a7b8fd
Edit subcommand ( #498 )
2023-01-07 22:58:10 +05:30
Ajeet D'Souza
7af4da1dab
fzf: enable colors in preview when possible on macOS / BSD
2022-12-09 02:29:01 +05:30
Ajeet D'Souza
82d4f73aae
Use tab to cycle through completions ( #496 )
2022-12-09 01:35:13 +05:30
Ajeet D'Souza
e8c5f7a975
Upgrade Nushell to v0.73.0 ( #495 )
2022-12-08 23:24:43 +05:30
Ajeet D'Souza
4a47da0ed4
Don't hide output from chpwd hooks ( #474 )
2022-10-28 18:58:07 +05:30
Ajeet D'Souza
9d9bcfcac2
Handle UTF-8 output correctly in PowerShell
2022-09-18 11:33:41 +05:30
Aaron Kollasch
1d102d4ad2
Fix interactive completion with zsh-autocomplete ( #449 )
2022-09-06 13:18:44 +05:30
Ajeet D'Souza
b38b89eb3b
Add PWD hooks to Nushell ( #439 )
2022-08-13 13:18:21 +05:30
Ajeet D'Souza
b0c899b99f
Support `z -` in Nushell
2022-08-12 13:03:19 +05:30
Ajeet D'Souza
535762b80a
Fix double forward slash in Bash completions ( #438 )
2022-08-12 08:16:28 +05:30
Ajeet D'Souza
e4b9e12b0f
Improved preview window for fzf
2022-08-04 21:45:08 +05:30
Mark Keisler
1306fba4ac
zsh: allow `z` to navigate dirstack via `+n` and `-n`
2022-07-26 13:27:06 +05:30
Ajeet D'Souza
e7cc34b359
Change change fuzzy completion prefix to `z!`
2022-07-04 17:16:35 +05:30
Ajeet D'Souza
f830fbd670
Add minimum supported version for Fish
2022-07-01 15:03:30 +05:30
Ajeet D'Souza
7c7a2a0a3c
Add cargo-deb metadata ( #409 )
2022-06-26 00:37:44 +05:30
Ajeet D'Souza
10c11310ed
Escape spaces correctly in Bash completions ( #408 )
2022-06-25 17:20:28 +05:30
Ajeet D'Souza
4bf470dff6
Use nextest in CI
2022-05-19 17:12:25 +05:30
NextAlone
7d0ddedc6b
fix: interactive completion for fish ( #385 )
...
Co-authored-by: Ajeet D'Souza <98ajeet@gmail.com>
2022-04-27 19:05:52 +05:30
Ajeet D'Souza
6b2c6a2bc3
Fix Windows paths on Fish+Cygwin
2022-04-27 02:53:22 +05:30
Ajeet D'Souza
612f264dd4
Upgrade to Nushell 0.61 ( #362 )
2022-04-22 13:11:11 +05:30
Kid
24d21ec8ab
Simplify fish init script ( #370 )
2022-04-17 14:36:47 +05:30
Ajeet D'Souza
b71d33b5c1
Replace `--no-aliases` with `--no-cmd`
2022-04-11 03:41:51 +05:30
skwerlman
a0242d7c9a
Switch elvish template to new try/catch syntax ( #371 )
2022-03-31 16:50:29 +05:30
Ajeet D'Souza
17365710af
Copy owner from previous database file ( #364 )
2022-03-09 19:59:39 +05:30
Ajeet D'Souza
df148c834f
Require bash 4.4+ for completions ( #354 )
2022-02-25 04:15:19 +05:30
cherryblossom000
e34b6f930a
Use elvish v0.17 lambda syntax in completions generation ( #334 )
2022-01-12 13:11:48 +05:30
Ajeet D'Souza
fe553585e9
Use -- with cd so paths aren't treated as options
2021-12-31 04:52:14 +05:30
Ajeet D'Souza
027d259c89
Use long arguments for commands in Fish shell
2021-12-30 04:02:23 +05:30
Ajeet D'Souza
d106f4e358
Rename _z function ( #324 )
2021-12-28 23:40:10 +05:30
Ajeet D'Souza
339a789261
Avoid using completions on older Bash versions
2021-12-24 10:04:37 +05:30
Ajeet D'Souza
bd54ea3ea9
Ignore CRLF for shell scripts ( #315 )
2021-12-15 01:15:39 +05:30
Tushar
ff28b02801
Add path escapes for powershell ( #313 )
2021-12-13 12:16:12 +05:30
Ajeet D'Souza
58430d8c54
Add z completions for zsh ( #309 )
2021-12-05 14:51:32 +05:30
Ajeet D'Souza
72fd48ed97
Make fish completions consistent with Bash
2021-12-03 03:52:20 +05:30
Ajeet D'Souza
3e03ccccd6
Use better defaults for fzf
2021-12-02 00:55:33 +05:30
Oliver Mannion
c392a8bb75
Fix errors with set -eu ( #302 )
2021-11-20 01:52:15 +05:30
Ajeet D'Souza
9f2f2e978e
Use global scope for aliases ( #300 )
2021-11-11 02:22:23 +05:30
Ajeet D'Souza
ba7b445348
Improved completions for Fish
2021-11-01 22:11:28 +05:30
Ajeet D'Souza
904bfd46e7
Improved completions for Bash
2021-10-31 17:33:15 +05:30
Ajeet D'Souza
279e393d5c
Enable --strict checks for mypy
2021-10-29 02:22:25 +05:30
Ajeet D'Souza
ed47c2b1ac
Enable --cmd cd on PowerShell
2021-10-28 12:08:57 +05:30
Ajeet D'Souza
ad354cf849
Specify -c when erasing Fish completions
2021-10-22 00:27:35 +05:30
Ajeet D'Souza
095e9d3d6c
Fix hook initialization on Powershell ( #280 )
2021-10-15 08:27:09 +05:30
Ajeet D'Souza
0791356e3e
Use workspace for xtask ( #276 )
2021-10-12 01:35:24 +05:30
Ajeet D'Souza
8ec3a8b6c6
xonsh: Fix error messages ( #273 )
2021-10-05 15:56:04 +05:30
Kid
2f2f588595
Improve Fish's completions ( #212 )
2021-09-18 22:56:43 +05:30
Ajeet D'Souza
41b8f08c46
Upgrade Nushell to v0.37.0 ( #266 )
2021-09-18 01:55:51 +05:30
Ajeet D'Souza
58313c67e7
Add cargo xtask test
2021-09-18 01:29:46 +05:30
Ajeet D'Souza
9d4c3096df
Explicitly trim newlines
2021-09-09 20:09:13 +05:30
Ajeet D'Souza
bc8958943b
Simplify hook logic
2021-09-09 09:21:46 +05:30
Ajeet D'Souza
e1127f4b72
Assume $E:SHLVL is already set
2021-09-05 23:58:35 +05:30
Ajeet D'Souza
ecc64be909
Add bash/elvish completions for z ( #257 )
2021-09-04 16:01:50 +05:30
Ajeet D'Souza
a80f20520e
Remove unnecessary echo
2021-09-03 10:11:42 +05:30
Ajeet D'Souza
9ff899308d
Use PROMPT_STRING environment variable
2021-08-31 21:28:23 +05:30
Ajeet D'Souza
3ca89d0e6e
Use shell variables instead of env variables
2021-08-31 16:28:49 +05:30
Ajeet D'Souza
6be3998bb6
Fixes for elvish 0.16.0 ( #255 )
2021-08-24 02:00:34 +05:30
Ajeet D'Souza
04924bbec0
Fix Xonsh test
2021-08-16 13:20:48 +05:30
Ajeet D'Souza
59717fa8d3
Release v0.7.3
2021-08-05 19:22:13 +05:30
Ajeet D'Souza
05a95fe525
Add generated code warning for Nushell
2021-08-05 14:22:12 +05:30
Ajeet D'Souza
3bb21ede97
zoxide-{add,remove} should accept multiple arguments ( #243 )
2021-07-29 11:45:09 +05:30
Evgeny
712d3403ef
Get PWD from shell instead of the os.environ ( #239 )
2021-07-22 23:17:35 +05:30
Ajeet D'Souza
06f5a8e684
Remove preceding semicolon in PROMPT_COMMAND
2021-07-21 23:35:33 +05:30
Ajeet D'Souza
e3c3c181a2
Remove conflicting alias definitions ( #237 )
2021-07-21 02:39:18 +05:30
Ajeet D'Souza
20d9f3d18c
Fix init error in PowerShell strict mode ( #233 )
2021-07-17 17:57:04 +05:30
Ajeet D'Souza
b9b0abe471
Upgrade tests to Nushell 0.33
2021-07-11 20:22:07 +05:30
Ajeet D'Souza
340454b49b
Fixes for Nushell 0.33
2021-07-01 02:11:46 +05:30
Ajeet D'Souza
36f3967f9c
Support Nushell 0.32.0 ( #219 )
2021-06-03 02:49:21 +05:30
Ajeet D'Souza
d39c9a1fc6
Fix Elvish install instructions
2021-05-27 02:34:01 +05:30
Kid
85d0fbe6ee
Support Fish's private mode ( #211 )
2021-05-18 07:51:41 +05:30
Ajeet D'Souza
6069bea81a
PowerShell should only call hook within filesystem ( #210 )
2021-05-14 10:04:13 +05:30