-
-
Notifications
You must be signed in to change notification settings - Fork 619
Cursor does not focus on file created when creating file with nested directory #1716
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
Comments
Confirmed: Occurs whenever a file is created in a directory specified via the input. Open / closed state of the directories has no effect. |
Problem: the current (focused) node is synchronously refreshed, but not the node in which the file is created. Solutions:
1 would be best achieved via a find file action |
Unrelated bug: |
…'t dispatch FolderCreated on file creation
hi @alex-courtis the fix works! Thanks for dropping a pr! Tested with both single nest and multi nested directory |
Unfortunately I have had to back out this change as it breaks Attempting fix again. |
Requires #1723 |
Requires #1731 |
* fix(#1731): watcher refreshes node rather than the first node matching absolute path, profile refresh * fix(#1731): reload explorer reloads closed folders * fix(#1731): do not fire folder created event on file create * fix(#1731): reload profile absolute path, not link to * fix(#1731): find-file locks/profiles on real path, reloads when watchers disabled * Revert "fix(#1731): reload explorer reloads closed folders" This reverts commit 5dfd8bd. * fix(#1731): tidy watch reload * fix(#1731): move refresh_node from watch to reload * fix(#1731): find-file reloads all nodes for the containing directory * fix(#1731): create-file refreshes synchronously * fix(#1731): remove unused watch node * fix(#1731): find-file refreshes root * fix(#1716): create-file invokes find-file * fix(#1731): refresh path walks down the tree to the targedt
Should be resolved by #1757 Please let me know if there are any issues. |
decided to enable the nvim-tree feature to group folders containing only a subfolder together, to make handier to work in java projects. That made me hit nvim-tree/nvim-tree.lua#1716 in my 1-year-old version of nvim-tree. Tried to upgrade to the latest nvim-tree and put the config changes that enable that, since nvim-tree changed its setup, but had to revert due to http://github.com/stevearc/stickybuf.nvim/issues/24 So in the end keep the code to migrate to the latest nvim-tree, but commented, and do only a slight nvim-tree upgrade to fix the folder grouping issue.
Description
Cursor does not focus on file created when creating file with nested directory
Neovim version
Operating system and version
Linux-5.19.12
nvim-tree version
6ca6f99
Minimal config
Steps to reproduce
Expected behavior
Cursor should focus on the top of the tree
Actual behavior
Cursor should focus on the file created
The text was updated successfully, but these errors were encountered: