1
$\begingroup$

I would like to "find" and "replace all" in only one cell. Is this possible? For instance if I have an expression common to many cells, and I want to avoid having to replace it also in other cells, how would I "find &replace all" it without having to worry about other cells?

Is there a way to add a button on ctr+F panel?

$\endgroup$
6
  • 2
    $\begingroup$ The cheapest solution is to copy the cell to another notebook :) . I think you can make the question a bit more specific, for example, what do you need? A function e.g. replaceInPreviousCell[a->b]? A panel for this task? Or even a new button in the Ctrl+F panel ? $\endgroup$
    – xzczd
    Mar 10, 2017 at 6:02
  • $\begingroup$ Your final suggestions are all very much suggestive! But your first one is definitely convincing. :) $\endgroup$ Mar 10, 2017 at 8:24
  • $\begingroup$ Put a cursor before the cell -> find next -> replace and find next untill outside the cell. $\endgroup$
    – Kuba
    Mar 10, 2017 at 8:28
  • $\begingroup$ @Kuba this is what I would like to avoid. My cell is enormous... $\endgroup$ Mar 10, 2017 at 8:29
  • $\begingroup$ I see, do you want a general solution or do you want to replace specific symbol? Like myFunction and not e.g. whatever[expression, {could be there}] $\endgroup$
    – Kuba
    Mar 10, 2017 at 8:30

0

Your Answer

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

Browse other questions tagged or ask your own question.