orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

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

Open wolfv6 opened this issue 1 year ago • 2 comments

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 <M-left> 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

wolfv6 avatar Jun 29 '24 09:06 wolfv6

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.

seflue avatar Jun 29 '24 14:06 seflue

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

wolfv6 avatar Jun 29 '24 17:06 wolfv6

I just implemented the feature in PR #779.

seflue avatar Jul 22 '24 11:07 seflue

Thanks seflue! That was fast.

wolfv6 avatar Jul 22 '24 12:07 wolfv6

Thanks seflue! That was fast.

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

seflue avatar Jul 22 '24 14:07 seflue