mirror of
https://github.com/Eugeny/tabby.git
synced 2025-10-04 22:14:55 +00:00
42 lines
913 B
TypeScript
42 lines
913 B
TypeScript
import { ConfigProvider, Platform } from 'tabby-core'
|
|
|
|
/** @hidden */
|
|
export class SettingsConfigProvider extends ConfigProvider {
|
|
defaults = {
|
|
configSync: {
|
|
host: null,
|
|
token: null,
|
|
configID: null,
|
|
auto: false,
|
|
parts: {
|
|
hotkeys: true,
|
|
appearance: true,
|
|
vault: true,
|
|
},
|
|
},
|
|
hotkeys: {
|
|
'settings-tab': {
|
|
__nonStructural: true,
|
|
},
|
|
},
|
|
}
|
|
|
|
platformDefaults = {
|
|
[Platform.macOS]: {
|
|
hotkeys: {
|
|
settings: ['⌘-,'],
|
|
},
|
|
},
|
|
[Platform.Windows]: {
|
|
hotkeys: {
|
|
settings: ['Ctrl-,'],
|
|
},
|
|
},
|
|
[Platform.Linux]: {
|
|
hotkeys: {
|
|
settings: ['Ctrl-,'],
|
|
},
|
|
},
|
|
}
|
|
}
|