diff --git a/doc/roadmap.org b/doc/roadmap.org index 159ff0e..bae4000 100644 --- a/doc/roadmap.org +++ b/doc/roadmap.org @@ -1,5 +1,7 @@ #+title: Roadmap +* 0.2.1 +- [ ] jumps * 0.2.0 (maybe) - [X] Links in categories? - [X] Fix category with no links diff --git a/src/cli.rs b/src/cli.rs index 8c9ed78..6e6c150 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -109,4 +109,19 @@ pub enum Commands { /// Perform a git commit in all repositories, with predefined message #[command(visible_alias = "m")] CommitMsg { msg: Option }, + + /// Jump to a given object + #[command(subcommand, visible_alias = "j")] + Jump(JumpCommands), +} + +#[derive(Subcommand, Debug)] +pub enum JumpCommands { + /// Jump to repo + #[command(visible_alias = "r")] + Repo { name: Option }, + + /// Jump to link + #[command(visible_alias = "l")] + Link { name: Option }, } diff --git a/src/main.rs b/src/main.rs index e830ccd..abb2954 100644 --- a/src/main.rs +++ b/src/main.rs @@ -107,6 +107,9 @@ fn main() { Some(Commands::CommitMsg { msg }) => { config.commit_all_msg(msg.as_ref().expect("failed to get message from input")); } + Some(Commands::Jump(_)) => { + todo!(); + } None => (), } trace!("{:?}", config);