Page 1 of 1

File Editor

Posted: 01 May 2023 12:17
by XY fan
Is there a File Editor built in to XY?

In the old PowerDesk for instance, there was an option in the Configuration to input the path to an an Editor (eg, EditPad) - such that if you highlighted a file in the list, then clicked on the editor button in the ToolBar, the file would open in the editor.

Re: File Editor

Posted: 01 May 2023 13:30
by highend
viewtopic.php?p=104680#p104680

or if you don't like it, create a user defined button for that kind of task?

Re: File Editor

Posted: 01 May 2023 14:19
by XY fan
I can create a user-defined button and point it at an editor of my choosing, no problem. But of course when I click on the button it just opens the editor - but not the file I have highlighted.

I want the convenience of having the editor open the file in the editor automatically when the editor opens - like in the mentioned-above old PowerDesk.

Re: File Editor

Posted: 01 May 2023 14:25
by Horst
XY fan wrote: 01 May 2023 14:19 I can create a user-defined button and point it at an editor of my choosing, no problem. But of course when I click on the button it just opens the editor - but not the file I have highlighted.

I want the convenience of having it open the file in the editor - like in the mentioned-above old PowerDesk.
And why dont you have an parameter for the current file in your button definition ?
For example for my editor the button definition on left click contains
run "C:\Tools\PSPad\PSPad.exe ""<curitem>""";

Re: File Editor

Posted: 01 May 2023 15:04
by XY fan
I didn't have because I didn't know about "Curitem". Thanks - I have it now and what I wanted. Great expertise here - even if a bit curt at times.

Re: File Editor

Posted: 01 May 2023 20:39
by phred
Unless I'm missing exactly what the OP is trying to do, create Custom File Associations for the format(s) of the file(s) to be edited. Simply double-click on the file and it opens in the editor. If more that one file needs to be in the editor, select the files > right-click > open (or right-click > open with...

Re: File Editor

Posted: 02 May 2023 15:32
by Horst
The button solution does exactly what the requestor asked for
and the PowerDesk Edit did.
No more configuration or settings are needed.

Re: File Editor

Posted: 03 May 2023 02:34
by XY fan
Thnkyou

Re: File Editor

Posted: 03 May 2023 04:59
by XY fan
Horst wrote: 02 May 2023 15:32 The button solution does exactly what the requestor asked for
and the PowerDesk Edit did.
Indeed it does - thankyou again.