tokei icon indicating copy to clipboard operation
tokei copied to clipboard

Feature: Get info (max and mean) about characters per line

Open rubenrua opened this issue 5 years ago • 1 comments

Last week a news about characters per line was very popular.

80-characters-per-line limits should be terminal, says Linux kernel chief Linus Torvalds

origin: https://www.theregister.com/2020/06/01/linux_5_7/

I want to get info about characters per line in different project. Not only the maximun characters per line also the mean.

I found it an interesting feature for this project. The output should be like:

-----------------------------------------------------------------------------------------------------
 Language            Files        Lines         Code     Comments       Blanks	   MaxLine   MeanLine
----------------------------------------------------------------------------------------------------
 BASH                    4           49           30           10            9		80    	 12
 JSON                    1         1214         1214            0            0	       320    	 55
 Markdown                4         1236         1236            0            0	      	12    	  4
 Rust                   19         3049         2224          431          394	       180    	 34
 Shell                   1           49           38            1           10	       200    	 44
 TOML                    1           79           68            0           11	      	43    	 16
---------------------------------------------------------------------------------------------------
 Total                  30         5676         4810          442          424	       xxx    	xxx
----------------------------------------------------------------------------------------------------

Please let me know if it is out of scope or if you like the idea I can help with the implementation.

rubenrua avatar Jun 04 '20 17:06 rubenrua

Thank you for your issue! I don’t know if I’ll include it, I would need to think about more about the implementation, but I do think it’s interesting.

XAMPPRocky avatar Jun 04 '20 21:06 XAMPPRocky