Page 1 of 1

F4 (aka Edit) on Directory

Posted: 2017-12-08, 15:18 UTC
by ono
Hi, (Long time no see!)

Is there a reason why TC throws "No files selected!" when selecting a directory and trying to edit? Any reason that this feature files only?

Having a checkbox "[X] Also pass select directories to the editor" would be much appreciated.

I use Sublime Text as my primary editor, and when passing directory as argument it open whole directory (project) and it is perfectly fine.
Unfortunately I cannot simply F4 in TC on directories, I need to use workaround to drag&drop in this case.

I had a long break from using TC, now I am doing some Windows activity. I use ForkLift on Mac, and where it is completely fine to Edit directories.

Cheers,
Adam

Re: F4 (aka Edit) on Directory

Posted: 2017-12-08, 16:01 UTC
by Stefan2
ono wrote:
Is there a reason why TC throws "No files selected!" when selecting a directory and trying to edit? Any reason that this feature files only?

Hi,

the F4 feature is just not designed to work that way with directories
as it work on default with Notepad.exe which do not know what to do with an path only.


But there are a few F4-redirectors which may provide that feature?




Or just create a user command to launch your editor with the path of the selected folder (or file)
and assign a shortcut as Ctrl+Alt+F4 to that command (or even F4 if wanted).




Or simple a button like

CMD = subl
PARAM = %P%N

may work for you?




 

Posted: 2017-12-08, 20:22 UTC
by MVV
But there are a few F4-redirectors which may provide that feature?
I'm afraid that TC doesn't expect that any program that is set up as editor supports directories so it just tells that no files selected.

Button, shortcut, main/context menu item with Sublime should work fine.

Posted: 2018-01-18, 14:40 UTC
by ono
Sorry for late reply, but your solution for just binding "subl" to F4 via custom command work very well. Thank you!