CodeEdit icon indicating copy to clipboard operation
CodeEdit copied to clipboard

🐞 Path selection doesn't work if selecting a sibling or child of a folder

Open austincondiff opened this issue 2 years ago • 3 comments

Description

The path bar displays folders indicating the folder hierarch of the current file. The last item displayed is the open file. When clicking this last item and selecting a sibling file, that file is opened just fine. However if clicking on a parent folder and either selecting a sibling file to that folder, or drilling down into sibling folders to select a containing file, this does not open the selected file and nothing happens.

To Reproduce

  1. Open a project with the following file structure:
test-project/
    folder-a/
        file-1a.txt
        file-2b.txt
    folder-b/
        file-1b.txt
        file-2b.txt
    file-1.txt
    file-2.txt
  1. Open file-1.txt
  2. In the path bar, click file-1.txt and select file-2.txt
  3. Notice file-2.txt is open as expected
  4. In the path bar, click file-2.txt, hover folder-a and select file-1a.txt.
  5. Notice file-1a.txt is open as expected
  6. In the path bar, click file-1a.txt and select file-1b.txt
  7. Notice file-1a.txt is open as expected
  8. In the path bar, click folder-1, hover folder-2 and select file-2a.txt
  9. Notice that nothing happens not as expected.

Expected Behavior

When clicking a parent folder in the path bar, hovering a sibling folder, and selecting a child file, it should open the file.

Version Information

CodeEdit: 0.0.3-alpha (36)

austincondiff avatar Aug 02 '23 16:08 austincondiff

Can I work on this?

djokester avatar Dec 04 '23 10:12 djokester

You got it!

austincondiff avatar Dec 04 '23 14:12 austincondiff

@austincondiff I am unable to recreate this.

plbstl avatar Jul 05 '24 12:07 plbstl