You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
toggle hidden files
navigate between directories
Expected Behavior
The cursor position on first directory enter should have a consistent behavior with hidden files enabled.
Directory structure
any directory structure
Repro
-- save as repro.lua-- run with nvim -u repro.lua-- DO NOT change the pathslocalroot=vim.fn.fnamemodify("./.repro", ":p")
-- set stdpaths to use .reprofor_, nameinipairs({ "config", "data", "state", "runtime", "cache" }) dovim.env[("XDG_%s_HOME"):format(name:upper())] =root.."/" ..nameend-- bootstrap lazylocallazypath=root.."/plugins/lazy.nvim"ifnotvim.loop.fs_stat(lazypath) thenvim.fn.system({
"git",
"clone",
"--filter=blob:none",
"--single-branch",
"https://github.com/folke/lazy.nvim.git",
lazypath,
})
endvim.opt.runtimepath:prepend(lazypath)
-- install pluginslocalplugins= {
"folke/tokyonight.nvim",
{
"stevearc/oil.nvim",
config=function()
require("oil").setup({
columns= {
"permissions",
"size",
"ctime",
"icon",
},
})
end,
},
-- add any other plugins here
}
require("lazy").setup(plugins, {
root=root.."/plugins",
})
vim.cmd.colorscheme("tokyonight")
-- add anything else here
Did you check the bug with a clean config?
I have confirmed that the bug reproduces with nvim -u repro.lua using the repro.lua file above.
The text was updated successfully, but these errors were encountered:
Yes, I apologize, I did forgot to add the options that I use, that causes this bug. I edited the repro.lua config.
The bug should now be reproduceable.
It's due to me using the plugin for so much time with the additional columns now that I forgot that they are not a default in oil.
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: