Skip to content

Changing existing priority breaks with more than three priorities #784

Closed
@seflue

Description

@seflue

Describe the bug

When I define more priorities then just "highest", "lowest" and "default", then the "intermediate" priority is not recognized as priority when changing an existing priority and a new one is added to the headline.

Steps to reproduce

  1. Define more sophisticated priorities in config, like:
    -- ...
    org_priority_highest = 'A',
    org_priority_default = 'C',
    org_priority_lowest = 'E',
    -- ...
  2. Create a headline with no priority.
  3. Cycle with "Increase priority of headline" through the priorities

Expected behavior

The headline priority should change from [#E] over [#D], [#C], [#B] to [#A] and then nothing again.

Emacs functionality

Bug doesn't exist in Emacs org mode. Priorities are explained here.

Minimal init.lua

...

Screenshots and recordings

No response

OS / Distro

Linux, as always

Neovim version/commit

0.10

Additional context

I already fixed the bug, PR is in the making.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions