Add first per-item commands

This commit is contained in:
Jonathan Turner
2019-08-15 05:02:39 +12:00
parent 79fd635b5f
commit 99b881e42f
7 changed files with 137 additions and 57 deletions

View File

@ -158,7 +158,7 @@ pub async fn cli() -> Result<(), Box<dyn Error>> {
command("cd", Box::new(cd::cd)),
command("size", Box::new(size::size)),
command("from-yaml", Box::new(from_yaml::from_yaml)),
command("enter", Box::new(enter::enter)),
//command("enter", Box::new(enter::enter)),
command("nth", Box::new(nth::nth)),
command("n", Box::new(next::next)),
command("p", Box::new(prev::prev)),
@ -182,9 +182,10 @@ pub async fn cli() -> Result<(), Box<dyn Error>> {
//static_command(Cd),
static_command(Remove),
static_command(Open),
static_command(Where),
per_item_command(Where),
static_command(Config),
static_command(SkipWhile),
per_item_command(Enter),
static_command(Exit),
static_command(Clip),
static_command(Autoview),