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

BUG: auto select copied file not work sometimes #1391

Open
3 tasks done
tkkcc opened this issue Mar 12, 2024 · 3 comments
Open
3 tasks done

BUG: auto select copied file not work sometimes #1391

tkkcc opened this issue Mar 12, 2024 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@tkkcc
Copy link

tkkcc commented Mar 12, 2024

Did you check docs and existing issues?

  • I have read all the docs.
  • I have searched the existing issues.
  • I have searched the existing discussions.

Neovim Version (nvim -v)

0.9.5 or v0.10.0-dev-2186+gb280d57db98

Operating System / Version

archlinux

Describe the Bug

as said in #1385

cursor should move to focus the created file

I found it false sometimes: git folder with 100 files

Screenshots, Traceback

tmp2.mp4

Steps to Reproduce

git init
bash -c 'for((i=0;i<100;i++));do touch $i.txt; done'
nvim

:Neotree, then c to copy a file to new name

Expected Behavior

cursor should move to focus the created file

Your Configuration

local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  local lazyrepo = "https://github.com/folke/lazy.nvim.git"
  vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
end ---@diagnostic disable-next-line: undefined-field
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
        {
                "nvim-neo-tree/neo-tree.nvim",
                branch = "v3.x",
                dependencies = {
                        "nvim-lua/plenary.nvim",
                        "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
                        "MunifTanjim/nui.nvim",
                        -- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
                }
        }
})
@tkkcc tkkcc added the bug Something isn't working label Mar 12, 2024
@pysan3 pysan3 added this to the v4.0 milestone Mar 12, 2024
@pysan3
Copy link
Collaborator

pysan3 commented Mar 12, 2024

Are you on the latest main branch?

@tkkcc
Copy link
Author

tkkcc commented Mar 12, 2024

from :Lazy, i am on 7f2ebde, as latest v3.x branch.

@pysan3
Copy link
Collaborator

pysan3 commented Mar 12, 2024

😭 Yet another async race condition issues...

It will be fixed with the big rewrite so please bare with me.

@pysan3 pysan3 self-assigned this Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants