You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current implementation does not append a final newline character when saving the todo.txt file. This behavior causes issues with the standard todo.txt CLI, which expects a final newline in the todo.txt file. As a result, a new task added by the CLI are appended to the last task instead of being placed on a new line.
Steps to Reproduce:
Save a todo.txt file using the current implementation.
Add a new task using the standard todo.txt CLI.
Notice that the new task is appended to the last task instead of being placed on a new line.
Expected Behavior:
A final newline character is added when the todo.txt file is saved, ensuring compatibility with the standard todo.txt CLI.
Suggested Fix:
Modify the writeToFile method to ensure that a final newline character is added when writing the todo.txt file here:
The current implementation does not append a final newline character when saving the
todo.txt
file. This behavior causes issues with the standard todo.txt CLI, which expects a final newline in thetodo.txt
file. As a result, a new task added by the CLI are appended to the last task instead of being placed on a new line.Steps to Reproduce:
todo.txt
file using the current implementation.Expected Behavior:
A final newline character is added when the
todo.txt
file is saved, ensuring compatibility with the standard todo.txt CLI.Suggested Fix:
Modify the writeToFile method to ensure that a final newline character is added when writing the
todo.txt
file here:sleek/src/main/modules/File/Write.tsx
Lines 9 to 12 in c3fceea
That would be great. Thanks a lot in advance.
Best regards - Nik
The text was updated successfully, but these errors were encountered: