2021-07-07 12:34:39 +00:00
|
|
|
export const DEFAULT_SETTINGS: BetterWordCountSettings = {
|
|
|
|
preset: {
|
|
|
|
name: "default",
|
|
|
|
statusBarQuery: "{word_count} words {character_count} characters",
|
|
|
|
statusBarAltQuery:
|
2021-07-12 10:10:54 +00:00
|
|
|
"{file_count} files {total_word_count} words {total_character_count} characters",
|
2021-07-07 12:34:39 +00:00
|
|
|
},
|
|
|
|
statusBarQuery: "{word_count} words {character_count} characters",
|
|
|
|
statusBarAltQuery:
|
2021-07-12 10:10:54 +00:00
|
|
|
"{file_count} files {total_word_count} words {total_character_count} characters",
|
2021-07-07 12:34:39 +00:00
|
|
|
countComments: false,
|
|
|
|
collectStats: false,
|
|
|
|
};
|
|
|
|
|
|
|
|
export const PRESETS: PresetOption[] = [
|
|
|
|
{
|
|
|
|
name: "default",
|
|
|
|
statusBarQuery: "{word_count} words {character_count} characters",
|
|
|
|
statusBarAltQuery:
|
2021-07-12 10:10:54 +00:00
|
|
|
"{file_count} files {total_word_count} words {total_character_count} characters",
|
2021-07-07 12:34:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "minimal",
|
|
|
|
statusBarQuery: "w: {word_count} c: {character_count}",
|
2021-07-12 10:10:54 +00:00
|
|
|
statusBarAltQuery:
|
|
|
|
"f: {file_count} tw: {total_word_count} tc: {total_character_count}",
|
2021-07-07 12:34:39 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "custom",
|
|
|
|
statusBarQuery: "",
|
|
|
|
statusBarAltQuery: "",
|
|
|
|
},
|
|
|
|
];
|
|
|
|
|
|
|
|
export interface BetterWordCountSettings {
|
|
|
|
preset: PresetOption;
|
|
|
|
statusBarQuery: string;
|
|
|
|
statusBarAltQuery: string;
|
|
|
|
countComments: boolean;
|
|
|
|
collectStats: boolean;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface PresetOption {
|
|
|
|
name: string;
|
|
|
|
statusBarQuery: string;
|
|
|
|
statusBarAltQuery: string;
|
2021-01-19 20:39:10 +00:00
|
|
|
}
|