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: reveal does not work for targets under hidden folders #1468

Open
3 tasks done
minusf opened this issue May 12, 2024 · 0 comments · May be fixed by #1650
Open
3 tasks done

BUG: reveal does not work for targets under hidden folders #1468

minusf opened this issue May 12, 2024 · 0 comments · May be fixed by #1650
Labels
bug Something isn't working

Comments

@minusf
Copy link

minusf commented May 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)

NVIM v0.9.5

Operating System / Version

macos 14.4.1

Describe the Bug

Trying to reveal a file inside hidden folders while hidden items are not shown results in neotree opening up but not moving anywhere. No note, no error message what is happening and why, nothing. I find this very confusing, and also I think that if I want to reveal a file at that point I don't really care if it's in a hidden or non-hidden folder, I want to see it. Please enable reveal regardless hidden items are shown or not.

Screenshots, Traceback

No response

Steps to Reproduce

  1. don't show hidden items
  2. open a file inside a hidden folder
  3. :Neotree reveal (or reveal_force_cwd)
  4. neotree opens but "nothing happens"

Expected Behavior

Reveal item regardless if it's in a hidden or non-hidden folder.

Your Configuration

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", lazypath, })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  -- add any other plugins here
}

local neotree_config = {
  "nvim-neo-tree/neo-tree.nvim",
  dependencies = { "MunifTanjim/nui.nvim", "nvim-tree/nvim-web-devicons", "nvim-lua/plenary.nvim" },
  cmd = { "Neotree" },
  keys = {
    { "<Leader>e", "<Cmd>Neotree<CR>" }, -- change or remove this line if relevant.
  },
  opts = {
    -- Your config here
    -- ...
  },
}

table.insert(plugins, neotree_config)
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here
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

Successfully merging a pull request may close this issue.

1 participant