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-02-21 17:58:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/zoxide (Old)
 and      /work/SRC/openSUSE:Factory/.zoxide.new.1706 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "zoxide"

Wed Feb 21 17:58:01 2024 rev:8 rq:1148400 version:0.9.4

Changes:
--------
--- /work/SRC/openSUSE:Factory/zoxide/zoxide.changes    2024-02-14 
23:19:21.033576333 +0100
+++ /work/SRC/openSUSE:Factory/.zoxide.new.1706/zoxide.changes  2024-02-21 
17:58:09.835094808 +0100
@@ -1,0 +2,6 @@
+Wed Feb 21 06:24:35 UTC 2024 - Michael Vetter <[email protected]>
+
+- Update to 0.9.4:
+  * zsh: improved Space-Tab completions
+
+-------------------------------------------------------------------
@@ -4 +10 @@
-- Update to 0.9.2:
+- Update to 0.9.3:

Old:
----
  zoxide-0.9.3.tar.gz

New:
----
  zoxide-0.9.4.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ zoxide.spec ++++++
--- /var/tmp/diff_new_pack.ne21Vu/_old  2024-02-21 17:58:11.623159465 +0100
+++ /var/tmp/diff_new_pack.ne21Vu/_new  2024-02-21 17:58:11.631159755 +0100
@@ -19,7 +19,7 @@
 %global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
 
 Name:           zoxide
-Version:        0.9.3
+Version:        0.9.4
 Release:        0
 Summary:        A smarter cd command
 License:        MIT

++++++ _service ++++++
--- /var/tmp/diff_new_pack.ne21Vu/_old  2024-02-21 17:58:11.855167855 +0100
+++ /var/tmp/diff_new_pack.ne21Vu/_new  2024-02-21 17:58:11.903169591 +0100
@@ -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.3</param>
+        <param name="revision">v0.9.4</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.1706/vendor.tar.xz differ: char 15, line 
1

++++++ zoxide-0.9.3.tar.gz -> zoxide-0.9.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zoxide-0.9.3/CHANGELOG.md 
new/zoxide-0.9.4/CHANGELOG.md
--- old/zoxide-0.9.3/CHANGELOG.md       2024-02-12 23:36:46.000000000 +0100
+++ new/zoxide-0.9.4/CHANGELOG.md       2024-02-21 00:06:08.000000000 +0100
@@ -7,6 +7,12 @@
 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.4] - 2024-02-21
+
+### Changed
+
+- zsh: improved Space-Tab completions.
+
 ## [0.9.3] - 2024-02-13
 
 ### Added
@@ -456,6 +462,7 @@
 - GitHub Actions pipeline to build and upload releases.
 - Support for zsh.
 
+[0.9.4]: https://github.com/ajeetdsouza/zoxide/compare/v0.9.3...v0.9.4
 [0.9.3]: https://github.com/ajeetdsouza/zoxide/compare/v0.9.2...v0.9.3
 [0.9.2]: https://github.com/ajeetdsouza/zoxide/compare/v0.9.1...v0.9.2
 [0.9.1]: https://github.com/ajeetdsouza/zoxide/compare/v0.9.0...v0.9.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zoxide-0.9.3/Cargo.lock new/zoxide-0.9.4/Cargo.lock
--- old/zoxide-0.9.3/Cargo.lock 2024-02-12 23:36:46.000000000 +0100
+++ new/zoxide-0.9.4/Cargo.lock 2024-02-21 00:06:08.000000000 +0100
@@ -19,9 +19,9 @@
 
 [[package]]
 name = "anstream"
-version = "0.6.11"
+version = "0.6.12"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "6e2e1ebcb11de5c03c67de28a7df593d32191b44939c482e97702baaaa6ab6a5"
+checksum = "96b09b5178381e0874812a9b157f7fe84982617e48f71f4e3235482775e5b540"
 dependencies = [
  "anstyle",
  "anstyle-parse",
@@ -67,9 +67,9 @@
 
 [[package]]
 name = "anyhow"
-version = "1.0.79"
+version = "1.0.80"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "080e9890a082662b09c1ad45f567faeeb47f22b5fb23895fbe1e651e718e25ca"
+checksum = "5ad32ce52e4161730f7098c077cd2ed6229b5804ccf99e5366be1ab72a98b4e1"
 
 [[package]]
 name = "askama"
@@ -92,7 +92,7 @@
  "mime_guess",
  "proc-macro2",
  "quote",
- "syn 2.0.48",
+ "syn 2.0.50",
 ]
 
 [[package]]
@@ -112,9 +112,9 @@
 
 [[package]]
 name = "assert_cmd"
-version = "2.0.13"
+version = "2.0.14"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "00ad3f3a942eee60335ab4342358c161ee296829e0d16ff42fc1d6cb07815467"
+checksum = "ed72493ac66d5804837f480ab3766c72bdfab91a65e565fc54fa9e42db0073a8"
 dependencies = [
  "anstyle",
  "bstr",
@@ -165,9 +165,9 @@
 
 [[package]]
 name = "clap"
-version = "4.5.0"
+version = "4.5.1"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "80c21025abd42669a92efc996ef13cfb2c5c627858421ea58d5c3b331a6c134f"
+checksum = "c918d541ef2913577a0f9566e9ce27cb35b6df072075769e0b26cb5a554520da"
 dependencies = [
  "clap_builder",
  "clap_derive",
@@ -175,9 +175,9 @@
 
 [[package]]
 name = "clap_builder"
-version = "4.5.0"
+version = "4.5.1"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "458bf1f341769dfcf849846f65dffdf9146daa56bcd2a47cb4e1de9915567c99"
+checksum = "9f3e7391dad68afb0c2ede1bf619f579a3dc9c2ec67f089baa397123a2f3d1eb"
 dependencies = [
  "anstream",
  "anstyle",
@@ -187,9 +187,9 @@
 
 [[package]]
 name = "clap_complete"
-version = "4.5.0"
+version = "4.5.1"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "299353be8209bd133b049bf1c63582d184a8b39fd9c04f15fe65f50f88bdfe6c"
+checksum = "885e4d7d5af40bfb99ae6f9433e292feac98d452dcb3ec3d25dfe7552b77da8c"
 dependencies = [
  "clap",
 ]
@@ -213,7 +213,7 @@
  "heck",
  "proc-macro2",
  "quote",
- "syn 2.0.48",
+ "syn 2.0.50",
 ]
 
 [[package]]
@@ -457,7 +457,7 @@
  "proc-macro2",
  "proc-macro2-diagnostics",
  "quote",
- "syn 2.0.48",
+ "syn 2.0.50",
 ]
 
 [[package]]
@@ -510,7 +510,7 @@
 dependencies = [
  "proc-macro2",
  "quote",
- "syn 2.0.48",
+ "syn 2.0.50",
  "version_check",
  "yansi",
 ]
@@ -632,7 +632,7 @@
  "regex",
  "relative-path",
  "rustc_version",
- "syn 2.0.48",
+ "syn 2.0.50",
  "unicode-ident",
 ]
 
@@ -645,7 +645,7 @@
  "quote",
  "rand",
  "rustc_version",
- "syn 2.0.48",
+ "syn 2.0.50",
 ]
 
 [[package]]
@@ -672,28 +672,28 @@
 
 [[package]]
 name = "semver"
-version = "1.0.21"
+version = "1.0.22"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "b97ed7a9823b74f99c7742f5336af7be5ecd3eeafcb1507d1fa93347b1d589b0"
+checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca"
 
 [[package]]
 name = "serde"
-version = "1.0.196"
+version = "1.0.197"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32"
+checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2"
 dependencies = [
  "serde_derive",
 ]
 
 [[package]]
 name = "serde_derive"
-version = "1.0.196"
+version = "1.0.197"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67"
+checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b"
 dependencies = [
  "proc-macro2",
  "quote",
- "syn 2.0.48",
+ "syn 2.0.50",
 ]
 
 [[package]]
@@ -721,9 +721,9 @@
 
 [[package]]
 name = "syn"
-version = "2.0.48"
+version = "2.0.50"
 source = "registry+https://github.com/rust-lang/crates.io-index";
-checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f"
+checksum = "74f1bdc9872430ce9b75da68329d1c1746faf50ffac5f19e02b71e37ff881ffb"
 dependencies = [
  "proc-macro2",
  "quote",
@@ -765,7 +765,7 @@
 dependencies = [
  "proc-macro2",
  "quote",
- "syn 2.0.48",
+ "syn 2.0.50",
 ]
 
 [[package]]
@@ -963,7 +963,7 @@
 
 [[package]]
 name = "zoxide"
-version = "0.9.3"
+version = "0.9.4"
 dependencies = [
  "anyhow",
  "askama",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zoxide-0.9.3/Cargo.toml new/zoxide-0.9.4/Cargo.toml
--- old/zoxide-0.9.3/Cargo.toml 2024-02-12 23:36:46.000000000 +0100
+++ new/zoxide-0.9.4/Cargo.toml 2024-02-21 00:06:08.000000000 +0100
@@ -10,7 +10,7 @@
 readme = "README.md"
 repository = "https://github.com/ajeetdsouza/zoxide";
 rust-version = "1.74.1"
-version = "0.9.3"
+version = "0.9.4"
 
 [badges]
 maintenance = { status = "actively-developed" }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zoxide-0.9.3/README.md new/zoxide-0.9.4/README.md
--- old/zoxide-0.9.3/README.md  2024-02-12 23:36:46.000000000 +0100
+++ new/zoxide-0.9.4/README.md  2024-02-21 00:06:08.000000000 +0100
@@ -76,7 +76,7 @@
    please [open an issue][issues].
 
    <details>
-   <summary>Linux</summary>
+   <summary>Linux / WSL</summary>
 
    > The recommended way to install zoxide is via the install script:
    >
@@ -91,22 +91,24 @@
    > | **_Any_**           | **[crates.io]**         | `cargo install zoxide 
--locked`                                                                       
|
    > | _Any_               | [asdf]                  | `asdf plugin add zoxide 
https://github.com/nyrst/asdf-zoxide.git` <br /> `asdf install zoxide latest` |
    > | _Any_               | [conda-forge]           | `conda install -c 
conda-forge zoxide`                                                             
    |
+   > | _Any_               | [guix]                  | `guix install zoxide`   
                                                                              |
    > | _Any_               | [Linuxbrew]             | `brew install zoxide`   
                                                                              |
    > | _Any_               | [nixpkgs]               | `nix-env -iA 
nixpkgs.zoxide`                                                                 
         |
    > | Alpine Linux 3.13+  | [Alpine Linux Packages] | `apk add zoxide`        
                                                                              |
    > | Arch Linux          | [Arch Linux Extra]      | `pacman -S zoxide`      
                                                                              |
    > | CentOS 7+           | [Copr]                  | `dnf copr enable 
atim/zoxide` <br /> `dnf install zoxide`                                        
     |
-   > | Debian 11+[^1]      | [Debian Packages]       | `apt install zoxide`    
                                                                              |
-   > | Devuan 4.0+[^1]     | [Devuan Packages]       | `apt install zoxide`    
                                                                              |
+   > | ~Debian 11+~[^1]    | ~[Debian Packages]~     | ~`apt install zoxide`~  
                                                                              |
+   > | Devuan 4.0+         | [Devuan Packages]       | `apt install zoxide`    
                                                                              |
    > | Fedora 32+          | [Fedora Packages]       | `dnf install zoxide`    
                                                                              |
    > | Gentoo              | [GURU Overlay]          | `eselect repository 
enable guru` <br /> `emerge --sync guru` <br /> `emerge app-shells/zoxide`      
  |
    > | Manjaro             |                         | `pacman -S zoxide`      
                                                                              |
    > | openSUSE Tumbleweed | [openSUSE Factory]      | `zypper install zoxide` 
                                                                              |
-   > | Parrot OS[^1]       |                         | `apt install zoxide`    
                                                                              |
-   > | Raspbian 11+[^1]    | [Raspbian Packages]     | `apt install zoxide`    
                                                                              |
+   > | ~Parrot OS~[^1]     |                         | ~`apt install zoxide`~  
                                                                              |
+   > | ~Raspbian 11+~[^1]  | ~[Raspbian Packages]~   | ~`apt install zoxide`~  
                                                                              |
    > | Rhino Linux         | [Pacstall Packages]     | `pacstall -I 
zoxide-deb`                                                                     
         |
    > | Slackware 15.0+     | [SlackBuilds]           | 
[Instructions][slackbuilds-howto]                                               
                      |
-   > | Ubuntu 21.04+[^1]   | [Ubuntu Packages]       | `apt install zoxide`    
                                                                              |
+   > | Solus               | [Solus Packages]        | `eopkg install zoxide`  
                                                                              |
+   > | ~Ubuntu 21.04+~[^1] | ~[Ubuntu Packages]~     | ~`apt install zoxide`~  
                                                                              |
    > | Void Linux          | [Void Linux Packages]   | `xbps-install -S 
zoxide`                                                                         
     |
 
    </details>
@@ -136,6 +138,9 @@
    <details>
    <summary>Windows</summary>
 
+   > zoxide works with PowerShell, as well as shells running in Cygwin, Git
+   > Bash, and MSYS2.
+   >
    > The recommended way to install zoxide is via `winget`:
    >
    > ```sh
@@ -150,12 +155,6 @@
    > | [Chocolatey]    | `choco install zoxide`                |
    > | [conda-forge]   | `conda install -c conda-forge zoxide` |
    > | [Scoop]         | `scoop install zoxide`                |
-   >
-   > If you're using Cygwin, Git Bash, or MSYS2, use the install script 
instead:
-   >
-   > ```sh
-   > curl -sS 
https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash
-   > ```
 
    </details>
 
@@ -170,6 +169,12 @@
    > | DragonFly BSD | [DPorts]        | `pkg install zoxide`            |
    > | FreeBSD       | [FreshPorts]    | `pkg install zoxide`            |
    > | NetBSD        | [pkgsrc]        | `pkgin install zoxide`          |
+   >
+   > Or, run this command in your terminal:
+   >
+   > ```sh
+   > curl -sS 
https://raw.githubusercontent.com/ajeetdsouza/zoxide/main/install.sh | bash
+   > ```
 
    </details>
 
@@ -372,7 +377,7 @@
 - `--cmd`
   - Changes the prefix of the `z` and `zi` commands.
   - `--cmd j` would change the commands to (`j`, `ji`).
-  - `--cmd cd` would replace the `cd` command (doesn't work on Nushell / POSIX 
shells).
+  - `--cmd cd` would replace the `cd` command.
 - `--hook <HOOK>`
   - Changes how often zoxide increments a directory's score:
     | Hook     | Description                       |
@@ -477,6 +482,7 @@
 [fzf-man]: https://manpages.ubuntu.com/manpages/en/man1/fzf.1.html
 [fzf]: https://github.com/junegunn/fzf
 [glob]: https://man7.org/linux/man-pages/man7/glob.7.html
+[guix]: https://packages.guix.gnu.org/packages/zoxide/
 [guru overlay]: https://github.com/gentoo-mirror/guru
 [homebrew]: https://formulae.brew.sh/formula/zoxide
 [issues]: https://github.com/ajeetdsouza/zoxide/issues/new
@@ -497,7 +503,9 @@
 [raspbian packages]: 
https://archive.raspbian.org/raspbian/pool/main/r/rust-zoxide/
 [releases]: https://github.com/ajeetdsouza/zoxide/releases
 [scoop]: https://github.com/ScoopInstaller/Main/tree/master/bucket/zoxide.json
+[slackbuilds]: https://slackbuilds.org/repository/15.0/system/zoxide/
 [slackbuilds-howto]: https://slackbuilds.org/howto/
+[solus packages]: 
https://github.com/getsolus/packages/tree/main/packages/z/zoxide/
 [t]: https://github.com/joshmedeski/t-smart-tmux-session-manager
 [telescope-zoxide]: https://github.com/jvgrootveld/telescope-zoxide
 [telescope.nvim]: https://github.com/nvim-telescope/telescope.nvim
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zoxide-0.9.3/templates/nushell.txt 
new/zoxide-0.9.4/templates/nushell.txt
--- old/zoxide-0.9.3/templates/nushell.txt      2024-02-12 23:36:46.000000000 
+0100
+++ new/zoxide-0.9.4/templates/nushell.txt      2024-02-21 00:06:08.000000000 
+0100
@@ -53,7 +53,7 @@
 }
 
 # Jump to a directory using interactive search.
-def --env __zoxide_zi  [...rest:string] {
+def --env __zoxide_zi [...rest:string] {
   cd $'(zoxide query --interactive -- ...$rest | str trim -r -c "\n")'
 {%- if echo %}
   echo $env.PWD
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/zoxide-0.9.3/templates/zsh.txt 
new/zoxide-0.9.4/templates/zsh.txt
--- old/zoxide-0.9.3/templates/zsh.txt  2024-02-12 23:36:46.000000000 +0100
+++ new/zoxide-0.9.4/templates/zsh.txt  2024-02-21 00:06:08.000000000 +0100
@@ -52,8 +52,6 @@
 # When using zoxide with --no-cmd, alias these internal functions as desired.
 #
 
-__zoxide_z_prefix='z#'
-
 # Jump to a directory using only keywords.
 function __zoxide_z() {
     # shellcheck disable=SC2199
@@ -61,15 +59,10 @@
         __zoxide_cd ~
     elif [[ "$#" -eq 1 ]] && { [[ -d "$1" ]] || [[ "$1" = '-' ]] || [[ "$1" =~ 
^[-+][0-9]$ ]]; }; then
         __zoxide_cd "$1"
-    elif [[ "$@[-1]" == "${__zoxide_z_prefix}"?* ]]; then
-        # shellcheck disable=SC2124
-        \builtin local result="${@[-1]}"
-        __zoxide_cd "{{ "${result:${#__zoxide_z_prefix}}" }}"
     else
         \builtin local result
         # shellcheck disable=SC2312
-        result="$(\command zoxide query --exclude "$(__zoxide_pwd)" -- "$@")" 
&&
-            __zoxide_cd "${result}"
+        result="$(\command zoxide query --exclude "$(__zoxide_pwd)" -- "$@")" 
&& __zoxide_cd "${result}"
     fi
 }
 
@@ -79,41 +72,63 @@
     result="$(\command zoxide query --interactive -- "$@")" && __zoxide_cd 
"${result}"
 }
 
+{{ section }}
+# Commands for zoxide. Disable these using --no-cmd.
+#
+
+{%- match cmd %}
+{%- when Some with (cmd) %}
+
+function {{ cmd }}() {
+    __zoxide_z "$@"
+}
+
+function {{ cmd }}i() {
+    __zoxide_zi "$@"
+}
+
 # Completions.
 if [[ -o zle ]]; then
+    __zoxide_result=''
+
     function __zoxide_z_complete() {
         # Only show completions when the cursor is at the end of the line.
         # shellcheck disable=SC2154
         [[ "{{ "${#words[@]}" }}" -eq "${CURRENT}" ]] || return 0
 
         if [[ "{{ "${#words[@]}" }}" -eq 2 ]]; then
+            # Show completions for local directories.
             _files -/
-        elif [[ "${words[-1]}" == '' ]] && [[ "${words[-2]}" != 
"${__zoxide_z_prefix}"?* ]]; then
-            \builtin local result
-            # shellcheck disable=SC2086,SC2312
-            if result="$(\command zoxide query --exclude "$(__zoxide_pwd)" 
--interactive -- ${words[2,-1]})"; then
-                result="${__zoxide_z_prefix}${result}"
-                # shellcheck disable=SC2296
-                compadd -Q "${(q-)result}"
-            fi
+        elif [[ "${words[-1]}" == '' ]]; then
+            # Show completions for Space-Tab.
+            # shellcheck disable=SC2086
+            __zoxide_result="$(\command zoxide query --exclude "$(__zoxide_pwd 
|| \builtin true)" --interactive -- ${words[2,-1]})" || __zoxide_result=''
+
+            # Bind '\e[0n' to helper function.
+            \builtin bindkey '\e[0n' '__zoxide_z_complete_helper'
+            # Send '\e[0n' to console input.
             \builtin printf '\e[5n'
         fi
+
+        # Report that the completion was successful, so that we don't fall back
+        # to another completion function.
         return 0
     }
 
-    \builtin bindkey '\e[0n' 'reset-prompt'
-    [[ "${+functions[compdef]}" -ne 0 ]] && \compdef __zoxide_z_complete 
__zoxide_z
-fi
-
-{{ section }}
-# Commands for zoxide. Disable these using --no-cmd.
-#
-
-{%- match cmd %}
-{%- when Some with (cmd) %}
+    function __zoxide_z_complete_helper() {
+        if [[ -n "${__zoxide_result}" ]]; then
+            # shellcheck disable=SC2034,SC2296
+            BUFFER="{{ cmd }} ${(q-)__zoxide_result}"
+            \builtin zle reset-prompt
+            \builtin zle accept-line
+        else
+            \builtin zle reset-prompt
+        fi
+    }
+    \builtin zle -N __zoxide_z_complete_helper
 
-\builtin alias {{cmd}}=__zoxide_z
-\builtin alias {{cmd}}i=__zoxide_zi
+    [[ "${+functions[compdef]}" -ne 0 ]] && \compdef __zoxide_z_complete {{ 
cmd }}
+fi
 
 {%- when None %}
 

Reply via email to