Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File autocomplete in :open breaks with symlinks #11457

Closed
zebubull opened this issue Aug 9, 2024 · 1 comment
Closed

File autocomplete in :open breaks with symlinks #11457

zebubull opened this issue Aug 9, 2024 · 1 comment
Labels
C-bug Category: This is a bug

Comments

@zebubull
Copy link

zebubull commented Aug 9, 2024

Summary

Trying to use ../ in :open while in a symlinked directory shows autocomplete from the parent directory of the symlink source rather than the symlink. Actually opening the file does not do this and goes to the correct parent directory.

Reproduction Steps

I tried this:

  1. mkdir a
  2. mkdir b
  3. touch file_in_root
  4. cd a
  5. touch file_in_a
  6. ln -s ../b link_to_b
  7. cd link_to_b
  8. hx
  9. :open ../

I expected this to happen:
Receive autocomplete from a e.g. link_to_b/ file_in_a

Instead, this happened:
Receive autocomplete from the root folder e.g. a/ b/ file_in_root

Helix log

Log was empty

Platform

Arch Linux

Terminal Emulator

kitty 0.35.2

Installation Method

pacman

Helix Version

helix 24.7

@zebubull zebubull added the C-bug Category: This is a bug label Aug 9, 2024
@pascalkuthe
Copy link
Member

This is not a bug this is simply how symlinks work. If you run ls .. instead of opening helix you will find that it prints the same thing helix suggests.

@pascalkuthe pascalkuthe closed this as not planned Won't fix, can't repro, duplicate, stale Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

2 participants