Page 1 of 2

Is there an embedded text editor in XYplorer?

Posted: 02 Dec 2016 13:33
by fileManager
Hi,
I am very used to CubicExplorer, now sadly dead project, so I have moved on to XYplorer. CubicExplorer have had excellent feature of having embed text editor. How it was working? It have similar feature like "Preview Pane" in XYplorer. But when file was text it was possible to double click in "Preview Pane" and embed editor was displayed in the same place (actually Preview Pane got cursor and menus like File | Save, Edit | Copy, Edit | Paste) and I could quickly add some text to files and save the file all done within file manager itself. Is this possible in XYplorer? I really miss this option a lot.
Regards

Re: Is there ebed text editor in XYplorer?

Posted: 02 Dec 2016 13:35
by highend
Welcome to the forum.

No, XY doesn't include an embedded text editor for the preview pane

The pro version could add something similar (but not the same!) via a script:

Code: Select all

    $validExtensions = "bat|cmd|txt|xys|ini";

    $file  = <curitem>;
    $count = get("CountSelected");
    end $count > 1, "Only one item may be selected, aborted!";
    if !($count) { $file = inputfile(<curpath>, $validExtensions, "Select a file to edit..."); }

    if (regexmatches(gpc($file, "ext") , $validExtensions)) {
        $data = input("Quick File Edit: $file", , readfile($file), "w", , 800, 500);
        writefile($file, $data);
    }
Putting something like this on a keyboard shortcut enables some kind of quick editing a file...

Re: Is there an embedded text editor in XYplorer?

Posted: 02 Dec 2016 20:19
by kunkel321
I think it would be nice if xyplorer were to "pass" text editing to a favorite external editor. Like when I go to "Customize File Icons" (or some other list of definitions), then go to "Editor Mode." (pencil icon) Would be nice if that text editing job could be opened in an editor such as TED Notepad. (I might've posted this as a request a long time ago.)

Re: Is there an embedded text editor in XYplorer?

Posted: 03 Dec 2016 16:15
by Irwin of Upton
Not being much into writing scripts choose an apple pie simple approach. This works for me on small text files; your mileage might be different.

Select the file then File | to Clipboard | Text. Next hit TB button Edit Clipboard. Not fancy but all right there in the program. Good enough here. 8)

Re: Is there an embedded text editor in XYplorer?

Posted: 03 Dec 2016 16:47
by highend
Good enough here
And when you are finished, editing the clipboard, what's next? Right clicking the clipboard toolbar button,
"Paste Text into New File"?

- It doesn't display ansi (> 128) / unicode chars correctly
- It does not work on all editable file types (e.g. ovpn)

Re: Is there an embedded text editor in XYplorer?

Posted: 03 Dec 2016 20:59
by Irwin of Upton
The post cautioned TWICE it was not for everybody :!:

Re: Is there an embedded text editor in XYplorer?

Posted: 03 Dec 2016 21:04
by highend
As far as I understand the OP this thread is about editing a file. I may have missed an option (and that's why I asked what comes next after editing the clipboard) but the only one I currently see is writing the content of the clipboard to a new file

Re: Is there an embedded text editor in XYplorer?

Posted: 04 Dec 2016 06:38
by Kucera
Check my message (wrongly named, it is :wink: ) 'Command ID does not work' - the topic above this one - once highend pointed out the error of my ways, it is obvious that the script I attached to the first message is working just fine. You could replace Textpad in it with the text editor of your choice and it would work pretty much like an embedded one.

Re: Is there an embedded text editor in XYplorer?

Posted: 05 Dec 2016 08:06
by fileManager
@Kucera, how can I open a "Manage User-Defined Command"? Where is it?

Re: Is there an embedded text editor in XYplorer?

Posted: 05 Dec 2016 09:28
by highend
Menu - User - Manage Commands... (not available in the free edition)

Re: Is there an embedded text editor in XYplorer?

Posted: 05 Dec 2016 10:06
by fileManager
Irwin of Upton wrote:Select the file then File | to Clipboard | Text. Next hit TB button Edit Clipboard.
What does TB means? Toolbar or something else... Where is Edit Clipboard option? Is this also not available in free edition?

It is always frustrating to change some good tool for another, always some great feature from one tool not working on another...
Is there any solution available in Free) edition.

Re: Is there an embedded text editor in XYplorer?

Posted: 05 Dec 2016 10:13
by highend
TB = Toolbar
Where is Edit Clipboard option?
In Menu - Edit - Paste Special

or as a toolbar button
Is this also not available in free edition?
It is

Re: Is there an embedded text editor in XYplorer?

Posted: 05 Dec 2016 11:26
by fileManager
@highent, thanks now I have found it.

@ Irwin of Upton, I don't really understand. What are you really suggesting?
a) File | To Clipboard | Text
b) Edit | Paste Special | Edit Clipboard
and what now? :shock:
It looks like a dead end to me. Except opening text editor and paste edited clipboard.

I don't really understand how is this simpler then double click on text file in the first place and use external text editor? Am I missing something?

It looks like there is no useful solution in Free version, isn't it?

Re: Is there an embedded text editor in XYplorer?

Posted: 05 Dec 2016 12:13
by highend
It looks like there is no useful solution in Free version, isn't it?
I would say: Nope

Re: Is there an embedded text editor in XYplorer?

Posted: 05 Dec 2016 14:15
by Irwin of Upton
Sorry if my post confused some and ruffled the feathers of others.

Will think long and hard before sticking my neck out by offering a suggestion again. :roll: