PlainTasks icon indicating copy to clipboard operation
PlainTasks copied to clipboard

Feature Request: Org-Archive changes

Open CodeMonk opened this issue 10 years ago • 2 comments

I recently added a command to do org-mode style archiving (copy an entire subtree to an archive file). But, I also like the idea of having the option of having an archive section in the current file. So, I'm thinking of extending both archive and org-archive as follows:

  • Add the ability to allow org-archive to move archived subtree to archive section
    • Add configuration options for archive section
      • Use the same one?
    • Add configuration boolean to determine whether to archive to file or section.
      • Or, flag to enable one, either, or both?
    • Will have to modify org-archive to detect the archive section, and ignore it.
    • Related cleanup: Allow org-archive separator string, copied from clipper line, to be configurable
  • Add the ability to allow the current archive command to archive to a file.
    • Makes most of the above work common for both commands.

Thoughts?

CodeMonk avatar Feb 25 '15 14:02 CodeMonk

NAVER - http://www.naver.com/

[email protected] 님께 보내신 메일 <[PlainTasks] Feature Request: Org-Archive changes (#218)> 이 다음과 같은 이유로 전송 실패했습니다.


받는 사람이 회원님의 메일을 수신차단 하였습니다.


stockerman7 avatar Feb 25 '15 14:02 stockerman7

org-archive only works on trees. But not all tasks are trees; I have lots of "one-liner" tasks that I would also like to archive without having to turn them into trees just so that the command works. Would it be possible to treat an "atomic" task as a special case and allow it to be archived as well?

nascif avatar Jul 07 '16 15:07 nascif

Would it be possible to treat an "atomic" task as a special case and allow it to be archived as well?

Sure. Feel free to send a pull request, it is super simple to implement (take content of selected line(s), write to another file, erase from current file — script is full of examples, or ask me if sth is unclear). I could do it myself, but I don’t have time to thoroughly test it.

vovkkk avatar Jul 08 '16 05:07 vovkkk