outline.nvim icon indicating copy to clipboard operation
outline.nvim copied to clipboard

Automatically re-enable auto-unfolding even after manual fold toggling

Open Giessen opened this issue 5 months ago • 3 comments

Description

After run fold_toggle on current node, the default behaviour of auto_unfold -ing others stops working.

Steps to reproduce: 1.Open outline window 2.Click to focus on one node with children underneath. We watched the node unfolding. OK. 3.Click to focus on second node with children underneath. We watched the second node unfolding, and previous node collapsing. OK. 4.Run fold_toggle (I set with Tab key in keymaps={...fold_toggle = {'<Tab>'}...}). Run again. We watched the second node collapsing and unfolding again. 5.Swtich focus back to the first node (in step 2). Expected: the second node would collapse. Reality: nothing happends with the second node (keep unfolded).

Neovim setup

  • Neovim version: v0.11.0-dev-3c803483a
  • Outline.nvim version: v1.0.0
  • Neovim distro (if applicable): LazyVim
  • Plugin manager: Lazy.nvim

Config:

keymaps = {
fold_toggle = {'<Tab>'},
},
symbol_folding = {
  auto_unfold = {
    hovered = true,
    only = 0, 
  },
},

Giessen avatar Sep 20 '24 09:09 Giessen