FileSummarizer
Visual studio code extension to quickly visualize important elements of a file using keywords defined in the parameters.
Commands
- "File Summarizer: Display document informations"
- Key: filesummarizer.display
- Description: Displays the retrieved information in a new Visual Studio Code window, in the form of a table.
- "File Summarizer: Copy the document information in HTML format to the clipboard"
- Key: filesummarizer.copyToClipboard
- Description: Copy the document information in HTML format to the clipboard
Exemple
Avec les paramètres suivants:
L'affiche suivant se produit:
Paramétrage
{
"filesummarizer":{
"titleLevelMarker":"#",
"delimiter":"_",
"categories":[
{
"name":"Estimation",
"suffix":"j",
"identifier":"Estimation",
"operation":"SUM", // LAST by default
"delimiter":"_",
"concatentionDelimiter":"/" // In case of "CONCATENATION", "," by default
},
{
"name":"Dépendance",
"identifier":"Dépendance",
"operation":"CONCAT",
"delimiter":"_",
"concatentionDelimiter":", "
}
]
}
}
- titleLevelMarker: Character marking the title level of a game
- delimiter: Value delimiter
- categories: A category corresponds to one information to be retrieved per part. This will correspond to a column in the result of the display
- name: Category name that will be displayed in the header of the column
- suffix: Element that will be added after the values in the column
- identifier: Element that will identify a line as the line that includes the value to be retrieved
- operation: Operation to be performed when several values are found for a part
- delimiter: Overload the delimiter defined above
- concatenationDelimiter: When the operation is concatenation, it is the character (or string) that will join the elements
Operations
When several values have been found for the same part, there are 4 ways to handle this:
- SUM: Sum of all fields. Warning, values must be numbers
- CONCAT: Concatenation of values using concatenationDelimiter
- FIRST: Keep the first value found
- LAST: Keep the last value found
By default, the value is LAST.