I keep a markdown-style task list in a plain text file. I use a macro to quick-enter new tasks without having to open up the document, basically prompting me for task name and then appending to the end of the task list file while I get on with other things.
If the last character of the file is at the end of the (previously last) task, the new task gets appended on to that existing line (which I don't want). But if the last character is at the beginning of a new line, after that last task, then the new task is inserted on that new line (which I DO want).
But if I force a new line using Append Text, then sometimes I'll end up with blank lines between tasks, which I don't want.
I want to force my new task to the beginning of a new line, while not having any blank (empty) lines between my new task and my previous task. I don't know how to test for whether I'm at the beginning of a new line, so that I can craft the appropriate Append Text.
The thread at Get Text Cursor Position seems to indicate that I can't go to CMD-DownArrow and then test for position index = 0.
Is there any other good way of figuring out, when I move to the end of a file, if my cursor is at a fresh new empty line or not?
Thank you all, please forgive my clumsy descriptions, it's my first forum post and I'm still learning.