How i can do this: "Extract task list in a file, but when i mark task as completed this they must not be changed in the source file"?

Are you interested to explore the conversion from dataview results to static results?
If yes, we can built a way. (the only thing I think you need to change in your query is the replace of “this.file.name[0]” by the real number)

Better if I leave here one example:

  1. Create a templater file with this content (as is):
<%*
//the dv query
const query = `TASK
FROM "Produttività 🎯/To-Do List 📝"
WHERE (containsword(text, "3") OR containsword(text, "sempre")) AND priorità = "alta"`

// get the results from the query above
let DQL = await DataviewAPI.tryQuery(query);

//the task list
const myTasks = DataviewAPI.markdownTaskList(DQL.values)
-%>
<% myTasks %>
  1. return to your note and run/insert the created templater
1 Like