Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Somelauw opened this issue Feb 20, 2018 · 3 comments

Comments

@Somelauw
Copy link
Owner

Somelauw commented Feb 20, 2018

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
Copy link
Owner Author

Somelauw commented Mar 9, 2018

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.

@wagk
Copy link

wagk commented Mar 23, 2018

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.

@BlueDrink9
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants