-
Notifications
You must be signed in to change notification settings - Fork 714
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Append tool overwrites beginning of todo line #258
Comments
@kdonavin Thanks for the bug report. 👍 Can you paste your config file? Can you also paste your The way the I couldn't replicate this on my test, so let's see what's different. Trying to replicate$ ./todo.sh -d todo.cfg ls
--
TODO: 0 of 0 tasks shown
$ ./todo.sh -d todo.cfg add "Investigate solo backpacking trip or consider saving PTO +NorthVaca"
1 Investigate solo backpacking trip or consider saving PTO +NorthVaca
TODO: 1 added.
$ ./todo.sh -d todo.cfg append 1 +GoNorth
1 Investigate solo backpacking trip or consider saving PTO +NorthVaca +GoNorth |
I am happy to post my ShellText Editor
|
Accidentally clicked closed. |
@kdonavin can you post what alias td
which t |
Sure, it is an alias for
|
I also observe this behavior on Ubuntu 18.04. |
I'm unable to replicate this on a very similar setup. Can you patch your todo.sh to include debugging info and send back the output of an incorrect append? download this patch https://gist.github.com/munkee/7c27d074f1a34863b8b664feb1b835df |
I apologize for the delay. This is the message I get after applying your patch.
I got this warning when I patched too: Does that help, @munkee |
Still can't tell exactly what's causing it to mess up, I can see that everything is going correctly and the same as here until the last 5 lines there. Can you try your commands with TODOTXT_VERBOSE=0. Like this Also what version of Dropbox is running on the Mac to synchronize it. Is there any other programs that might be automatically doing anything with your todo.txt file out from under the program? |
@munkee I am not aware of any other programs that are altering these files, no. Dropbox version v72.4.136 -- the most current version from Home Brew repos. Thanks for the |
I know this is quite old now, but I have one question, does this only look this way when viewed with todo.sh? i.e. when you edit the actual todo.txt file does the append still look to have failed? |
Do you want to request a feature or report a bug?
Reporting a bug
What is the current behavior?
If I append to an "old" line (a todo.txt line created perhaps 24 hours or more prior), the beginning of the line is overwritten with the appended text, instead of appending to the end of the line. The append tool works as expected if I recently added the line to todo.txt
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.
todo.sh append Test
to the lineSee the following for erroneous example:
What is the expected behavior?
In contrast to the normal functioning:
todo.sh append
to that line.See this correct example:
Which versions todo.sh are you using?
TODO.TXT Command Line Interface v2.11.0
Which Operating System are you using?
MacOS 10.13.6
Which version of bash are you using?
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)
The text was updated successfully, but these errors were encountered: