Skip to content

Outline window cannot be opened when markdown filename contains "#" #161

@James-Leste

Description

@James-Leste

Description

When the name of the markdown file contains #, the outline window cannot be opened.

Image

:OutlineStatus

 Press q or <Esc> to close this window.
 
 Filetype of current or attached buffer: markdown
 Symbols filter:
 
     (not configured)
 
 Default symbols filter:
 
     (all symbols included)
 
 Configured providers are: lsp, coc, markdown, norg, man.
 Current provider: lsp
 Provider info:
 
     client: marksman
 
 Outline window is not open.
 Code window is not active!
 Try closing and reopening the outline.

Outline works well when the file name doesn't contain #

Neovim setup

  • Neovim version: 0.11.5
  • Outline.nvim version: ead1820
  • Neovim distro (if applicable): Vanilla Neovim
  • Plugin manager: Lazy.nvim]

Config

return {
  "hedyhli/outline.nvim",
  lazy = true,
  cmd = { "Outline", "OutlineOpen" },
  keys = { -- Example mapping to toggle outline
    { "<leader>o", "<cmd>Outline<CR>", desc = "Toggle outline" },
  },
  opts = {
    outline_window = {
      width = 30,
      relative_width = true,
      auto_width = {
        enable = true,
        max_width = 40,
        include_symbol_details = false,
      },
      auto_jump = true,
      wrap = true,
    }    -- Your setup opts here
  },
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingup for grabsGood first issue & available for contributions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions