origami.el icon indicating copy to clipboard operation
origami.el copied to clipboard

swap origami-next-fold and origami-forward-fold

Open heikkil opened this issue 7 years ago • 0 comments

I created my own functions using origami functions that step forward and backward the file while closing the current fold and opening the next or previous fold. This brought up the logical inconsistency between next and previous functions (they move the point to opposite ends of the fold). The inconsistency has been addressed in the origami-forward fold that does what I expected the next function to do.

Traditionally next and previous has been bound to n and p keys and are complementary to each other. In origami, the complementary functions are forward and previous. Do you think it would be possible to change origami to the extent to swap the way origami-next-fold and origami-forward-fold work just to make it more logical?

I've done the swap in my own functions and key bindings, but I think everyone would benefit from the change.

heikkil avatar Feb 17 '18 08:02 heikkil