nvim-orgmode / orgmode

Orgmode clone written in Lua for Neovim 0.9+.
https://nvim-orgmode.github.io/
MIT License
2.9k stars 129 forks source link

Status of org-indent-mode functionality? #422

Open IllustratedMan-code opened 1 year ago

IllustratedMan-code commented 1 year ago

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

IllustratedMan-code commented 1 year ago

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 commented 1 year ago

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 commented 1 year ago

without org-indent-mode

* foo
content

** bar
more content

with org-indent-mode

* foo
  content

 ** bar
    more content
IllustratedMan-code commented 1 year ago

I believe all indents are virtual.

jgollenz commented 1 year ago

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

This

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

becomes

image

IllustratedMan-code commented 1 year ago

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 commented 1 year ago

Looks like https://github.com/neovim/neovim/pull/9496 needs to be merged before this functionality will be possible.

jgollenz commented 1 year ago

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

danilshvalov commented 1 year ago

See #561

kristijanhusak commented 6 months ago

This feature is now added as experimental in https://github.com/nvim-orgmode/orgmode/pull/627#issuecomment-1910981114.

Please give it a test and see how it works.

PriceHiller commented 6 months ago

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

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