gchp / iota

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

Implement comand builder & text objects #97

Closed gchp closed 9 years ago

gchp commented 9 years ago

The command builder is a mechanism for composing commands which can be interpreted by Iota. These commands use structures called text objects which can refer to any object inside a buffer (char, line, word etc).

Thanks to @crespyl for most of the design and implementation on this.

Fixes #89

crespyl commented 9 years ago

Woo! It's happening (.gif)!

There's a lot of changes in here, and plenty of holes and new breakage I'm sure, so getting some fresh eyes on this stuff before we merge would be great.

We're also pretty close to being able to close #8. With this stuff, pretty much all the groundwork is in place to wrap that one up. We just need an Insert mode and some touch ups to round out the supported TextObject kinds/anchors (and maybe some adjustments to the default keybinds).

gchp commented 9 years ago

Any objections / comments before I merge this?

gchp commented 9 years ago

aaaaaand merged! Thanks again @crespyl