Quantcast
Channel: Total Commander
Viewing all articles
Browse latest Browse all 3823

Plugins and addons: devel.+support (English) • Re: F4MiniMenu (AHK): F4Menu w. Drag&Drop, filelist, cmdline (XYPlorer, Everything, Explorer, Double Commander)

$
0
0
Starting from a clean slate:

1. Close/Exit F4MM
2. TC, Configuration, Edit/View, Editor for F4 Editor, set it to:

Code:

notepad.exe
Now when you press F4 on any file it tries to open it in notepad.exe, this is the default TC behaviour.

F4MM:

3. Start F4MM, it now sits in the system tray and waits for TC and "other programs" to be ACTIVE and Hotkeys to be pressed.

-> Assuming your hotkey setup is still empty, pressing F4 will still open notepad. Also expected and correct.

4. Setup the hotkeys again: F4MM Traymenu, Settings, use defaults (you can change it later if you want):

Code:

Background mode (direct) [empty] [F4]Foreground mode (menu):  [Esc]   [F4]Filtered mode (menu):    [Esc]   [F1]
Now when you press F4 on one or more a file(s) in a panel, F4MM comes into play.

NO MENU IS SHOWN as this is the "background mode" (= open files directly, no menu):

F4MM will check if it can find a program associated with (each of) the extensions, if so open the program using a first come, first serve.

This means: for example 4 editors associated with .txt files? use the FIRST one it finds from the order set in the list that can be found in the "configure editors" screen, there is no option to select an editor.

NO program found? Use the default program (Set in F4MM Settings, and is also the first one in the list that can be found in the "configure editors" screen)

+ Pressing F4 should also work with IN a separate lister window and QuickView (can be turned on/off in Settings, Elsewhere in TC)

+ IF you have ticked the boxes in "Other programs", F4 also works in Double Commander, Everything etc... that is because F4MM waits for the hotkeys you've set in Settings Hotkeys AND the "other programs" to be active.

Foreground mode (menu):

Press Esc & F4 now shows a menu listing all editors (in the order you've set them, see configure editors). That way you can select another program.

It will open all selected files in that program so select txt,png,docx ? it will open all three in the selected program (try to anyway)

Filtered mode (menu):

Show a menu with the default editor + all editors it can find based on the selected files extensions in a menu.
Then open all the files in the selected program.

TC ONLY: Files in ARCHIVES using F4TCIE (not required but might be preferred):

Remember you've set notepad.exe as your default editor in TC in step 2?

Test this:

Open a zip file, try to edit a file, notepad.exe will be used. That is because TC unpacks the file, then passes on the temporary path to the editor defined in the TC Settings, notepad in this case.

To use the same preferred editors for each extension defined in F4MM use F4TCIE (=F4 Total Commander Internal Editor):

5. TC, Configuration, Edit/View, Editor for F4 Editor:

Code:

drive:\path-to\F4TCIE.exe or .ahk "%1"
When TC unpacks a file to the temp folder it will now pass it on to F4TCIE instead of notepad.
F4TCIE reads the configuration from F4MM and start the FIRST editor it finds for the extension.

Due to the nature of unpack & edit. It will only work on ONE FILE, nothing can be done about it (I won't attempt it anyway) -- viewtopic.php?p=444090#p444090

ADDED BONUS for using F4TCIE:

When you create a new file it will open it in the first editor for that file type.

OPTIONAL: DocumentTemplates -- https://github.com/hi5/F4MiniMenu/tree/master/DocumentTemplates

There are 5 other alternatives that I know of, links in the first post viewtopic.php?t=35721 perhaps they do a better job depending on user preference and usage.

Statistics: Posted by hi5 — 2025-02-07, 22:30 UTC



Viewing all articles
Browse latest Browse all 3823

Trending Articles