diff options
author | Daniel <quite@hack.org> | 2012-03-03 12:35:38 +0100 |
---|---|---|
committer | Daniel <quite@hack.org> | 2012-03-03 12:35:38 +0100 |
commit | e5cd66db2d49b3d0226ebf63ab5df5e290d182f9 (patch) | |
tree | 137e48446d567c97cdc81c7e1d64dd8317613ed7 /alot | |
parent | 516cbd6ca0b72e73d5cda3fcaf381d8f29d8ea3d (diff) |
Cleaner and more common-looking prompts
Diffstat (limited to 'alot')
-rw-r--r-- | alot/commands/globals.py | 6 | ||||
-rw-r--r-- | alot/commands/thread.py | 4 | ||||
-rw-r--r-- | alot/ui.py | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/alot/commands/globals.py b/alot/commands/globals.py index 4d4ef3a2..29de7145 100644 --- a/alot/commands/globals.py +++ b/alot/commands/globals.py @@ -546,7 +546,7 @@ class ComposeCommand(Command): self.envelope.add('From', fromstring) else: cmpl = AccountCompleter() - fromaddress = yield ui.prompt(prefix='From>', completer=cmpl, + fromaddress = yield ui.prompt(prefix='From: ', completer=cmpl, tab=1) if fromaddress is None: ui.notify('canceled') @@ -602,7 +602,7 @@ class ComposeCommand(Command): completer = ContactsCompleter(abooks) else: completer = None - to = yield ui.prompt(prefix='To>', + to = yield ui.prompt(prefix='To: ', completer=completer) if to == None: ui.notify('canceled') @@ -611,7 +611,7 @@ class ComposeCommand(Command): if settings.get('ask_subject') and \ not 'Subject' in self.envelope.headers: - subject = yield ui.prompt(prefix='Subject>') + subject = yield ui.prompt(prefix='Subject: ') logging.debug('SUBJECT: "%s"' % subject) if subject == None: ui.notify('canceled') diff --git a/alot/commands/thread.py b/alot/commands/thread.py index db30c442..17120c18 100644 --- a/alot/commands/thread.py +++ b/alot/commands/thread.py @@ -607,7 +607,7 @@ class SaveAttachmentCommand(Command): if self.all: msg = ui.current_buffer.get_selected_message() if not self.path: - self.path = yield ui.prompt(prefix='save attachments to:', + self.path = yield ui.prompt(prefix='save attachments to: ', text=os.path.join('~', ''), completer=pcomplete) if self.path: @@ -630,7 +630,7 @@ class SaveAttachmentCommand(Command): attachment = focus.get_attachment() filename = attachment.get_filename() if not self.path: - msg = 'save attachment (%s) to:' % filename + msg = 'save attachment (%s) to: ' % filename initialtext = os.path.join('~', filename) self.path = yield ui.prompt(prefix=msg, completer=pcomplete, @@ -122,7 +122,7 @@ class UI(object): self.inputwrap.set_root(helpwrap) self.inputwrap.select_cancel_only = not relay_rest - def prompt(self, prefix='>', text=u'', completer=None, tab=0, history=[]): + def prompt(self, prefix=': ', text=u'', completer=None, tab=0, history=[]): """prompt for text input :param prefix: text to print before the input field |