doing icon indicating copy to clipboard operation
doing copied to clipboard

[BUG] Using "doing now" flattens identions in taskpaper file

Open dskesler opened this issue 3 years ago • 1 comments

If I have a taskpaper file which has indented items in the outline, when I add a item by running command "doing now ", the taskpaper file flattens the indented items to be on the same outline level as all other items. For example, file contains:

Topic:
      - item 1 
      - item 2

When I add an item from the command line using "doing now New topic" command, when I return to the file, I see this:

New topic
Topic:
- item 1 
- item 2

The indention of items 1 and 2 are removed and the entire list is flattened into the same outline level.

Expected behavior I expected the indented outline levels to remain even after adding new item.

Desktop (please complete the following information):

  • Platform: Mac
  • OS: Monterey
  • Version: 12.5

Doing version

1.0.35

Ruby version

ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin21]

dskesler avatar Aug 08 '22 20:08 dskesler

Doing is not designed to work with TaskPaper files that are used for other purposes. A "doing file" has to follow a strict format, and will automatically adjust itself to fit that format.

You can edit a doing file with TaskPaper, but it's not designed as a TaskPaper integration.

-Brett

On 8 Aug 2022, at 15:08, D. Scott Kesler wrote:

If I have a taskpaper file which has indented items in the outline, when I add a item by running command "doing now ", the taskpaper file flattens the indented items to be on the same outline level as all other items. For example, file contains: Topic: - item 1 - item 2

When I add an item from the command line using "doing now New topic" command, when I return to the file, I see this: New topic Topic:

  • item 1
  • item 2

The indention of items 1 and 2 are removed and the entire list is flattened into the same outline level.

Expected behavior I expected the indented outline levels to remain even after adding new item.

Desktop (please complete the following information):

  • Platform: Mac
  • OS: Monterey
  • Version: 12.5

Doing version

1.0.35

Ruby version

ruby 3.1.2p20 (2022-04-12 revision 4491bb740a) [x86_64-darwin21]

-- Reply to this email directly or view it on GitHub: https://github.com/ttscoff/doing/issues/155 You are receiving this because you were assigned.

Message ID: @.***>

ttscoff avatar Aug 08 '22 20:08 ttscoff

Thanks for that clarification. I'll close this.

dskesler avatar Feb 24 '23 17:02 dskesler

By the way, if you just want a fast way to add/modify TaskPaper files from the command line, I recently souped up my na project for just that purpose. https://github.com/ttscoff/na_gem/

ttscoff avatar Feb 24 '23 22:02 ttscoff