doomemacs / doomemacs/core

org-cycle does not work on org drawer with evil

Open
#6,454 0 comments 1 reaction 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

When I press TAB on an org file on top of an org drawer the drawer should expand. It should call org-cycle

### What actually happened?

Pressing TAB has no visible effect, but it actually calls +fold/toggle.

### Describe your attempts to resolve the issue

It seem to be an leftover bug between
#2798 and #2435. As org-cycle does apply on headlines but not on the drawer.

### Steps to reproduce

1. Open a doom emacs configured for evil.
2. Open an org file.
3. Create a heading
4. call function org-set-property to add a property drawer to the org node.
5. The new property drawer if created expanded can be collapsed with TAB, yet trying to expand it again with TAB does not work as the keybinding calls +fold/toggle instead of org-cycle. Same failure if Property is added and drawers starts collapsed it cannot get expanded.
6. Same failure happends when using org-clock-in for the logbook property. It can be collapsed but not expanded

### System Information

https://pastebin.com/Yc59987q

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue in Doom Emacs with evil using org-set-property or org-clock-in, then inspect how TAB dispatches between org-cycle and +fold/toggle around property and logbook drawers. Done means TAB can both collapse and expand these drawers by invoking org-cycle.

Written by the indexing model from the issue text.

Assessment

Tech stack
emacs-lisp
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.