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

Change behavior of 'o' when on a heading #13

Open
GuiltyDolphin opened this issue Sep 28, 2017 · 1 comment
Open

Change behavior of 'o' when on a heading #13

GuiltyDolphin opened this issue Sep 28, 2017 · 1 comment

Comments

@GuiltyDolphin
Copy link
Owner

GuiltyDolphin commented Sep 28, 2017

Currently, the behavior of o when on a heading is to call evil-open-below, which looks like the following:

Before:

* foo<cursor>

After pressing o:

* foo
  <cursor>

Which is useful if you want to have properties for the heading:

* foo
  :PROPERTIES:
  ...
  :END:

But it may be useful to provide an option to change the behavior to do the following (after pressing o):

* foo

<cursor>

Another option might be to have o automatically insert the :PROPERTIES: boilerplate, and delete it if RET is pressed again without editing the properties. It might not make sense to handle this if snippets are being used (likely dealing with the boilerplate already).

@GuiltyDolphin
Copy link
Owner Author

Note that as of v0.4.0, using o/O with a prefix argument inserts a sibling heading after/before the current heading.

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

1 participant