From b4cb1bd2692277b3d722733dfcca1322ffb6d45a Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Fri, 16 Jun 2017 15:57:25 -0700 Subject: Add a reload command This command allows the configuration to be reloaded while alot is running. Fixes #1046 --- alot/commands/globals.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'alot/commands/globals.py') diff --git a/alot/commands/globals.py b/alot/commands/globals.py index fcd92e97..8e8c4fde 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -955,3 +955,12 @@ class MoveCommand(Command): else: ui.notify('unknown movement: ' + self.movement, priority='error') + + +@registerCommand(MODE, 'reload', help='Reload all configuration files') +class ReloadCommand(Command): + + """Reload configuration.""" + + def apply(self, ui): + settings.reload() -- cgit v1.2.3