Tried for many hours to figure out how to just position the cursor to top or bottom of editor window. Thought it would be easy, since I've been able to create some simple plugins and other stuff. Anyone done this? (I'd even be open to automatically using the 'find' plugin to find first instance of something, without popping up dialog, but can't get this either.)
Thanks -
Thanks -
Re: Jump To Top/Bottom
Hi,
You probably solved your problem, but one never knows !
I was also looking for that and I spent hours digging into docs and blogs. Finally I got a clue from this post:
viewtopic.php?f=11&t=17335&p=44376&hilit=set+cursor+position#p44376 and was able to make something to fullfill my needs (which are not exactly yours).
I was designing a system to include initial mail in an answer, making correct indentation and background coloring, and I wanted to have the cursor at the top, not at the bottom where it was going naturally. Here is part of the code which is relevant: