Allow visability of modeindicator to be configured for each mode separately

This commit is contained in:
fluem 2020-10-13 17:47:54 +02:00
parent b76401da2a
commit 1f3ee16739
2 changed files with 16 additions and 1 deletions

View file

@ -345,7 +345,9 @@ config.getAsync("modeindicator").then(mode => {
statusIndicator.className +=
" TridactylMode" + statusIndicator.textContent
if (config.get("modeindicator") !== "true") statusIndicator.remove()
if ((config.get("modeindicator") !== "true") || (config.get("modeindicatormodes",mode) !== "true")) {
statusIndicator.remove()
}
})
})

View file

@ -804,6 +804,19 @@ export class default_config {
*/
modeindicator: "true" | "false" = "true"
/**
* Whether to display the mode indicator in various modes. Ignored if modeindicator set to false.
*/
modeindicatormodes: { [key: string]: "true" | "false" } = {
normal: "true",
insert: "true",
input: "true",
ignore: "true",
ex: "true",
hint: "true",
visual: "true"
}
/**
* Milliseconds before registering a scroll in the jumplist
*/