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

add option to remove common indent from note body #500

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

derrotebaron
Copy link

For example:

* foo
** bar
   example content
     deeper indent

will display

example content
  deeper indent

instead of

   example content
     deeper indent

as text of a note.

This does not apply to the EditText, because it might confuse the user when
typing spaces at the beginning of a line, as they wouldn't show up if they are
part of a common indent.

The reasoning behind this feature is, that indents in Emacs Org-Mode are by
default as deep as needed to match the text of the innermost subheading
that contains the body to be indented.

for example:
```
* foo
** bar
   example content
     deeper indent
```
will display `example content\n  deeper indent` instead of
`   example content\n     deeper indent`.

This does not apply to the EditText, because it might confuse the user when
typing spaces at the beginning of a line, as they wouldn't show up if they are
part of a common indent.
@nevenz
Copy link
Member

nevenz commented Mar 25, 2019

This is when org-adapt-indentation is used?

I think this should be an option under "Settings / Sync / Org file format" and only done when parsing or writing to Org files. I don't think content should be changed within the app.

It could be detected automatically too (currently done for planning times and properties when parsing), though that might not always work.

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

Successfully merging this pull request may close these issues.

2 participants