Is there an easy way/script that will allow me to collapse all items in the current view that are at the same level as the item I have my cursor on.
I know there is the “Collapse All Items By Level” but what I’m looking for is something that doesn’t work it’s way up the tree collapsing all it’s children but rather something that collapses all items at the same level as the item that has the cursor on.
Project A: - A Test **<cursor>** task 1 - A Test task 1.1 - A Test task 1.2 Project B: - B Task 1 - B Task 1.1 - B Task 2 Project C: - C Task 1 - C Task 1.1 - C Task 2 Project D: - D Task 1 - D Task 2 - D Task 2.1
For example in the file above I have my cursor on a 2nd level item and would like a way to hit a key and have only have all the 2nd level items visible in the current view, as shown below:
Project A: - A Test **<cursor>** task 1 Project B: - B Task 1 - B Task 2 Project C: - C Task 1 - C Task 2 Project D: - D Task 1 - D Task 2
My reason for this is that most of my files use a similar hierarchy like h1, h2, h3, etc… and often times I want to only see one level at a time.