-
Notifications
You must be signed in to change notification settings - Fork 149
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: Cursor position doesn't auto align on directory enter when ../ (parent directory) item is shown #536
Comments
Yes, I apologize, I did forgot to add the options that I use, that causes this bug. I edited the |
A workaround for this is if you set this in your config Line 279 in 09fa1d2
../
|
Made a PR, that should hopefully fix the issue fully. When entering a directory, since .. is not stored in the entry cache, oil will not change the position of the cursor in the line |
Should be fixed now |
Did you check the docs and existing issues?
Neovim version (nvim -v)
v0.10.2
Operating system/version
Ubuntu 24.04.1 LTS
Describe the bug
When first entering a directory in Oil, the cursor gets automatically positioned to the first file name start.
That doesn't happen if the hidden files are enabled, because the first file is now
../
(parent directory)How it behaves with hidden files disabled
Demo.1.mp4
How it behaves with hidden files enabled
Demo.2.mp4
What is the severity of this bug?
minor (annoyance)
Steps To Reproduce
Expected Behavior
The cursor position on first directory enter should have a consistent behavior with hidden files enabled.
Directory structure
any directory structure
Repro
Did you check the bug with a clean config?
nvim -u repro.lua
using the repro.lua file above.The text was updated successfully, but these errors were encountered: