Page 1 of 1

860 - Multi renaming using text editor - Various quirks

Posted: 11.12.2021, 23:32
by stephen147
With this new feature, I've tried to change the editor to sublime_text.exe but it doesn't work. This is a portable build I'm running if that makes a difference.

Using notepad.exe and also I've tested a portable build of VSCode and it works.

Re: 860 - Multi rename and rename using text editor - Sublime text doesn't work

Posted: 12.12.2021, 10:09
by horst.epp
Works fine here with AkelPad as Editor
using the portable version of FC and AkelPad.
For sublime_text you have to use its subl tool as editor in FC
Sublime_text itself (strange enough) doesn't support command line arguments.

Re: 860 - Multi rename and rename using text editor - Sublime text doesn't work

Posted: 13.12.2021, 17:31
by stephen147
I've noticed when using VSCode it opens itself up in a Restricted mode too and closes any workspaces that you may have opened.

I don't know how this is programmed but I assume the file is created and then the file is opened with the program.

Using this C# code works for me with VSCode without opening it in restricted mode and closing any existing workspaces:

Code: Select all

Process.Start(@"W:\Apps (Portable)\VSCode\Code.exe");
Process.Start(@"W:\Apps (Portable)\VSCode\Code.exe", @"C:\Users\username\AppData\Local\Temp\FreeCommander25896\MultiRename.txt");
The above code snippet could be improved but it's just a concept to see if it works.