Exemplo n.º 1
0
        public IDictionary <Command, ICollection <KeyBinding> > GetKeyBindings()
        {
            var keyBindings = new Dictionary <Command, ICollection <KeyBinding> >();

            foreach (var value in Enum.GetValues(typeof(Command)))
            {
                var command = (Command)value;
                keyBindings.Add(command, _keyBindings.ReadValueFromJson <Collection <KeyBinding> >(command.ToString(), null) ?? _defaultValueProvider.GetDefaultKeyBindings(command));
            }

            return(keyBindings);
        }
Exemplo n.º 2
0
 public TerminalTheme GetTheme(Guid id)
 {
     return(_themes.ReadValueFromJson(id.ToString(), default(TerminalTheme)));
 }
Exemplo n.º 3
0
        public ShellProfile GetDefaultShellProfile()
        {
            var id = GetDefaultShellProfileId();

            return(_shellProfiles.ReadValueFromJson(id.ToString(), default(ShellProfile)));
        }
Exemplo n.º 4
0
 public TerminalOptions GetTerminalOptions()
 {
     return(_roamingSettings.ReadValueFromJson(nameof(TerminalOptions), _defaultValueProvider.GetDefaultTerminalOptions()));
 }
Exemplo n.º 5
0
 public ShellConfiguration GetShellConfiguration()
 {
     return(_localSettings.ReadValueFromJson(nameof(ShellConfiguration), _defaultValueProvider.GetDefaultShellConfiguration()));
 }