Skip to content

Autocomplete with cd doesn't recognize symlinks  #5451

Closed

Description

@danjenson

Describe the bug

image

How to reproduce

cd to a directory with symlinked directories, it won't autocomplete any of those directories.

Expected behavior

It would autocomplete those directories.

Screenshots

No response

Configuration

key value
version 0.62.0
branch
tag
build_os linux-x86_64
rust_version rustc 1.61.0-nightly (ab0c2e18d 2022-03-27)
rust_channel nightly-x86_64-unknown-linux-gnu
cargo_version cargo 1.61.0-nightly (109bfbd 2022-03-17)
pkg_version 0.62.0
build_time 2022-05-03 18:02:54 -07:00
build_rust_channel release
features database, dataframe, default, trash, which, zip
installed_plugins

Additional context

No response

Activity

  1. added
    category:bug
    A:completions
    on May 5, 2022
  2. mxfp0 commented on May 5, 2022

    @mxfp0
    Contributor

    hmm, that's weird, here it completes correctly:
    image

    I'm using 0.61.1 though, let me try to upgrade and check if the issue persist.

  3. mxfp0 commented on May 5, 2022

    @mxfp0
    Contributor

    yeah, just upgraded to 0.62.0 and it doesn't work anymore, so it's a regression.
    I can see in the code that we're checking if it's dir, so once it's a symlink it won't match:

    I'm not sure if there's a way to detect sym links for directories.
    We could easily add one is_symlink() as well there, but if it's sym link to a file we shouldn't show (no idea if it's possible). Or we just adopt the approach to always show if it's a sym link.

  4. added this to the v0.63.0 milestone on May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:completionscategory:bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions