# Command to cycle between paragraph and task

**URL:** https://community.silverbullet.md/t/command-to-cycle-between-paragraph-and-task/3774
**Category:** General
**Created:** [January 17, 2026, 5:28am UTC](https://community.silverbullet.md/t/command-to-cycle-between-paragraph-and-task/3774 "2026-01-17T05:28:05Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Mr.Red](https://community.silverbullet.md/user_avatar/community.silverbullet.md/mr.red/32/821_2.png) [@Mr.Red](https://community.silverbullet.md/u/Mr.Red)
#### Post date: [January 17, 2026, 7:29pm UTC](https://community.silverbullet.md/t/command-to-cycle-between-paragraph-and-task/3774/2 "2026-01-17T19:29:46Z")

</div>

If I understand correctly you want a o write a command which cycles the line between item/task/heading?

If that’s so, you just need to separate the current line from its prefix and change the prefix. I’ve done something similar a while ago to cycle through the heading levels # → ## → ### …etc

Here is the post for inspiration:

> [@\[space-lua\] Toggle / Rotate Header Level h1-h6-On/Off](https://community.silverbullet.md/t/space-lua-toggle-rotate-header-level-h1-h6-on-off/3320):
>
> I was having a “productive conversation” with ChatGPT today and after a couple of back and forth, together we cooked up these two little handy Shortcut-Commands: First one is to toggle h1-h6 level headers with one convenient combo-keypress (Ctrl-1 to Ctrl-6): -- function to toggle a specific header level local function toggleHeader(level) local line = editor.getCurrentLine() -- handle empty line if not line or not line.text then editor.insertAtCursor(string.rep("#", level) .. " ") …

---

_[View the full topic](https://community.silverbullet.md/t/command-to-cycle-between-paragraph-and-task/3774)._
