jaredly / treed

Powerful Tree Editor
http://jaredly.github.io/treed/
1.71k stars 194 forks source link

Remove blank just-created nodes #1

Closed jaredly closed 10 years ago

jaredly commented 10 years ago

If you press enter to create a node and then leave insert mode without adding anything, why not just remove that node?

idea from themodelplumber

greduan commented 10 years ago

:+1: this. Seems pretty basic, and prevents empty nodes that aren't needed. Probably should maybe add something that disables this. Maybe.

jaredly commented 10 years ago

I went down this road for a bit, but it turned out that the behavior felt too unexpected. I'll explore this again if there's a lot of demand

greduan commented 10 years ago

I see what you mean, it can be a little strange. It can be a setting or it's maybe also something to do with how it's implemented. Different implementations have different feels, you know? :)

jaredly commented 10 years ago

Yeah. We'll see if this feels "wrong" enough to warrant the removal; It wouldn't be super difficult, so I might end up just adding it anyway