jargij / gource

Automatically exported from code.google.com/p/gource
0 stars 0 forks source link

Add option to only show dirnames to a specified depth #82

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Not a problem - just a suggested enhancement.

What is the expected output? What do you see instead?
I would like to have the dirnames display, but only down to a certain depth.  
Eg if I have dirnames set to display and set this new option to only show a 
depth of 5, then a file with a full path of "Product 
Development/Trunk/Solutions/Content/Control Library/Data 
Controls/obj/Debug/Data Controls.vbproj" would only show "Product 
Development/Trunk/Solutions/Content/Control Library/Data Controls" and not 
label the subdirectories.

What version of the product are you using? On what operating system?
v0.27 on Windows7

Please provide any additional information below.
I think this option would enable users to render high level directory names, so 
they can see the general area of projects being worked on without cluttering 
the display with all the details of full paths for thousands of files.

Original issue reported on code.google.com by roaming...@gmail.com on 7 Aug 2010 at 11:28

GoogleCodeExporter commented 8 years ago
A couple of alternatives which would achieve a similar outcome:

1 - Specify a number of branches that should exist under a node before the 
dirname of that node is displayed.  So if set to 3, then there would need to be 
3 subdirectories under any directory before that directory name is shown.

2 - Add a command line option similar to highlight-user which takes a list of 
dirnames to keep displayed.

The key aim is to enable the display of high level labels for areas of the 
graphical tree, without including all directories in the tree.

Original comment by roaming...@gmail.com on 8 Aug 2010 at 1:47

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
The visualization currently uses a heuristic to fade the leaf directories in a 
way to reduce the amount of noise. However, it's not aggressive enough and is 
still quite noisy for code in a large system. The above suggestion would work 
really well by highlighting the trunk. Another consideration is to also have a 
parameter that controls the fade timing for the leaf directories.

Original comment by jeff.pit...@gmail.com on 7 Jun 2013 at 6:23