Skip to content

Status of org-indent-mode functionality? #422

@IllustratedMan-code

Description

@IllustratedMan-code

Does this feature exist in Emacs orgmode core?

Yes

Orgmode link

https://orgmode.org/manual/Org-Indent-Mode.html

Feature value

No response

Additional context

No response

Activity

IllustratedMan-code

IllustratedMan-code commented on Oct 6, 2022

@IllustratedMan-code
Author

This was talked about before in another issue, but neovim did not support the required functionality. What needs to occur to get this to work? I'm happy to make issues in the main neovim repository to get this to happen.

jgollenz

jgollenz commented on Oct 6, 2022

@jgollenz
Contributor

Are the virtual spaces just used for non-headline text or is the second space for each headline level also virtual?

* foo
  content            <-- two virtual spaces

  ** bar              <-- one virtual space?
    more content     <-- four virtual spaces
IllustratedMan-code

IllustratedMan-code commented on Oct 6, 2022

@IllustratedMan-code
Author

without org-indent-mode

* foo
content

** bar
more content

with org-indent-mode

* foo
  content

 ** bar
    more content
IllustratedMan-code

IllustratedMan-code commented on Oct 6, 2022

@IllustratedMan-code
Author

I believe all indents are virtual.

jgollenz

jgollenz commented on Oct 7, 2022

@jgollenz
Contributor

Ah, it's prepending two virtual spaces to every line, even nested headings.

This

* one
foo
** two
bar
*** three
baz

becomes

image

IllustratedMan-code

IllustratedMan-code commented on Oct 12, 2022

@IllustratedMan-code
Author

org-indent-mode is also configurable with org-indent-indentation-per-level which is my case is set to 2. So the number of virtual spaces prepended should be configurable.

IllustratedMan-code

IllustratedMan-code commented on Oct 12, 2022

@IllustratedMan-code
Author

Looks like neovim/neovim#9496 needs to be merged before this functionality will be possible.

jgollenz

jgollenz commented on Jan 12, 2023

@jgollenz
Contributor

@kristijanhusak can you please add the neovim-dependency label?

danilshvalov

danilshvalov commented on May 10, 2023

@danilshvalov
Contributor

See #561

kristijanhusak

kristijanhusak commented on Jan 25, 2024

@kristijanhusak
Member

This feature is now added as experimental in #627 (comment).

Please give it a test and see how it works.

PriceHiller

PriceHiller commented on Jan 25, 2024

@PriceHiller
Contributor

The following stills remains to be done:
(Checked means done)

  • Toggling indent mode on or off in a buffer
    Support #+STARTUP: indent & #+STARTUP: noindent
    Support for org-indent-mode-turns-on-hiding-stars like Emacs

I'll be opening PRs to resolve these as time permits. Probably no later than Sunday 2024-28-01.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @kristijanhusak@jgollenz@danilshvalov@PriceHiller@IllustratedMan-code

        Issue actions

          Status of org-indent-mode functionality? · Issue #422 · nvim-orgmode/orgmode