Export / Get canvas content as a text list

Use case or problem

This may be very specific but I’d need to retrieve the card’s titles from a canvas file : I use it to build processes that I later need to list in txt and/or csv files, one note = one step / item.

Proposed solution

Would be an option in the prompt for commands ctrl-p :

canvas: Export cards as text list

Current workaround (optional)

Right now, my only way to do so is by hand (copy-pasting).

Workaround = get the ls output from inside the folder containing my notes and comparing what is on the canvas and what is not (keeping only the correct lines) — a bit less tidious.