Skip to content

"Show Only Marked" no longer displays contents of marked folders (Regression?) #3248

@alex-courtis

Description

@alex-courtis

Discussed in #3247

Originally posted by BerniSc January 23, 2026
Hi, first of all - thanks for all your amazing work on nvim-tree!

I’ve noticed that after the recent bookmark-update (commit: c89215d6a1107a3c0c134750be48657ba8e6a9aa), when I mark a folder and use the "show only marked" filter (default M), only the folder itself is shown, not its files or subfolders. Previously, marking a folder would also display all its contents when filtering for marked items.

Current Behavior Previous Behavior
grafik grafik

I really appreciated the previous behavior, as it made it easy to select specific folders from a large list and quickly compare their subfolders and files, without needing to use complex filters or patterns. For my workflow, the main benefit comes from being able to view and compare the contents of marked folders, rather than just the folders themselves.

Was this change intentional, or is it a regression? Is there a way to restore the old workflow, or a recommended approach for this usecase?

If you need any further debugging or testing, I’m happy to help!

Thanks again for your help!

minimal.lua if needed
---@diagnostic disable: missing-fields

vim.env.LAZY_STDPATH = ".repro"
load(vim.fn.system("curl -s https://raw.githubusercontent.com/folke/lazy.nvim/main/bootstrap.lua"))()

local plugins = {
    {
        "nvim-tree/nvim-tree.lua",
        -- Working on this commit. If commented: newest Version -> does not show subfolders/files
        -- commit = "e66994d40db2d57c91bf9aeaee8bf7ab8b1131f6",
        lazy = false,
        dependencies = {
            "nvim-tree/nvim-web-devicons",
        },
        config = function()
            require("nvim-tree").setup {}
        end,
    },
}

require("lazy.minit").repro({ spec = plugins })

vim.g.mapleader = ' '
vim.keymap.set('n', '<leader>e', ':NvimTreeToggle<CR>')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingregressionExisting functionality brokenreproducedIssue confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions