[OS X TeX] 1) Search source file when preview is active (`front'). 2) Incremental search
herbs at wideopenwest.com
Sat May 24 01:17:48 CEST 2014
On May 23, 2014, at 6:08 PM, Nicolae Garleanu <garleanu at haas.berkeley.edu> wrote:
> I would like to be able to press Cmd-F when in the preview and search the source file. I thought I’d try something myself before bothering everyone, so I looked at the standard macros, and aimed for something along the lines of
> tell application "TeXShop"
> end tell
> Of course it didn’t work. Whether it’s just because to invoke the command `Find…’ the syntax is more complex, or there is another flaw, I don’t know. I am sure it’s possible, as `Insert Begin/End’, for instance, works when called from the preview, as do others. There probably is a more elegant solution altogether, that simply makes the standard `Find’ command available. (The alternative, of course, is to move to the source window, which is what I do currently.)
> A related topic is whether one can have an incremental search command in TexShop. It is available in Chrome, say, so should not need programming from scratch.
> Thank you.
I guess I wouldn't find Cmd-1, Cmd-F terrible to do; Cmd-1 switches to the Source window so that Cmd-F gives the usual Find dialog.
Also, If you are trying to find a location in the Source based on a location in the Preview simply Cmd-Click in the Preview window at the location and it will show up in the Source window. It works the other way too---well, not quite as well since it gets you to the correct paragraph rather than the right words.
(herbs at wideopenwest dot com)
More information about the macostex-archives