mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 17:41:40 -05:00
Allow visability of modeindicator to be configured for each mode separately
This commit is contained in:
parent
b76401da2a
commit
1f3ee16739
2 changed files with 16 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Add table
Reference in a new issue