When deleting a top level point (parent), unindent everything back one

If I use the delete key here in the image above, it will not make any changes.

What it could do differently is instead of having the user highlight the points below and having them hit shift+tab, it could shift all of the points below back by one.

2 Likes

Minor suggestion: maybe reword “reverse-indent” to “unindent”? I know it’s not a popular word, but that’s what we use in Dynalist.

On this note… maybe we should come up with a glossary. There are just so many names and words you can use for the same thing!

2 Likes

Hmm… I like the intended functionality. A couple of thoughts about the implementation, though:

  1. I personally would be very surprised by the proposed behaviour, and I think Principle of Least Astonishment is important to think about.

  2. Hitting backspace at the beginning of an item already has a function: merging it into the previous item (if a previous item exists and is childless). Having a different behaviour in certain edge cases feels confusing.

  3. What should happen if a previous item existed but had children? (Perhaps just the fact that I have to ask is a bad sign.)

  4. I often hold down backspace when I have a lot of blank items I want to get rid of. I wouldn’t want something odd and major to happen if I go too far.

1 Like

Yeah! Maybe like a wiki post here somewhere.

As another example, all of the following refer to the same thing:

  • item (seems like the most common term)
  • list (does this imply children exist?)
  • point (as used in the title of this post)
1 Like

I agree with you there, especially if there isn’t a visual indicator.

Assuming I’m understanding what you’re saying correctly (backspace vs delete key), I should’ve mentioned that the backspace key does not work, either.

Like this?

In that case, since your cursor would be moving upwards, it would start at the lower levels of a bullet point (the children), in which case it the same behavior would apply. This shouldn’t change that, AFAIK (as far as I know).

Oh, I wasn’t thinking about the distinction. I was referring only to the key to delete things to the left.

Yes.

I don’t entirely understand what you meant. To clarify what I meant, I meant if you have something like this:

  • Foo
  • X Bar
    • Baz 1
    • Baz 2

I would place my cursor at the X and hit the backspace key to delete the two blank items.

The way I see it, would be that it would still be considered as merging, via unindenting the following items.

I think in that case, it should just affect that point’s tree and just unindent those items. Sort of like a succession.

Right, that should work as expected. But if you were to delete X Bar, it should let you unindent Baz 1 and Baz 2 so that way they would be in the same position X Bar was.