thank you for another good suggestion!
I agree that something like that will be useful.sgp wrote:Code: Select all
; next line is in my wish list; search TC internal associations first ;Target=<commander>..\ahk\AutoHotkey.chm
I think this construction is too "fragile", isn't it?sgp wrote:Code: Select all
; next line is in my wish list; open with N-th internal association ;Target=<commander N>..\ahk\AutoHotkey.chm
If a particular internal association currently is on position N, and I remove or add another internal association before it, then its position changes to N-1 or N+1, respectively. In other words, the N-th internal association then is not anymore the one that I wanted to use for opening my file.
In special cases, I think it's better (more robust) to specify the program that you want to open the file, like this:
In order to get a portable FlexLink, you can use a relative path not only for the respective file, but also for the program, e.g.sgp wrote:Code: Select all
Target="%SystemRoot%\hh.exe" ..\ahk\AutoHotkey.chm
Using %commander_path% or %commander_drive% in a FlexLink also makes the link portable, if the TC is on the same drive. Using volume names instead of drive letters makes even absoute paths portable.sgp wrote:Code: Select all
Target=..\programs\hh.exe ..\ahk\AutoHotkey.chm
Thinking more about this whole issue, it occurs to me that the problem also could be the other way round: E.g. ODT files are normally associated with a program such as Open Office or Libre Office, and opened as text file for editing. However, technically speaking, an ODT file is a ZIP archive (which we can open in TC with [CTRL]+[PgDown]). So I think it sometimes could be useful, when FlexLinks would provide an option that forces an archive to be opened as an archive.
Maybe the dialog for creating FlexLinks should be changed, so that instead of
Code: Select all
[ ] System command
Code: Select all
Open link target
(o) automatically (best option in most cases)
( ) as archive in TC
( ) with the command associated internally in TC
( ) with the command associated in the system
( ) with this program:
[......................................]
What do you think?
Best regards, Juergen