Menu

#1504 SideKick expands all on parse

open
None
5
2012-01-06
2011-12-08
No

I have a simple c file parsed by ctagssidekick:

int a;
main () {}

SideKick options:
no checkbox, auto expand = 0, parser: ctags

Ctags options are following:
groupers: Namespace, Kind
sorters: Line

After ctags parses the file I have 2 groups: variable and function. I collapse variable. I parse again. Variable expands.

Desired behaviour: do not expand all nodes with auto_expand = 0. Preferrably remember which nodes were open, but definitely: do not expand when user didn't asked for that.

Discussion

  • Dale Anson

    Dale Anson - 2011-12-08
    • assigned_to: nobody --> daleanson
     
  • Dale Anson

    Dale Anson - 2011-12-08

    This happens with other sidekicks, not just ctagssidekick.

     
  • Jarek Czekalski

    Jarek Czekalski - 2012-01-06
    • assigned_to: daleanson --> jarekczek
     
  • Jarek Czekalski

    Jarek Czekalski - 2012-01-06

    Got it. Will test and commit soon.

    The order of actions was not as intended because of passing to many calls to Swing.invokeLater in SideKickTree.expandAll

     
  • Jarek Czekalski

    Jarek Czekalski - 2012-01-06

    But after fixing a bug I have a problem: if I set autoExpand to 0 it eats all without possibility to expand. Minimum reasonable value is 1 which shows the filename and the first row.

     
  • Jarek Czekalski

    Jarek Czekalski - 2012-01-06

    a patch

     
  • Jarek Czekalski

    Jarek Czekalski - 2012-01-06

    I leave it to your choice. Won't commit. Attaching a patch that fixes only one thing: collapsing the whole tree. Please deal with the 0 problem.

     
  • Jarek Czekalski

    Jarek Czekalski - 2012-01-06
    • assigned_to: jarekczek --> daleanson
     

Log in to post a comment.