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

Status of org-indent-mode functionality? #422

Open
IllustratedMan-code opened this issue Oct 6, 2022 · 11 comments
Open

Status of org-indent-mode functionality? #422

IllustratedMan-code opened this issue Oct 6, 2022 · 11 comments
Labels
core-feature Feature is in orgmode core neovim-dependency Limited by Neovim functionality

Comments

@IllustratedMan-code
Copy link

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 IllustratedMan-code added the core-feature Feature is in orgmode core label Oct 6, 2022
@IllustratedMan-code
Copy link
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
Copy link
Contributor

jgollenz commented Oct 6, 2022

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

IllustratedMan-code commented Oct 6, 2022

without org-indent-mode

* foo
content

** bar
more content

with org-indent-mode

* foo
  content

 ** bar
    more content

@IllustratedMan-code
Copy link
Author

I believe all indents are virtual.

@jgollenz
Copy link
Contributor

jgollenz commented Oct 7, 2022

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

This

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

becomes

image

@IllustratedMan-code
Copy link
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
Copy link
Author

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

@jgollenz
Copy link
Contributor

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

@kristijanhusak kristijanhusak added the neovim-dependency Limited by Neovim functionality label Jan 13, 2023
@danilshvalov
Copy link
Contributor

See #561

@kristijanhusak
Copy link
Member

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

Please give it a test and see how it works.

@PriceHiller
Copy link
Contributor

PriceHiller commented Jan 25, 2024

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
Labels
core-feature Feature is in orgmode core neovim-dependency Limited by Neovim functionality
Projects
None yet
Development

No branches or pull requests

5 participants