You are here: PSPad forum > English discussion forum > Reverse search (inverse search command-line).

Reverse search (inverse search command-line).

Goto Page: 1 2 Next

#1 Reverse search (inverse search command-line).

Posted by: jcfaria | Date: 2024-05-02 00:11 | IP: IP Logged

Hi,

I am unable to locate the reverse search feature in the PSPad interface (file.PDF -> file.Tex). In other words, double-clicking on a PDF file - compiled using the PSPad compile instruction - the PDF viewer (I recommend Sumatra) sends the information (C:\Users\...PSpad\PSPad.exe "%f;% l") from which file (%f) and line (%l) the PDF was double-clicked. Thus, you can edit directly in the file.tex file. This is often used in corrections, as we can only see the final form after the file is compiled.

My question is: is this feature implemented?

Options: Reply | Quote | Up ^


#2 Re: Reverse search (inverse search command-line).

Posted by: pspad | Date: 2024-05-02 06:14 | IP: IP Logged

How do you want convince any external application to send any command after doubleclick?
PSPad is able to use command line to search file, but I am not able modify e.g.Sumatra to implment doubleclick action

See the PSPad help chapture related to command line

Options: Reply | Quote | Up ^


#3 Re: Reverse search (inverse search command-line).

Posted by: jcfaria | Date: 2024-05-02 07:09 | IP: IP Logged

Dear Jan,
I don't think you understand!

No need to convince any application. Some of them - sumatra for example - already have this feature by default (many years ago).

Take a look at this figure:tinn-r.org

I believe it will be useful for you to understand what I am talking about.

Best,

Options: Reply | Quote | Up ^


#4 Re: Reverse search (inverse search command-line).

Posted by: pspad | Date: 2024-05-02 07:26 | IP: IP Logged

PSPad (many years) allows you to open/select open file and go to line or initiate serch as command line option

Options: Reply | Quote | Up ^


#5 Re: Reverse search (inverse search command-line).

Posted by: jcfaria | Date: 2024-05-02 07:50 | IP: IP Logged

What instruction should I put in the Sumatra dialog box? Can you send me an example?

I tried, just changing the editor's name, in the figure I sent you previously and I was unsuccessful!

In other words, I compile a LaTeX document in PSPad (test.tex), after compilation the document opens in Sumatra (test.pdf), when I double click somewhere in the PDF file (test.pdf) the PSPad does not points to the corresponding location in the test.tex file.

Options: Reply | Quote | Up ^


#6 Re: Reverse search (inverse search command-line).

Posted by: pspad | Date: 2024-05-02 08:31 | IP: IP Logged

Hello

I wrote you, that PSpad contains help. Press F1 to open help, in the index search for Command line and you will see all the possibilities.

If you want to open/select file and jump on line 13 use:
"path\pspad.exe" "file" /13

Options: Reply | Quote | Up ^


#7 Re: Reverse search (inverse search command-line).

Posted by: jcfaria | Date: 2024-05-03 03:18 | IP: IP Logged

The way it is implemented, it only works if the file is not open. If it is already open, it does not change the line, which is what is necessary in the case of reverse search.

I am grateful for your attention.

Best,
J.C.Faria

Options: Reply | Quote | Up ^


#8 Re: Reverse search (inverse search command-line).

Posted by: pspad | Date: 2024-05-03 03:55 | IP: IP Logged

Use the current developer version please.
www.pspad.com

Options: Reply | Quote | Up ^


#9 Re: Reverse search (inverse search command-line).

Posted by: jcfaria | Date: 2024-05-03 04:23 | IP: IP Logged

Same thing. Does not work as desired. I tested 32 and 64 bit:
- pspad551b815.zip
- pspad551b815x64.zip

Options: Reply | Quote | Up ^


#10 Re: Reverse search (inverse search command-line).

Posted by: pspad | Date: 2024-05-03 07:39 | IP: IP Logged

I will check it. If it doesn't work, it's a bug

Options: Reply | Quote | Up ^


Goto Page: 1 2 Next





Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR