2022-11-06 16:27:06 +00:00
|
|
|
export enum Counter {
|
|
|
|
fileWords,
|
|
|
|
fileChars,
|
2022-11-10 15:23:23 +00:00
|
|
|
fileSentences,
|
2022-11-06 16:27:06 +00:00
|
|
|
totalWords,
|
|
|
|
totalChars,
|
2022-11-10 15:23:23 +00:00
|
|
|
totalSentences,
|
|
|
|
totalNotes,
|
2022-11-06 16:27:06 +00:00
|
|
|
}
|
2022-11-08 04:45:18 +00:00
|
|
|
|
2022-11-06 16:27:06 +00:00
|
|
|
export interface StatusBarItem {
|
2022-11-10 15:23:23 +00:00
|
|
|
prefix: string;
|
|
|
|
suffix: string;
|
2022-11-06 16:27:06 +00:00
|
|
|
count: Counter;
|
|
|
|
}
|
2021-07-07 12:34:39 +00:00
|
|
|
|
2022-11-08 04:45:18 +00:00
|
|
|
export const BLANK_SB_ITEM: StatusBarItem = {
|
2022-11-10 15:23:23 +00:00
|
|
|
prefix: "",
|
|
|
|
suffix: "",
|
2022-11-08 04:45:18 +00:00
|
|
|
count: null,
|
|
|
|
};
|
|
|
|
|
2021-07-07 12:34:39 +00:00
|
|
|
export interface BetterWordCountSettings {
|
2022-11-06 16:27:06 +00:00
|
|
|
statusBar: StatusBarItem[];
|
2021-07-07 12:34:39 +00:00
|
|
|
countComments: boolean;
|
|
|
|
collectStats: boolean;
|
|
|
|
}
|
|
|
|
|
2022-11-16 09:48:56 +00:00
|
|
|
export const DEFAULT_SETTINGS: BetterWordCountSettings = Object.freeze({
|
2022-11-06 16:27:06 +00:00
|
|
|
statusBar: [
|
|
|
|
{
|
2022-11-10 15:23:23 +00:00
|
|
|
prefix: "",
|
|
|
|
suffix: " words",
|
2022-11-06 16:27:06 +00:00
|
|
|
count: Counter.fileWords,
|
|
|
|
},
|
|
|
|
{
|
2022-11-10 15:23:23 +00:00
|
|
|
prefix: " ",
|
|
|
|
suffix: " characters",
|
2022-11-06 16:27:06 +00:00
|
|
|
count: Counter.fileChars,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
countComments: false,
|
|
|
|
collectStats: false,
|
2022-11-16 09:48:56 +00:00
|
|
|
});
|