edwtjo / evil-org-mode

Supplemental evil-mode keybindings to emacs org-mode
204 stars 37 forks source link

Using 'o' for always-insert-item seems like a bad choice #8

Closed ghost closed 10 years ago

ghost commented 10 years ago

I just updated evil-org-mode for the first time in a year or so and was displeased to see the usual behavior of an unbound 'o' (simply starting a new line) would rebound to always add a dash.

My typical workflow is to have collapsed headings/sub-headings, however with this change if I hit 'o' on a heading to start a new line (where I plan to insert a same level heading) I instead have a dash dropped in front of my cursor position.

Maybe if the #'org-in-item-p check fails, you should not do an (insert "\n -") but the standard evil-mode newline call?

edwtjo commented 10 years ago

Sorry for the late reply. I'll look into your suggestion.

edwtjo commented 10 years ago

Hopefully fixed with 2b66cf0f04eed3035c791e3f5b22b64f0e2bf15b