Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package zoxide for openSUSE:Factory checked in at 2024-09-23 15:19:27 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/zoxide (Old) and /work/SRC/openSUSE:Factory/.zoxide.new.29891 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "zoxide" Mon Sep 23 15:19:27 2024 rev:10 rq:1202327 version:0.9.6 Changes: -------- --- /work/SRC/openSUSE:Factory/zoxide/zoxide.changes 2024-09-16 17:43:19.593678919 +0200 +++ /work/SRC/openSUSE:Factory/.zoxide.new.29891/zoxide.changes 2024-09-23 15:19:56.411764131 +0200 @@ -1,0 +2,7 @@ +Thu Sep 19 13:15:08 UTC 2024 - Michael Vetter <[email protected]> + +- Update to 0.9.6: + * Fish: builtin abbr doesn't work on older versions. + * Zsh: make __zoxide_z_complete available with --no-cmd. + +------------------------------------------------------------------- Old: ---- zoxide-0.9.5.tar.gz New: ---- zoxide-0.9.6.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ zoxide.spec ++++++ --- /var/tmp/diff_new_pack.f8lfjr/_old 2024-09-23 15:19:56.983787854 +0200 +++ /var/tmp/diff_new_pack.f8lfjr/_new 2024-09-23 15:19:56.987788020 +0200 @@ -19,7 +19,7 @@ %global rustflags '-Clink-arg=-Wl,-z,relro,-z,now' Name: zoxide -Version: 0.9.5 +Version: 0.9.6 Release: 0 Summary: A smarter cd command License: MIT ++++++ _service ++++++ --- /var/tmp/diff_new_pack.f8lfjr/_old 2024-09-23 15:19:57.027789679 +0200 +++ /var/tmp/diff_new_pack.f8lfjr/_new 2024-09-23 15:19:57.031789845 +0200 @@ -3,7 +3,7 @@ <param name="url">https://github.com/ajeetdsouza/zoxide</param> <param name="scm">git</param> <param name="exclude">.git</param> - <param name="revision">v0.9.5</param> + <param name="revision">v0.9.6</param> <param name="versionformat">@PARENT_TAG@</param> <param name="versionrewrite-pattern">v(.*)</param> </service> ++++++ vendor.tar.xz ++++++ /work/SRC/openSUSE:Factory/zoxide/vendor.tar.xz /work/SRC/openSUSE:Factory/.zoxide.new.29891/vendor.tar.xz differ: char 15, line 1 ++++++ zoxide-0.9.5.tar.gz -> zoxide-0.9.6.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zoxide-0.9.5/.github/workflows/ci.yml new/zoxide-0.9.6/.github/workflows/ci.yml --- old/zoxide-0.9.5/.github/workflows/ci.yml 2024-09-13 02:47:34.000000000 +0200 +++ new/zoxide-0.9.6/.github/workflows/ci.yml 2024-09-19 10:11:26.000000000 +0200 @@ -33,7 +33,7 @@ components: rustfmt profile: minimal toolchain: nightly - - uses: cachix/install-nix-action@V27 + - uses: cachix/install-nix-action@V28 if: ${{ matrix.os != 'windows-latest' }} with: nix_path: nixpkgs=channel:nixos-unstable diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zoxide-0.9.5/CHANGELOG.md new/zoxide-0.9.6/CHANGELOG.md --- old/zoxide-0.9.5/CHANGELOG.md 2024-09-13 02:47:34.000000000 +0200 +++ new/zoxide-0.9.6/CHANGELOG.md 2024-09-19 10:11:26.000000000 +0200 @@ -7,18 +7,25 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.9.6] - 2024-09-19 + +### Fixed + +- Fish: `builtin abbr` doesn't work on older versions. +- Zsh: make `__zoxide_z_complete` available with `--no-cmd`. + ## [0.9.5] - 2024-09-13 ### Added -- zsh: improved `cd` completions. +- Zsh: improved `cd` completions. - Lazily delete excluded directories from the database. -- fish: detect infinite loop when using `alias cd=z`. +- Fish: detect infinite loop when using `alias cd=z`. - Installer: added flags for `--bin-dir`, `--man-dir`, `--arch`, and `--sudo`. - Nushell: support for v0.94.0+. -- bash/fish/zsh: support for `z -- dir` style queries. -- fish: improved Space-Tab completions. -- ksh: added support for the Korn shell. +- Bash/Fish/Zsh: support for `z -- dir` style queries. +- Fish: improved Space-Tab completions. +- Ksh: added support for the Korn shell. ### Changed @@ -28,12 +35,12 @@ ### Fixed -- zsh: Space-Tab completion repeating output multiple times when matching single +- Zsh: Space-Tab completion repeating output multiple times when matching single directory -- fish / Nushell / PowerShell: handle queries that look like args (e.g. `z -x`). -- elvish: `z -` now works as expected. -- fish: generated shell code avoids using aliased builtins. -- fish: `cd` command is now copied directly from +- Fish / Nushell / PowerShell: handle queries that look like args (e.g. `z -x`). +- Elvish: `z -` now works as expected. +- Fish: generated shell code avoids using aliased builtins. +- Fish: `cd` command is now copied directly from `$__fish_data_dir/functions/cd.fish`. This should minimize the chances of an infinite loop when aliasing `cd=z`. - Symlinks not getting added to the database when `$_ZO_RESOLVE_SYMLINKS=0`. @@ -43,7 +50,7 @@ ### Changed -- zsh: improved Space-Tab completions. +- Zsh: improved Space-Tab completions. ## [0.9.3] - 2024-02-13 @@ -285,9 +292,9 @@ ### Fixed -- `cd -` on fish shells. +- `cd -` on Fish shells. - `__zoxide_hook` no longer changes value of `$?` within `$PROMPT_COMMAND` on - bash. + Bash. ### Removed @@ -326,7 +333,7 @@ - `$_ZO_EXCLUDE_DIRS` now supports globs. - `zoxide init` now defines `__zoxide_z*` functions that can be aliased as needed. -- Support for the [xonsh](https://xon.sh/) shell. +- Support for the [Xonsh](https://xon.sh/) shell. - `zoxide import` can now import from Autojump. ### Changed @@ -335,7 +342,7 @@ ### Fixed -- Clobber conflicting alias definitions in bash/fish/zsh/POSIX shells. +- Clobber conflicting alias definitions in Bash/Fish/Zsh/POSIX shells. ### Removed @@ -346,7 +353,7 @@ ### Fixed -- Bug in Fish init script +- Bug in Fish init script. ## [0.4.2] - 2020-07-03 @@ -371,7 +378,7 @@ ### Added -- Support for powershell. +- Support for PowerShell. ### Removed @@ -399,7 +406,7 @@ ### Fixed -- fish no longer `cd`s to the user's home when no match is found. +- Fish no longer `cd`s to the user's home when no match is found. ## [0.3.1] - 2020-04-03 @@ -439,7 +446,7 @@ ### Fixed -- Incorrect exit codes in `z` command on fish. +- Incorrect exit codes in `z` command on Fish. ### Removed @@ -452,7 +459,7 @@ - `$_ZO_ECHO` to echo match before `cd`ing. - Minimal `ranger` plugin. - PWD hook to only update the database when the current directory is changed. -- Support for bash. +- Support for Bash. - `migrate` subcommand to allow users to migrate from `z`. ### Fixed @@ -466,11 +473,11 @@ - `init` subcommand to remove dependency on shell plugin managers. - Support for `z -` command to go to previous directory. - `Cargo.lock` for more reproducible builds. -- Support for the fish shell. +- Support for the Fish shell. ### Fixed -- `_zoxide_precmd` overriding other precmd hooks on zsh. +- `_zoxide_precmd` overriding other precmd hooks on Zsh. ## [0.1.1] - 2020-03-08 @@ -492,7 +499,7 @@ ### Added - GitHub Actions pipeline to build and upload releases. -- Support for zsh. +- Add support for Zsh. [0.9.5]: https://github.com/ajeetdsouza/zoxide/compare/v0.9.4...v0.9.5 [0.9.4]: https://github.com/ajeetdsouza/zoxide/compare/v0.9.3...v0.9.4 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zoxide-0.9.5/Cargo.lock new/zoxide-0.9.6/Cargo.lock --- old/zoxide-0.9.5/Cargo.lock 2024-09-13 02:47:34.000000000 +0200 +++ new/zoxide-0.9.6/Cargo.lock 2024-09-19 10:11:26.000000000 +0200 @@ -1090,7 +1090,7 @@ [[package]] name = "zoxide" -version = "0.9.5" +version = "0.9.6" dependencies = [ "anyhow", "assert_cmd", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zoxide-0.9.5/Cargo.toml new/zoxide-0.9.6/Cargo.toml --- old/zoxide-0.9.5/Cargo.toml 2024-09-13 02:47:34.000000000 +0200 +++ new/zoxide-0.9.6/Cargo.toml 2024-09-19 10:11:26.000000000 +0200 @@ -10,7 +10,7 @@ readme = "README.md" repository = "https://github.com/ajeetdsouza/zoxide" rust-version = "1.74.1" -version = "0.9.5" +version = "0.9.6" [badges] maintenance = { status = "actively-developed" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zoxide-0.9.5/README.md new/zoxide-0.9.6/README.md --- old/zoxide-0.9.5/README.md 2024-09-13 02:47:34.000000000 +0200 +++ new/zoxide-0.9.6/README.md 2024-09-19 10:11:26.000000000 +0200 @@ -249,7 +249,11 @@ > Add this to the <ins>**end**</ins> of your config file (usually `~/.kshrc`): > > ```sh + > # ksh93 > eval "$(zoxide init ksh)" + > + > # mksh, oksh, etc. + > eval "$(zoxide init ksh --hook=prompt)" > ``` </details> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zoxide-0.9.5/src/shell.rs new/zoxide-0.9.6/src/shell.rs --- old/zoxide-0.9.5/src/shell.rs 2024-09-13 02:47:34.000000000 +0200 +++ new/zoxide-0.9.6/src/shell.rs 2024-09-19 10:11:26.000000000 +0200 @@ -115,6 +115,16 @@ } #[apply(opts)] + fn fish_no_builtin_abbr(cmd: Option<&str>, hook: InitHook, echo: bool, resolve_symlinks: bool) { + let opts = Opts { cmd, hook, echo, resolve_symlinks }; + let source = Fish(&opts).render().unwrap(); + assert!( + !source.contains("builtin abbr"), + "`builtin abbr` does not work on older versions of Fish" + ); + } + + #[apply(opts)] fn fish_fish(cmd: Option<&str>, hook: InitHook, echo: bool, resolve_symlinks: bool) { let opts = Opts { cmd, hook, echo, resolve_symlinks }; let source = Fish(&opts).render().unwrap(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zoxide-0.9.5/templates/fish.txt new/zoxide-0.9.6/templates/fish.txt --- old/zoxide-0.9.5/templates/fish.txt 2024-09-13 02:47:34.000000000 +0200 +++ new/zoxide-0.9.6/templates/fish.txt 2024-09-19 10:11:26.000000000 +0200 @@ -112,10 +112,10 @@ {%- match cmd %} {%- when Some with (cmd) %} -builtin abbr --erase {{cmd}} &>/dev/null +abbr --erase {{cmd}} &>/dev/null alias {{cmd}}=__zoxide_z -builtin abbr --erase {{cmd}}i &>/dev/null +abbr --erase {{cmd}}i &>/dev/null alias {{cmd}}i=__zoxide_zi {%- when None %} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/zoxide-0.9.5/templates/zsh.txt new/zoxide-0.9.6/templates/zsh.txt --- old/zoxide-0.9.5/templates/zsh.txt 2024-09-13 02:47:34.000000000 +0200 +++ new/zoxide-0.9.6/templates/zsh.txt 2024-09-19 10:11:26.000000000 +0200 @@ -91,6 +91,12 @@ __zoxide_zi "$@" } +{%- when None %} + +{{ not_configured }} + +{%- endmatch %} + # Completions. if [[ -o zle ]]; then __zoxide_result='' @@ -126,7 +132,7 @@ function __zoxide_z_complete_helper() { if [[ -n "${__zoxide_result}" ]]; then # shellcheck disable=SC2034,SC2296 - BUFFER="{{ cmd }} ${(q-)__zoxide_result}" + BUFFER="{{ cmd.unwrap_or("cd") }} ${(q-)__zoxide_result}" __zoxide_result='' \builtin zle reset-prompt \builtin zle accept-line @@ -135,16 +141,12 @@ fi } \builtin zle -N __zoxide_z_complete_helper +{%- if let Some(cmd) = cmd %} [[ "${+functions[compdef]}" -ne 0 ]] && \compdef __zoxide_z_complete {{ cmd }} +{%- endif %} fi -{%- when None %} - -{{ not_configured }} - -{%- endmatch %} - {{ section }} # To initialize zoxide, add this to your configuration (usually ~/.zshrc): #
