Is there an embedded text editor in XYplorer?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
fileManager
Posts: 7
Joined: 02 Dec 2016 13:23

Is there an embedded text editor in XYplorer?

Post 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

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Is there ebed text editor in XYplorer?

Post 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...
One of my scripts helped you out? Please donate via Paypal

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Is there an embedded text editor in XYplorer?

Post 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.)
ste(phen|ve) kunkel

Irwin of Upton
Posts: 131
Joined: 28 Feb 2015 19:42

Re: Is there an embedded text editor in XYplorer?

Post 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)

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Is there an embedded text editor in XYplorer?

Post 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)
One of my scripts helped you out? Please donate via Paypal

Irwin of Upton
Posts: 131
Joined: 28 Feb 2015 19:42

Re: Is there an embedded text editor in XYplorer?

Post by Irwin of Upton »

The post cautioned TWICE it was not for everybody :!:

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Is there an embedded text editor in XYplorer?

Post 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
One of my scripts helped you out? Please donate via Paypal

Kucera
Posts: 108
Joined: 31 Mar 2008 01:37
Location: Canada
Contact:

Re: Is there an embedded text editor in XYplorer?

Post 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.

fileManager
Posts: 7
Joined: 02 Dec 2016 13:23

Re: Is there an embedded text editor in XYplorer?

Post by fileManager »

@Kucera, how can I open a "Manage User-Defined Command"? Where is it?

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Is there an embedded text editor in XYplorer?

Post by highend »

Menu - User - Manage Commands... (not available in the free edition)
One of my scripts helped you out? Please donate via Paypal

fileManager
Posts: 7
Joined: 02 Dec 2016 13:23

Re: Is there an embedded text editor in XYplorer?

Post 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.

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Is there an embedded text editor in XYplorer?

Post 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
One of my scripts helped you out? Please donate via Paypal

fileManager
Posts: 7
Joined: 02 Dec 2016 13:23

Re: Is there an embedded text editor in XYplorer?

Post 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?

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Is there an embedded text editor in XYplorer?

Post by highend »

It looks like there is no useful solution in Free version, isn't it?
I would say: Nope
One of my scripts helped you out? Please donate via Paypal

Irwin of Upton
Posts: 131
Joined: 28 Feb 2015 19:42

Re: Is there an embedded text editor in XYplorer?

Post 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:

Post Reply