F4 from Lister to Editor
Moderators: Hacker, petermad, Stefan2, white
F4 from Lister to Editor
Hello,
I've been using TC for a great deal of years and still catching myself trying to use F4 in Lister to edit the current file.
At some point I used AHK for that.
Would it be possible to add such a feature to the next release?
Regards,
Matta
I've been using TC for a great deal of years and still catching myself trying to use F4 in Lister to edit the current file.
At some point I used AHK for that.
Would it be possible to add such a feature to the next release?
Regards,
Matta
Re: F4 from Lister to Editor
Moderator message from: white » 2022-05-24, 12:46 UTC
Moved to Suggestions forum
Re: F4 from Lister to Editor
Edit is not general usefull as it is not the same for different file formats.
I guess that will never be a native TC function.
If you mean edit while viewing source files,
it can be done using the CudaLister plugin.
This allows to change from read-only to write mode while viewing.
I guess that will never be a native TC function.
If you mean edit while viewing source files,
it can be done using the CudaLister plugin.
This allows to change from read-only to write mode while viewing.
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
Re: F4 from Lister to Editor
Horst.Epp,
I support adding F4 as a hotkey that would call the editor defined for F4 with the file currently opened in Lister (perhaps adding an option to specify line and column as command line options when the editor is called from the Lister, and an option to auto-close the Lister).
Roman
Edit (F4) is always the same (F4 always calls the same editor) regardless of file format.Edit is not general usefull as it is not the same for different file formats.
I support adding F4 as a hotkey that would call the editor defined for F4 with the file currently opened in Lister (perhaps adding an option to specify line and column as command line options when the editor is called from the Lister, and an option to auto-close the Lister).
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: F4 from Lister to Editor
Exactly. Lister's F4 could use the standard TC handler for that.
That was the way I was using it with AutoHotKey - just ran the N++ I had assigned for F4 in TC.
I'm not willing to use AHK on current machine however.
AHK script if anyone is curious:
That was the way I was using it with AutoHotKey - just ran the N++ I had assigned for F4 in TC.
I'm not willing to use AHK on current machine however.
AHK script if anyone is curious:
Code: Select all
; Open Notepad++ on F4 in Lister window.
#IfWinActive,ahk_class TLister
f4::
WinGetTitle,title
StringLen,length,title
StringMid,path,title,11,length-11
WinClose
Run,C:\Program Files (x86)\Notepad++\notepad++.exe %path%,
WinActivate,ahk_class Notepad++
return
Re: F4 from Lister to Editor
That is the problem, as I said.Hacker wrote: 2022-05-24, 13:37 UTC Horst.Epp,Edit (F4) is always the same (F4 always calls the same editor) regardless of file format.Edit is not general usefull as it is not the same for different file formats.
Roman
You can't use Edit for image or office files for example.
For source files this is no problem and easy without adding scripts if the viewer plugin supports editing.
This is true for CudaLister and Syn2 (only x86).
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
Re: F4 from Lister to Editor
2matta
Actually you can use Alt+F3 for your needs, just define external editors (rater than viewers) associated with needed file extensions.
Actually you can use Alt+F3 for your needs, just define external editors (rater than viewers) associated with needed file extensions.
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: F4 from Lister to Editor
Your script doesn't work, it returns wrong path to the editor.matta wrote: 2022-05-24, 13:56 UTC Exactly. Lister's F4 could use the standard TC handler for that.
That was the way I was using it with AutoHotKey - just ran the N++ I had assigned for F4 in TC.
I'm not willing to use AHK on current machine however.
AHK script if anyone is curious:Code: Select all
; Open Notepad++ on F4 in Lister window. #IfWinActive,ahk_class TLister f4:: WinGetTitle,title StringLen,length,title StringMid,path,title,11,length-11 WinClose Run,C:\Program Files (x86)\Notepad++\notepad++.exe %path%, WinActivate,ahk_class Notepad++ return
Here my working version which uses Akelpad, but this doesn't matter.
Code: Select all
; Open AkelPad on F4 in Lister window.
#IfWinActive,ahk_class TLister
f4::
WinGetTitle,title
left := InStr(title, "[") + 1
right := InStr(title, "]") - left
StringMid, path, title, left, right
WinClose
Run,C:\Tools\AkelPad\AkelPad.exe %path%,
WinActivate,ahk_class Akelpad
return
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
Re: F4 from Lister to Editor
Horst.Epp,
Roman
No, that is no problem for the people requesting this functionality.That is the problem, as I said.
Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Re: F4 from Lister to Editor
Yes. Indeed, apparently the window title has changed since then. Was working at the time I was using itHorst.Epp wrote: 2022-05-24, 18:33 UTC Your script doesn't work, it returns wrong path to the editor.

Re: F4 from Lister to Editor
Not the case. I want to use Lister in the first place (it is lite) and then edit if needed.Usher wrote: 2022-05-24, 18:02 UTC 2matta
Actually you can use Alt+F3 for your needs, just define external editors (rater than viewers) associated with needed file extensions.
Re: MultiRenameTool to mark files that match filter
Support++ It is fine with me that i can only launch the configured editor for F4 - that's what I would nedd 99% of the time.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Re: F4 from lister to Editor
Support++ launching editor from viewer using F4 hotkey and adding menu entries where you can edit (F4) and even launch using internal association...petermad wrote: 2022-05-25, 23:27 UTC Support++ It is fine with me that i can only launch the configured editor for F4 - that's what I would nedd 99% of the time.