Skip to content

nushell: str downcase deprecation warning in completion.nu #4857

Description

@tsssni

Checklist

  • I have read through the manual page (man fzf)
  • I have searched through the existing issues
  • For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version

0.73.1

OS

  • Linux
  • macOS
  • Windows
  • Etc.

Shell

  • bash
  • zsh
  • fish

Problem / Steps to reproduce

Warning: nu::parser::deprecated

  ⚠ Command deprecated.
     ╭─[/nix/store/vxr7g2i5vcaasw1hr8baxjig55l83kgg-nushell-fzf-integration.nu:288:41]
 287 │       $ssh_configs | append $ssh_configs_d | append $ssh_config_global
 288 │                    | where {|it| ($it | str downcase | str starts-with 'host') or ($it | str downcase | str starts-with 'hostname') }
     ·                                         ──────┬─────
     ·                                               ╰── str downcase was deprecated in 0.114.0 and will be removed in a future release.
 289 │                    | parse --regex '^\s*host(?:name)?\s+(?<hosts>.+)' # Extract hosts after keyword
     ╰────
  help: Use `str lowercase` instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions