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

Support org_do_promote and org_do_demote in visual mode #860

Open
lyz-code opened this issue Jan 18, 2025 · 0 comments
Open

Support org_do_promote and org_do_demote in visual mode #860

lyz-code opened this issue Jan 18, 2025 · 0 comments
Labels
core-feature Feature is in orgmode core enhancement Enhancement, not necessarily available in emacs

Comments

@lyz-code
Copy link

Does this feature exist in Emacs orgmode core?

N/A

Orgmode link

No response

Feature value

I often need to promote and demote many elements at the same time, for example:

A group of headings:

* Heading 1
** SubHeading 1
** SubSubHeading 1 <-- heading to demote
** SubSubheding 2  <-- heading to demote

The content of a heading (following the case shown in #859)

* Heading 1
****** SubHeading 1
  - Line 1 <-- content to promote
    - Subline 2 <-- content to promote
  - Line 2 <-- content to promote

The natural way for me is to select all the content in visual mode and use >> or << but it falls back to the default nvim indentation change and adds the spaces:

* Heading 1
** SubHeading 1
  ** SubSubHeading 1 
  ** SubSubheding 2 
* Heading 1
****** SubHeading 1
	  - Line 1
	    - Subline 2
	  - Line 2

Additional context

No response

@kristijanhusak kristijanhusak added core-feature Feature is in orgmode core enhancement Enhancement, not necessarily available in emacs labels Jan 22, 2025
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 enhancement Enhancement, not necessarily available in emacs
Projects
None yet
Development

No branches or pull requests

2 participants