nvim-orgmode / orgmode

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

Support for org-shiftmetaleft, org-outdent-item and org-shiftmetaright, org-indent-item #765

Closed wolfv6 closed 2 months ago

wolfv6 commented 3 months ago

Does this feature exist in Emacs orgmode core?

Yes

Orgmode link

https://orgmode.org/manual/Plain-Lists.html > Unordered list M-LEFT/M-RIGHT Decrease/increase the indentation of an item, leaving children alone.

https://orgmode.org/worg/doc.html > org-metaleft Promote heading, list item at point or move table column left. Calls ‘org-do-promote’, ‘org-outdent-item’ or ‘org-table-move-column’, depending on context. With no specific context, calls the Emacs default ‘backward-word’. See the individual commands for more information. This function runs the hook ‘org-metaleft-hook’ as a first step, and returns at first non-nil value.

https://orgmode.org/worg/doc.html > org-outdent-item Outdent a local list item, but not its children. If a region is active, all items inside will be moved.

Similar descriptions for org-metaright and org-indent-item functions.

Feature value

Used to indent/outdent bullets.

Additional context

No response

seflue commented 3 months ago

Edit: I first thought, you are speaking of org headlines, where this is supported.

You mean the same features provided by org_do_promote/demote and org_promote/demote_subtree, but for list items, correct? That's still missing.

wolfv6 commented 3 months ago

That is correct. Used to indent/outdent list items.

seflue commented 2 months ago

I just implemented the feature in PR #779.

wolfv6 commented 2 months ago

Thanks seflue! That was fast.

seflue commented 2 months ago

Thanks seflue! That was fast.

Took me an evening. :wink: Now let's hope that @kristijanhusak will merge this soon into upstream.