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

Incorrect position when new file/dir are added after last dir #1112

Open
fangzhen opened this issue Jun 25, 2024 · 1 comment
Open

Incorrect position when new file/dir are added after last dir #1112

fangzhen opened this issue Jun 25, 2024 · 1 comment
Labels

Comments

@fangzhen
Copy link

Suppose the following file tree with two files: test/foo/bar, test/baz. Treemacs display it like this:

    test/
      foo/
        bar
      baz

Then add a dir $ mkdir test/foz, we would expect:

    test/
      foo/
        bar
      foz/
      baz

But actually got:

    test/
      foo/
      foz/
        bar
      baz

I'm using treemacs from melpa with version 20240613.2014.

In treemacs--determine-insert-position, when the new node is added after last dir, position of new node is calculated as after position of the last dir, but not its descendants.

Copy link

stale bot commented Aug 24, 2024

This issue has been automatically marked as stale because it has not had recent activity (this bot only works as a reminder, it will not close issues).

@stale stale bot added the stale label Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant