Submitted by TheDude on 2010/02/17 00:59
Can you look into adding two new menu items for Items menu and contextual (right click menu) for nodes:
 
  • Show all sub-items - Recursive
    • This would recursively show all children of selected node right to the last sibling node
    •  
 
  • Hide sub-items - Recursive
    • Inversely, this would collapse all children of selected node.
    •  
It is a very common usecase for me to do and I have difficulty remembering special hot-key sequences like the ctrl-9 option. Having this as a menu pick with a more common hotkeys would be very helpful indeed like Alt-R for show all recursive and Shift-Alt-R to hide all recursive.
 
Thanks,
- Tim

Comments

>Show all sub-items - Recursive
 
Yes, this has been asked for a few times... However this would problematic where you actually have real recursion happening (infinite loop -- possible in IQ). There might have ways around that though, but it's tricky. Where and when should IQ stop in these cases ?
 
>Hide sub-items - Recursive
 
Up to the TLI ? Yup, that'd be usefull as right now it's only possible to do that with all hierarchies to their respective TLIs at once.
 
 
(Not to downplay your request at all, but I want to mention that there are variationson the same theme though involving available features:
 
1-  ctrl shift "-" : collapses the hierarchy up to the currently focussed item's parent
2- ctrl shift 1 : collapses the hierarchy up to the currently foccused item
 
And so it's also possible to quickly navigate where you want in the hierarchy using the hierarchical links in the status bar (bottom of the main IQ window), and then use one of the 2 above mentioned feature.)

jan_rifkinson

2010/02/17 07:34

In reply to by Armando

[quote=Armando][snip]
1-  ctrl shift "-" : collapses the hierarchy up to the currently focussed item's parent
2- ctrl shift 1 : collapses the hierarchy up to the currently foccused item[/snip]
[/quote]
 
Are these key combos working now? I tied on my netbook & nothing happened. I'll try on another machine later.
--
Jan Rifkinson
Ridgefield CT USA
HP Blackbird Vista Ultimate SP-2
 

Tom

2010/02/17 08:13

In reply to by jan_rifkinson

[quote=jan_rifkinson]
[quote=Armando][snip]
1-  ctrl shift "-" : collapses the hierarchy up to the currently focussed item's parent
2- ctrl shift 1 : collapses the hierarchy up to the currently foccused item[/snip]
[/quote]
 
Are these key combos working now? I tied on my netbook & nothing happened. I'll try on another machine later.
[/quote]
 
I've never used Ctrl+Shift+Minus/Plus
Neither seem to have any effect here either
 
But the Ctrl+Shift+Number works (+1 to collapse selected item, +2 to to expand to first level etc etc)
also the Ctrl+Number works (+1 to collapse all item, +2 to to expand to first level etc etc)
 

Armando

2010/02/17 10:03

In reply to by Tom

Ctrl+Shift+Plus
 
doesn't do anything -- it hasn't been assigned to any function... yet.

Tom

2010/02/17 10:36

In reply to by Armando

[quote=Armando]
Ctrl+Shift+Plus
 
doesn't do anything -- it hasn't been assigned to any function... yet.
[/quote]
 
I wasnt sure so I tried it anyways!
 
Ctrl+Shift+Minus definitely has no effect here - wonder could it be to do with german keyboard layout...
 

Armando

2010/02/17 10:53

In reply to by Tom

[quote=Tom]
[quote=Armando]
Ctrl+Shift+Plus
 
doesn't do anything -- it hasn't been assigned to any function... yet.
[/quote]
 
I wasnt sure so I tried it anyways!
 
Ctrl+Shift+Minus definitely has no effect here - wonder could it be to do with german keyboard layout...
 
[/quote]
 
I wonder. I looked in the keyboard shortcut options and saw that it doesn't appear there. But it does appear in Tool-->Keyboard Shortcuts->View all shortcuts.
 
Try ctrl+_ maybe ? ("_" Is the character over the "-" on my keyboard.)

Tom

2010/02/17 10:56

In reply to by Armando

[quote=Armando]
[quote=Tom]
[quote=Armando]
Ctrl+Shift+Plus
 
doesn't do anything -- it hasn't been assigned to any function... yet.
[/quote]
 
I wasnt sure so I tried it anyways!
 
Ctrl+Shift+Minus definitely has no effect here - wonder could it be to do with german keyboard layout...
 
[/quote]
 
I wonder. I looked in the keyboard shortcut options and saw that it doesn't appear there. But it does appear in Tool-->Keyboard Shortcuts->View all shortcuts.
 
Try ctrl+_ maybe ? ("_" Is the character over the "-" on my keyboard.)
[/quote]
 
Yes, Ctrl+Minus works here to collapse an expanded item (Ctrl+Shift+Minus didnt work in clean install btw)
 

Armando

2010/02/17 10:02

In reply to by jan_rifkinson

[quote=jan_rifkinson]
[quote=Armando][snip]
1-  ctrl shift "-" : collapses the hierarchy up to the currently focussed item's parent
2- ctrl shift 1 : collapses the hierarchy up to the currently foccused item[/snip]
[/quote]
 
Are these key combos working now? I tied on my netbook & nothing happened. I'll try on another machine later.
--
Jan Rifkinson
Ridgefield CT USA
HP Blackbird Vista Ultimate SP-2
 
[/quote]
 
They work here.
 
I use ctrl shift "-" a lot, everyday, when I have long list of items and want to collapse everything up to the parent.

TheDude

2010/02/18 19:41

In reply to by Armando

[quote=Armando]
Yes, this has been asked for a few times... However this would problematic where you actually have real recursion happening (infinite loop -- possible in IQ). There might have ways around that though, but it's tricky. Where and when should IQ stop in these cases ?
 [/quote]
 
I understand the complexity, I've tackled the exact same issue in various projects and languages over the years.
 
I would suggest that the logic that loops and expands the child nodes would be self-aware of the nodes it expands by keeping a list of node id's. If a node is reached that has already been expanded or is the same as the root node that the expand started from, then stop. Hopefully that can be implemented without too much source code bloat.
 
Cheers,
- Tim

Armando

2010/02/18 20:36

In reply to by TheDude

[quote=TheDude]
[quote=Armando]
Yes, this has been asked for a few times... However this would problematic where you actually have real recursion happening (infinite loop -- possible in IQ). There might have ways around that though, but it's tricky. Where and when should IQ stop in these cases ?
 [/quote]
 
I understand the complexity, I've tackled the exact same issue in various projects and languages over the years.
 
I would suggest that the logic that loops and expands the child nodes would be self-aware of the nodes it expands by keeping a list of node id's. If a node is reached that has already been expanded or is the same as the root node that the expand started from, then stop. Hopefully that can be implemented without too much source code bloat.
 
Cheers,
- Tim
[/quote]
 
I agree that this would be ideal.
 
I tend to work within very deep hierarchies. IQ almost calls for it because an item can be used in several grids, hence be a TLI while also be a child of another item( e.g. : item A is children at the 4th level of a hierarchy in the "Task" grid, but it's also used as a TLI in the "Reference" Grid, being itself the parent of a 9 level deep hierarchy, etc. etc.)
 
Maybe this could be added to Mantis if it hasn't been added yet.

Pierre_Admin

2010/02/18 21:00

In reply to by TheDude

Yes, this logic already exist and is used in XML copy for example. When I get a chance, I'll apply it to item expansion.
 

The official shortcut for expanding/collapsing a single item is
  • Shift + Ctrl + n, where n is between 1 and 9.n specifies the expansion depth (i.e. 3 = expand to 3 levels down)
There is currently no equivalent menu item, but this can be added in the future.