6

Per the advice at this question about jumping to next input cell, I added the code

SetOptions[EvaluationNotebook[], 
  CellEpilog :> SelectionMove[EvaluationNotebook[], Next, Cell]
]

to my initialization block. However, this sends me to the next cell on Shift+Enter instead of the next input cell. Since the notebook is a demonstration file for class, there is a text cell between each pair of input cells. Is there a way to jump to the next input cell instead of next cell.

1 Answers1

5

I have relatively little experience with notebook programming, so this might not be foolproof. It worked in the few situations I tried.

SetOptions[EvaluationNotebook[], 
  CellEpilog :> SelectionMove[NextCell[CellStyle -> "Input"], All, Cell]
]
Szabolcs
  • 234,956
  • 30
  • 623
  • 1,263
  • 1
    I used this command in my initialization cells of several notebooks written by different authors, and it does exactly what I want. Thanks. – Murphy Waggoner May 02 '17 at 00:06