diff options
author | Patrick Totzke <patricktotzke@gmail.com> | 2019-08-17 10:53:26 +0100 |
---|---|---|
committer | Patrick Totzke <patricktotzke@gmail.com> | 2019-08-17 11:10:37 +0100 |
commit | c8986ebe26af6b17a09d714dbdb29d1b34b72c6e (patch) | |
tree | 11d873c03acc1f550171ca969a679e9832dfdff9 /alot | |
parent | 96308edb406bfe57437a6b662d8a20cb7f1b9778 (diff) |
directly import Completers from their resp module
... instead of from alot.completion
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/globals.py | 8 | ||||
-rw-r--r-- | alot/commands/thread.py | 3 | ||||
-rw-r--r-- | alot/completion/__init__.py | 17 |
3 files changed, 6 insertions, 22 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 993397b5..c61015f9 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -25,10 +25,10 @@ from .. import buffers from .. import helper from ..helper import split_commandstring from ..helper import mailto_to_envelope -from ..completion import CommandLineCompleter -from ..completion import ContactsCompleter -from ..completion import AccountCompleter -from ..completion import TagsCompleter +from ..completion.commandline import CommandLineCompleter +from ..completion.contacts import ContactsCompleter +from ..completion.accounts import AccountCompleter +from ..completion.tags import TagsCompleter from ..widgets.utils import DialogBox from ..db.errors import DatabaseLockedError from ..db.envelope import Envelope diff --git a/alot/commands/thread.py b/alot/commands/thread.py index c69aca8b..90f17bea 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -24,7 +24,8 @@ from .globals import MoveCommand from .globals import CommandCanceled from .common import RetagPromptCommand from .envelope import SendCommand -from ..completion import ContactsCompleter, PathCompleter +from ..completion.contacts import ContactsCompleter +from ..completion.path import PathCompleter from ..db.utils import decode_header from ..db.utils import formataddr from ..db.utils import extract_headers diff --git a/alot/completion/__init__.py b/alot/completion/__init__.py index 86e5d93c..e69de29b 100644 --- a/alot/completion/__init__.py +++ b/alot/completion/__init__.py @@ -1,17 +0,0 @@ -from .completer import Completer - -from .abooks import AbooksCompleter -from .accounts import AccountCompleter -from .argparse import ArgparseOptionCompleter -from .command import CommandCompleter -from .commandline import CommandLineCompleter -from .commandname import CommandNameCompleter -from .contacts import ContactsCompleter -from .cryptokey import CryptoKeyCompleter -from .multipleselection import MultipleSelectionCompleter -from .namedquery import NamedQueryCompleter -from .path import PathCompleter -from .query import QueryCompleter -from .stringlist import StringlistCompleter -from .tag import TagCompleter -from .tags import TagsCompleter |