========================================================================
F4Menu v0.12 - for Total Commander 7.0 or above
========================================================================
http://www.shanny.com.cn/

About F4Menu
--------------------------
F4 is the shortcut key of Total Commander/TC for Edit files, means use the specified editor to open the selected file.
Unfortunately, in TC only one editor can be assigned to F4, so it isn't able to choice editor for different file type, and still less choice different editors for one file type.

F4Menu is right developed to resolve these issues.

As the name implies, F4Menu means pop up a menu by pressing F4, and then user can choice an appropriate editor for the current file. Certainly, it is also possible to make F4Menu run on background, that is, does not show menu, and automatically use the associated editors to open the different files.

Key Features
--------------------------
1. Press F4 in TC window, to launch F4Menu in foreground mode and show the selection menu
a. The first item is current file name, if it is shown as "*.xxx", that means there are several files with identical extension. Click this item to open them with system associated program, and it is shown in grey while unassociated.
b. The second item is the default editor, which is used to open all unassociated files in background mode.
c. Common editors, is shown in bold while asscoiate with current file, and in grey while editor path invalid.
Shortcuts
Space - Open the file by first matching editor, search from the common editors, if not found, then use default editor.
Enter - Open the file by selected editor
Ctrl+Enter - Associate and Open the file by selected editor

2. Press ESC+F4 or CapsLock+F4, launch F4Menu in foreground mode and automatically open the files without menu

3. Use different editors to open different files at one time

4. Selection menu support drag-and-drop, can reorder the items easily

5. Providing a setting dialog to modify the configuration of editors
    a. The editor path support all system evironment avariable, such as "%ProgramFiles%", "SystemRoot", "COMMANDER_PATH", etc.
b. The extension support wildcard '*' and '?', the former used to match any string, and the latter to match any single charactor.

Installation
--------------------------
Download: F4Menu_v0.1.zip (31Kb, Unicode)
System request: Windows NT/2000/XP/2003/vista/2008, Total Commander 7.0 or above
Step:
1. Unzip the F4Menu to your folder
2. Set F4Menu.exe as F4 Editor of Total Commander (TC -> Configuration -> Options -> Edit/View -> Editor for F4)
3. OK, press F4 to pop up the menu now!


FAQ
--------------------------
1. Is it possible to associate a editor with empty extension, such as "Makefile"?
A: Yes, just let it to be empty, for example, "txt,," means associate with the file "txt" and empty extension.

2. In the setting dialog, I removed the first line of editors listview, but the following lines will not go up, is it a bug of F4Menu?
A: NO. The first line is default editor, if the default editor is removed, this line will be empty, and F4Menu does not promote the next editor to be default. You also can drag-and-drop editors in this listview.

3. Can F4Menu run VBScript or JScript?
A: Yes, just set wscript.exe as editor and the script as parameter.

4. I select several files in an archive, but F4Menu only open one for me, bug?
A: No. Actually, TC cannot open the files in achieve directly, it must unpack this file to temp folder and then open. And in this case TC just unpack the focused file, not all selected files, so F4Menu can only open one.

5. In an archive, an "User abort!" dialog is shown while pressing ESC+F4 to launch F4Menu, why?
A: As Q4 mentioned, TC will unpack the file before open, during this time, ESC key may be treated as abort command, so the dialog shown. In this case, you can use another shortcut key, CapsLock+F4. (depends on setting)

6. Is it possible to remove default editor?
A: Sure, you can drag down or remove it in both menu and setting dialog.


History
--------------------------
2007-09-15    v0.12
Add: Highlight single file selectoin by F4
Add: Open mode: Open each file separately / Open all file as a list
Add: Selection menu appears positionCurrent file/Mouse cursor
Fix: Cannot work on Vista/2008

2007-09-13    v0.11
Fix: F4Menu cannot work if file size displays as dynamic mode.

2007-09-12    v0.1
Initial release

License Agreement
--------------------------
F4Menu is a free software and provided "as is" without warranty of any kind, including, but not limited to, the implied warranties of merchant ability and fitness for a particular purpose. Should the program prove defective, you assume the cost of all necessary servicing, repair or correction.
This program can be freely copied/distributed without breaking distributive package integrity.


Author
--------------------------
Shao Shanny (PRC)
http://www.shanny.com.cn/
Shannycn@gmail.com

