yycalm / linecount

vscode extension : count lines of code.
MIT License
14 stars 3 forks source link

Wish to enhance it #1

Open FFengIll opened 7 years ago

FFengIll commented 7 years ago

Good plugin with useful features. And I wish to enhance it with some more feature for convenience, may I?

yycalm commented 7 years ago

Of course, what do you want to enhance ?

FFengIll commented 7 years ago

Plan as bellow:

How do you think about it?

yycalm commented 7 years ago

allow count of subdir //This is supported. glob pattren configution. "LineCount.includes": [ "*.cpp", //only workspace rootpath cpp files. "*/.cpp" //include subdir cpp files. ],

allow more format output, like csv (data only) //I wanted to output the CSV, markdown, HTML type,you can do it, or I'll do it later.

enhance the output style (may output with more types of details) //You can do it, but don't increase the difficulty of configuration.

FFengIll commented 7 years ago

md and csv output completed. Maybe we need to talk about the output method implement - use vscode edit or file output. Furthermore, I send PR for you and details in it.

yycalm commented 7 years ago

Output CSV file no content. I think use file output for csv type and not open. md file use vscode edit and display in preview mode. exec command : vscode.commands.executeCommand("markdown.showPreview");

FFengIll commented 7 years ago

Good, I will fix it. This comes from the use of vscode editor but file output. I have refactored the functions so we can change it easily.

PR maybe today or tomorrow.

FFengIll commented 7 years ago

Should we keep the older data in CSV and MD? Or we just output newest only?

yycalm commented 7 years ago

Keep the older data for CSV. MD just output newest, open in preview only. What do you think?

nccnm commented 7 years ago

Hello, Can the result sorts by code, filename, comment,...?

For example, I want to find big files.

FFengIll commented 7 years ago

@yycalm may you pls publish the new version? So we can use the new functions. And pls do a double check for the code if it is possible.

yycalm commented 7 years ago

@nccnm Sort function has been added, can sort by file name, code, comment, blank and total lines. update to 0.1.7 version.

yycalm commented 7 years ago

@FFengIll A new version has been released.

FFengIll commented 7 years ago

@nccnm hi, we have supported csv as output, so plz think to use csv to do some more spec operations, like sort or filter. How do you think about it?

And @yycalm has added the sort functions too, pls try it.