7
$\begingroup$

What I do: Here

enter image description here

press Shift+Enter to evaluate.

What I get: The cursor disappeared

enter image description here

What I want: The cursor retained

enter image description here

Workaround: Up Arrow as many times as it takes, Right arrow as many times as it takes.

Note: Related may be the fact that on Windows Chrome, ALT+TAB, ALT+TAB hides the cursor :(

$\endgroup$
5
  • 2
    $\begingroup$ I don't think there is a way to do that. But instead of right arrowing, why not just up arrow until you're under the input cell, and then do one left arrow. This takes you to the end of the cell immediately Often that's only three keystrokes. $\endgroup$ Jul 30 '15 at 15:25
  • $\begingroup$ closely related: 29396 @community: Close enough to be a duplicate? $\endgroup$
    – Kuba
    Jul 30 '15 at 15:34
  • 2
    $\begingroup$ @Kuba in this case, I don't think so. The FE and cloud are sufficiently different that i don't think they're duplicates. $\endgroup$
    – rcollyer
    Jul 30 '15 at 15:59
  • 3
    $\begingroup$ If this question is about the programming cloud, please mention is specifically within the body of the post. Do not rely on tags to convey information (at least not in Mma.SE) $\endgroup$
    – Szabolcs
    Jul 30 '15 at 16:10
  • $\begingroup$ @rcollyer sure, I agree, I have missed WPC reference. $\endgroup$
    – Kuba
    Aug 4 '15 at 8:55
12
$\begingroup$

Is this what you are after?

SetOptions[
 EvaluationNotebook[],
 CellEpilog :> (
   SelectionMove[EvaluationNotebook[], All, EvaluationCell];
   SelectionMove[EvaluationNotebook[], After, CellContents];
   )
 ]
$\endgroup$
17
  • $\begingroup$ +1 but based on the tags the OP seems to want to do this in the Programming Cloud, where it doesn't work. $\endgroup$
    – Szabolcs
    Jul 30 '15 at 15:38
  • $\begingroup$ @Szabolcs oh, right, WPC is off topic, isn't it? $\endgroup$
    – Kuba
    Jul 30 '15 at 15:40
  • 1
    $\begingroup$ I wouldn't delete it, it's still a valid answer for the desktop FE. $\endgroup$
    – Szabolcs
    Jul 30 '15 at 16:09
  • 6
    $\begingroup$ @PatrickStevens my understanding is that related software is on-topic if its usage relates to Mathematica, not necessarily its genesis. For example, Wolfram|Alpha is based on Mathematica, but knowing Mathematica does not help one to answer a question about W|A. So, W|A is off-topic here unless the question is about interacting with W|A using Mathematica. (Otherwise, we defer to the experts on that particular product, who are at the Wolfram Community site.) I can imagine a similar argument applying to the Cloud, because it is in a state of flux and none of us really knows how it works. $\endgroup$ Jul 30 '15 at 16:11
  • 1
    $\begingroup$ Nice code, but how to actually restore the old cursor position, not just going to the end of the previous cell? $\endgroup$
    – kungfooman
    Nov 21 '20 at 15:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.