Allow renaming headers in body

Use case or problem

The “Rename this heading” command is only available whenever the carat is on a heading already, limiting its convenience.

Proposed solution

Allow for the command to always be usable, and presume that the user wants to rename the closest header above (i.e., the same header as the outline would highlight).

Current workaround (optional)

Selecting the header manually

Not a solution but you can use Code Editor Shortcuts community plugin and Go to next heading and Go to previous heading shotcuts. You can use the same shortcuts for navigation or editing.