orgro icon indicating copy to clipboard operation
orgro copied to clipboard

2-state local cycling on subtrees

Open jebyore opened this issue 2 years ago • 2 comments

Could you please add an option of switching from the default 3-state local cycling (FOLDED, CHILDREN, SUBTREE) when short pressing on subtree headings to 2-state local cycling without "SUBTREE"? As the latter won't sometimes cause severe performance issues in large org files with deep nested subtrees on my low-end phone and is more convenient to use in my opinion.

Thanks.

jebyore avatar Sep 28 '23 06:09 jebyore

I'm not dead-set against making an option, but in general I feel like "doing the right thing" is better than adding options.

Things I would rather do (but are probably much more difficult):

  • Improve performance enough that you don't have a problem
  • Detect when your device isn't performant enough and intelligently adjust the cycle

Can you share

  • A document that causes problems? (Or the length in characters and maybe the number and depth of headlines?)
  • Details on your device? (OS, model, etc.)

amake avatar Sep 30 '23 00:09 amake

  1. example file (containing one specific subtree): https://github.com/jebyore/example/blob/main/example.org

It takes 5-6 seconds to finish the last step of the local cycling on the top level subtree in this example.org on my phone.

  1. Phone model: Moto G5S OS: LineageOS (18.1-20230801-NIGHTLY-montana)

jebyore avatar Oct 01 '23 13:10 jebyore