gchp / iota

A terminal-based text editor written in Rust
MIT License
1.63k stars 81 forks source link

Make commands chainable #123

Open mattscamp opened 8 years ago

mattscamp commented 8 years ago

In ref to these comments. Needs to be done before "go to line" command in https://github.com/gchp/iota/issues/122

gchp commented 8 years ago

Yeah, this would be nice.

The current command system needs an overhaul. I don't think the current implementation will support much more that it already does. Needs to be re-thought!

Do you have any suggestions on how we could make it work?

mattscamp commented 8 years ago

I started on an implementation at the chained_cmds branch, although it has a lot of bugs right now. Basically parsing the command as a slice and returns a vec of Commands to exec.