atuinsh/atuin

Deprecation warning nushell

paul-hansen opened this issue · 1 comments

Nushell 0.91.0
Atuin 18.1.0

Pressing the up arrow to open Atuin and then the down arrow to close it again gives this deprecation warning:

Error:   × `--replace (-r)` is deprecated
   ╭─[entry #1:2:13]
 1 │ # 011737c8-d9e3-4ff6-850a-333a48329c31
 2 │ commandline (RUST_LOG=error run-external --redirect-stderr atuin search "--shell-up-key-binding" "--interactive" "--" (commandline) | complete | $in.stderr | str substring ..-1)
   ·             ──────────────────────────────────────────────────────────────────────────────────┬──────────────────────────────────────────────────────────────────────────────────
   ·                                                                                               ╰── Replaceing the current contents of the buffer by `--replace (-p)` or positional argument is deprecated
   ╰────
  help: Use `commandline edit --replace (-r)`

Here's the changelog where this deprecation was announced in Nushell 0.91.0: https://www.nushell.sh/blog/2024-03-05-nushell_0_91_0.html#commandline

Looks like it was fixed in this commit 1c29702

Since that's in a file that gets created at install, you need to apply that change to your local init.nu by running this again:

atuin init nu | save -f ~/.local/share/atuin/init.nu