def __init__(self, view): self.view = view # We use several types of settings: # - vi-specific (settings.vi), # - regular ST view settings (settings.view) and # - window settings (settings.window). self.settings = SettingsManager(self.view) _logger().debug( '[State] Is .view an ST/Vintageous widget? {0}/{1}'.format( bool(self.settings.view['is_widget']), bool(self.settings.view['is_vintageous_widget'])))
def __init__(self, view): self.view = view # We have multiple types of settings: vi-specific (settings.vi) and # regular ST view settings (settings.view) and window settings # (settings.window). # TODO: Make this a descriptor. Why isn't it? self.settings = SettingsManager(self.view) _logger().info( '[State] is .view an ST:Vintageous widget: {0}:{1}'.format( bool(self.settings.view['is_widget']), bool(self.settings.view['is_vintageous_widget'])))
def setUp(self): super().setUp() self.view.settings().erase('vintage') self.settsman = SettingsManager(view=self.view)
def __init__(self, view): self.view = view # We have two types of settings: vi-specific (settings.vi) and regular ST view settings # (settings.view). self.settings = SettingsManager(self.view)
def setUp(self): TestsState.view.settings().erase('vintage') self.settsman = SettingsManager(view=TestsState.view)