Does work!ghisler(Author) wrote: 2023-07-10, 07:46 UTC Try without parameters, e.g. just
Editor=C:\Program Files\Emacs\emacs-28.2\bin\runemacs.exe
[Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
Moderators: Hacker, petermad, Stefan2, white
-
- Member
- Posts: 118
- Joined: 2004-03-04, 14:56 UTC
- Location: Germany
Re: [Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
-
- New Member
- Posts: 1
- Joined: 2023-07-11, 08:08 UTC
Error dialog when attempting to create-and-edit new file (external editor)
TC Version: 11.00b10
Description
When creating-and-editing a new file with Shift+F4 and an external editor has been defined, an error dialog pops up showing the following error message (the paths may be different):
File not found!
:\Program Files\Notepad++\notepad++.exe" "C:\Temp\test.txt"
"There are no more files."
Note: It seems as if the path of the external editor is truncated at the beginning, missing the double-quotes and drive letter: "C
Note 2: The file is created. Editing that file with F4 does work (opening the external editor with the file).
The external editor line in wincmd.ini is:
Editor=""C:\Program Files\Notepad++\notepad++.exe" "%1""
This feature was not broken in an earlier beta version of 11.00. It broke after an updating to 11.00b10.
Steps to reproduce
Expected behavior
New (empty) file is created and opened in external editor.
Observed behavior
New file is created but error message pops up. Editor is not started.
Description
When creating-and-editing a new file with Shift+F4 and an external editor has been defined, an error dialog pops up showing the following error message (the paths may be different):
File not found!
:\Program Files\Notepad++\notepad++.exe" "C:\Temp\test.txt"
"There are no more files."
Note: It seems as if the path of the external editor is truncated at the beginning, missing the double-quotes and drive letter: "C
Note 2: The file is created. Editing that file with F4 does work (opening the external editor with the file).
The external editor line in wincmd.ini is:
Editor=""C:\Program Files\Notepad++\notepad++.exe" "%1""
This feature was not broken in an earlier beta version of 11.00. It broke after an updating to 11.00b10.
Steps to reproduce
- Clean install of TC
- Set-up an external editor: Configuration > Options > Operation:Edit/View > Editor for F4 > Browse to Notepad++ executable
Field should show something like:
"C:\Program Files\Notepad++\notepad++.exe" "%1"
- Click OK
- In a writable folder, press Shift+F4
- In the Enter filename to edit: enter: test.txt
- Press Enter / click OK
Expected behavior
New (empty) file is created and opened in external editor.
Observed behavior
New file is created but error message pops up. Editor is not started.
Re: Error dialog when attempting to create-and-edit new file (external editor)
[Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
ghisler(Author) wrote: 2023-07-07, 09:46 UTC I can confirm that the editor name with double quotes is parsed incorrectly. I will fix it in the next beta. Sorry for the troubles.
Re: Error dialog when attempting to create-and-edit new file (external editor)
Moderator message from: white » 2023-07-11, 09:22 UTC
Topic merged with this thread.
Re: [Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
Looks like it's fixed now at TC11.00RC1
#146217 personal license
Re: [Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
New file is created but error message pops up. Editor is not started even when using TC11.00RC1.
Re: [Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
Fixed in TC11.00RC1.
2Jyte:
Really no %1 or such things on the line?
And even: Editor=""C:\Program Files\Emacs\emacs-28.2\bin\runemacs.exe""
2Jyte:
Really no %1 or such things on the line?
And with Tc11Rc1 is possible: Editor="C:\Program Files\Emacs\emacs-28.2\bin\runemacs.exe"ghisler(Author) wrote: 2023-07-10, 07:46 UTC Try without parameters, e.g. just
Editor=C:\Program Files\Emacs\emacs-28.2\bin\runemacs.exe
And even: Editor=""C:\Program Files\Emacs\emacs-28.2\bin\runemacs.exe""
Re: [Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
2Jyte
I have triggered the call of both the editor and the creation of the file with any sets of elements of the path to the exe file. Including "%1"
I have triggered the call of both the editor and the creation of the file with any sets of elements of the path to the exe file. Including "%1"
#146217 personal license
Re: [Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
Jyte wrote: 2023-07-13, 05:13 UTC New file is created but error message pops up. Editor is not started even when using TC11.00RC1.
Please open your WINCMD.INI
search for the "Editor="-Line
and copy&paste that line to here.
I have this
Editor=TOOLs\NotePad2\notepad2.exe "%1"
- ghisler(Author)
- Site Admin
- Posts: 50386
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
2Jyte
RC1 uses again WinExec to open the editor on Shift+F4 and should behave exactly as TC 10.52. There must be an error in your editor configuration. Please let me know what exactly you have defined as editor in Configuration - Options - Edit/View.
RC1 uses again WinExec to open the editor on Shift+F4 and should behave exactly as TC 10.52. There must be an error in your editor configuration. Please let me know what exactly you have defined as editor in Configuration - Options - Edit/View.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
original from wincmd.ini
tested also following
copied notepad++ to another directory
If functionality works nicely for everyone else, I can continue with this 
update, tested also using without positive result
Code: Select all
Editor=""C:\Program Files (x86)\Notepad++\notepad++.exe" "%1""
Code: Select all
Editor=""C:\Program Files (x86)\Notepad++\notepad++.exe""
Editor=C:\Program Files (x86)\Notepad++\notepad++.exe
Code: Select all
Editor=C:\APPS\Tools\Notepad++\notepad++.exe
Editor=""C:\APPS\Tools\Notepad++\notepad++.exe""

update, tested also using without positive result
Code: Select all
Editor=""C:\PROGRA~2\NOTEPA~1\NOTEPA~1.EXE" "%1""
Editor=""C:\PROGRA~2\NOTEPA~1\NOTEPA~1.EXE""
Editor=C:\PROGRA~2\NOTEPA~1\NOTEPA~1.EXE
Re: [Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
Update: Works when using "filename.extension", but when trying to create file without extension then issue is seen.
Re: [Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
not confirmed(((but when trying to create file without extension then issue is seen.
Do you see EXACTLY the same error? Could you please make a short video?
Btw. IF you create a button with appropriate command for editor call - will it work for you?
#146217 personal license
Re: [Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
Confirmed, But the issue is seen not within Tc but in npp: Messagebox: Can not open file "path\zzz.").Jyte wrote: 2023-07-13, 15:03 UTC Update: Works when using "filename.extension", but when trying to create file without extension then issue is seen.
The problem for npp may be the point (zzz.) at the end of the pathname?
Wasn't that bug already fixed in Tc11 beta xx?
Re: [Tc11b10] Shift+F4 (edit new file, a basic function of Tc) does not work.
The problem looks like npp specific.JOUBE wrote: 2023-07-13, 15:57 UTCConfirmed, But the issue is seen not within Tc but in npp: Messagebox: Can not open file "path\zzz.").Jyte wrote: 2023-07-13, 15:03 UTC Update: Works when using "filename.extension", but when trying to create file without extension then issue is seen.
The problem for npp may be the point (zzz.) at the end of the pathname?
Wasn't that bug already fixed in Tc11 beta xx?
PSPad configured as Editor has no such problems
and creates a file with no extension.
Windows 11 Home, Version 24H2 (OS Build 26100.3915)
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64
TC 11.51 x64 / x86
Everything 1.5.0.1391a (x64), Everything Toolbar 1.5.2.0, Listary Pro 6.3.2.88
QAP 11.6.4.2.1 x64