Basic script to go to end of draft

I use one draft to take notes all along the day. When I review or edit what I’ve written a few hours ago, it’s useful to go straight to the end of the draft in order to quickly jot new notes.

Here’s the script for this in the Directory. Launch it via a keyboard button ; fast and easy !

1 Like

That’s a good one.
I’m in need of a script to have the cursor appear at the beginning of a draft, rather than at the end. I tend to prepend todos on a long list which, I need to scroll all the way to the top every time. How would I write that?

Cheers,

1 Like

Something like this will do:

editor.setSelectedRange(0, 0);
editor.activate();
2 Likes

Ah, yes. That works a treat. Many thanks, @dchar