Cursor position on mouse click past end-of-file (macro fix?)
Posted: Sun Apr 08, 2012 2:48 pm
I am experiencing a minor usability issue as I am adjusting to Zeus, and I would not dare to really even call it a bug... I will leave that up to the moderator to decide.
I am a new Zeus user using 3.97h, and am very happy with the macro capability... I finally have an editor that I can script in the language of my choice (ruby or lua or python) rather than having to learn some archaic C syntax. Good work! In fact, I am trying to figure out if I can fix some unusual Zeus mouse click behavior through the use of a macro.
Here are the two behaviors I am seeing.
1. When I single-click the left mouse button anywhere past the last character of the last line of the file, most Windows editors position the cursor on the last line. I commonly rely on this behavior to quickly position my cursor at the end of the file. Not many users may use this "feature"... so may not have been reported before. I would expect Zeus to position the cursor either in the column that I clicked on the last line of the file (consistent with how it acts for other lines in the file) or position cursor at the end of the last line (consistent with Visual Studio). But Zeus simply ignores my mouse click.
2. So I thought I would write a macro to position the cursor on the last character of the last line and bind it to double-click trigger, but I will need to detect when the double click occurred past the end of the file. But before assigning a macro to double-click trigger, I thought I would see what it does presently. So I positioned my cursor in the middle of a line that was a few lines from the end of the file. THen I double click past the end of the document, and Zeus leaves the cursor in its present position and highlights the word under the cursor... Very strange.
I still may be able to write a double-click trigger macro, but I suspect that since Zeus is not repositioning my cursor to the end of the file, that I am not going to have an easy way to detect that the double-clicked event occurred past the end of file so I can act on this information accordingly.
Thanks in advance for any help/insight into how to proceed with overcoming this. It is a minor issue as I said, I can probably learn to work around it in a couple of hours.
Otherwise I like zeus very much so far. I did end up binding "Up" key to MoveLineUpEx and "Down" key to MoveLineDownEx based on piecing together information from other prior forum postings, which makes the cursor Up/Down movement in "no man's land" more like Visual Studio behavior to which many (non-brief) users are accustomed. Thanks for adding the MoveLine*Ex functions.
Keep up the good work!
I am a new Zeus user using 3.97h, and am very happy with the macro capability... I finally have an editor that I can script in the language of my choice (ruby or lua or python) rather than having to learn some archaic C syntax. Good work! In fact, I am trying to figure out if I can fix some unusual Zeus mouse click behavior through the use of a macro.
Here are the two behaviors I am seeing.
1. When I single-click the left mouse button anywhere past the last character of the last line of the file, most Windows editors position the cursor on the last line. I commonly rely on this behavior to quickly position my cursor at the end of the file. Not many users may use this "feature"... so may not have been reported before. I would expect Zeus to position the cursor either in the column that I clicked on the last line of the file (consistent with how it acts for other lines in the file) or position cursor at the end of the last line (consistent with Visual Studio). But Zeus simply ignores my mouse click.
2. So I thought I would write a macro to position the cursor on the last character of the last line and bind it to double-click trigger, but I will need to detect when the double click occurred past the end of the file. But before assigning a macro to double-click trigger, I thought I would see what it does presently. So I positioned my cursor in the middle of a line that was a few lines from the end of the file. THen I double click past the end of the document, and Zeus leaves the cursor in its present position and highlights the word under the cursor... Very strange.
I still may be able to write a double-click trigger macro, but I suspect that since Zeus is not repositioning my cursor to the end of the file, that I am not going to have an easy way to detect that the double-clicked event occurred past the end of file so I can act on this information accordingly.
Thanks in advance for any help/insight into how to proceed with overcoming this. It is a minor issue as I said, I can probably learn to work around it in a couple of hours.
Otherwise I like zeus very much so far. I did end up binding "Up" key to MoveLineUpEx and "Down" key to MoveLineDownEx based on piecing together information from other prior forum postings, which makes the cursor Up/Down movement in "no man's land" more like Visual Studio behavior to which many (non-brief) users are accustomed. Thanks for adding the MoveLine*Ex functions.
Keep up the good work!