about summary refs log tree commit diff stats
path: root/082scenario_screen.cc
Commit message (Expand)AuthorAgeFilesLines
* 3273Kartik K. Agaram2016-08-281-5/+5
* 3272Kartik K. Agaram2016-08-281-3/+3
* 3251Kartik K. Agaram2016-08-251-6/+45
* 3250Kartik K. Agaram2016-08-251-3/+6
* 3229 - fake file systems using 'assume-filesystem'Kartik K. Agaram2016-08-201-4/+5
* 3226Kartik K. Agaram2016-08-181-3/+3
* 3178Kartik K. Agaram2016-08-131-0/+5
* 3126Kartik K. Agaram2016-07-221-8/+2
* 3120Kartik K. Agaram2016-07-211-0/+7
* 3108Kartik K. Agaram2016-07-101-0/+3
* 3025 - fix a minor annoyance in edit/Kartik K. Agaram2016-05-291-3/+1
* 2983 - migrate buttons over to sandbox/Kartik K. Agaram2016-05-191-0/+1
* 2864 - replace all address:shared with just addressKartik K. Agaram2016-04-241-11/+11
* 2773 - switch to 'int'Kartik K. Agaram2016-03-131-19/+19
* 2771 - fix for clang on 32-bit machinesKartik K. Agaram2016-03-131-2/+2
* 2735 - define recipes using 'def'Kartik K. Agaram2016-03-081-1/+1
* 2712Kartik K. Agaram2016-02-261-5/+5
* 2709Kartik K. Agaram2016-02-251-1/+0
* 2707Kartik K. Agaram2016-02-251-2/+0
* 2581 - make space for the refcount in address:sharedKartik K. Agaram2016-01-201-5/+5
* 2576 - distinguish allocated addresses from othersKartik K. Agaram2016-01-191-11/+11
* 2548 - teach 'print' to print integersKartik K. Agaram2015-12-281-7/+14
* 2627Kartik K. Agaram2015-12-151-3/+3
* 2626Kartik K. Agaram2015-12-151-0/+2
* 2468 - overload print-character as just 'print'Kartik K. Agaram2015-11-211-7/+7
* 2463 - make edit/ robust to errors in client codeKartik K. Agaram2015-11-191-0/+2
* 2430 - make room for more transformsKartik K. Agaram2015-11-131-0/+356
eral.String */ .highlight .na { color: #336699 } /* Name.Attribute */ .highlight .nb { color: #003388 } /* Name.Builtin */ .highlight .nc { color: #bb0066; font-weight: bold } /* Name.Class */ .highlight .no { color: #003366; font-weight: bold } /* Name.Constant */ .highlight .nd { color: #555555 } /* Name.Decorator */ .highlight .ne { color: #bb0066; font-weight: bold } /* Name.Exception */ .highlight .nf { color: #0066bb; font-weight: bold } /* Name.Function */ .highlight .nl { color: #336699; font-style: italic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
package compose

import (
	"errors"

	"git.sr.ht/~sircmpwn/aerc/widgets"
)

type Edit struct{}

func init() {
	register(Edit{})
}

func (Edit) Aliases() []string {
	return []string{"edit"}
}

func (Edit) Complete(aerc *widgets.Aerc, args []string) []string {
	return nil
}

func (Edit) Execute(aerc *widgets.Aerc, args []string) error {
	if len(args) != 1 {
		return errors.New("Usage: edit")
	}
	composer, _ := aerc.SelectedTab().(*widgets.Composer)
	composer.ShowTerminal()
	composer.FocusTerminal()
	return nil
}