emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [FR] Aligning paragraphs in lists
@ 2023-08-27 11:08 Maske
  2023-08-28  9:31 ` Ihor Radchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Maske @ 2023-08-27 11:08 UTC (permalink / raw)
  To: Org-mode

[-- Attachment #1: Type: text/plain, Size: 637 bytes --]

Could be used M-right or M-left to align paragraphs which are 
immediately below a list?

In a list, if pressing Enter, the next paragraph is aligned below the 
item of the list:
+ Item 1
   Text indented, belongs to Item 1.

If there are subitems, the text could be needed to be aligned below a 
superior item, and this must be done in a manual way:
+ Item 1
   Text indented, belongs to Item 1.
    - Item 2
      Text indented, belongs to Item 2.
   This paragraph is aligned below Item 1, but I think there is too much 
"friction" to achieve this. And the alignment would be different if the 
bullet was "1)"


Best regards

[-- Attachment #2: Type: text/html, Size: 1175 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [FR] Aligning paragraphs in lists
  2023-08-27 11:08 [FR] Aligning paragraphs in lists Maske
@ 2023-08-28  9:31 ` Ihor Radchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Ihor Radchenko @ 2023-08-28  9:31 UTC (permalink / raw)
  To: Maske; +Cc: Org-mode

Maske <maske1foro@gmail.com> writes:

> Could be used M-right or M-left to align paragraphs which are 
> immediately below a list?
> ...
> If there are subitems, the text could be needed to be aligned below a 
> superior item, and this must be done in a manual way:
> + Item 1
>    Text indented, belongs to Item 1.
>     - Item 2
>       Text indented, belongs to Item 2.
>    This paragraph is aligned below Item 1, but I think there is too much 
> "friction" to achieve this. And the alignment would be different if the 
> bullet was "1)"

I do not like the idea of changing the behavior of M-<left>/<right> -
users used to current behavior might be surprised.

But otherwise the feature would be reasonable.
We can make repeated <TAB> (indentation) change the current paragraph
indentation in the parent lists. Similar to what we do for new headings:

‘<TAB>’ (‘org-cycle’)
     In a new entry with no text yet, the first ‘<TAB>’ demotes the
     entry to become a child of the previous one.  The next ‘<TAB>’
     makes it a parent, and so on, all the way to top level.  Yet
     another ‘<TAB>’, and you are back to the initial level.

Patches welcome!

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-08-28  9:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-27 11:08 [FR] Aligning paragraphs in lists Maske
2023-08-28  9:31 ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).