evil-org-mode icon indicating copy to clipboard operation
evil-org-mode copied to clipboard

Does anyone use paragraph text objects (ip / ap) in org-mode? Can they be put to better use?

Open Somelauw opened this issue 7 years ago • 3 comments

I find the behaviour of paragraph text objects (ip and ap, which are defined in evil) not always intuitive/useful when used in org-mode. It often includes too much other content like headings and code blocks. In practice when you use ip or ap, it's more likely you want to use iE or aE (evil-org-inner/an-element). In fact, Emacs org-mode uses M-h for org-mark-element instead of org-mark-paragraph.

Should ip and ap perhaps be mapped to evil-org-inner-element and evil-org-an-element instead ofiE and aE?

Somelauw avatar Feb 20 '18 21:02 Somelauw

I've found that ip and ap remain useful when used inside of code blocks. If the defintion of the these text objects is changed, they should probably remain unchanged in code blocks.

Somelauw avatar Mar 09 '18 10:03 Somelauw

I anecdotally find that I instinctively go for ip and ap even in org-mode. However, I believe that since org-mode defines a paragraph differently, the results tend not to follow the expected behavior.

wagk avatar Mar 23 '18 13:03 wagk

I've just started using org-mode, and I definitely find the paragraph definitions unintuitive (e.g. for { navigation). Are org-elements delineated by whitespace? In every other mode I can think of, it is a line of pure whitespace that delineates paragraphs.

BlueDrink9 avatar Sep 23 '21 04:09 BlueDrink9