Custom File Associations - with SubMenu
Re: Custom File Associations - with SubMenu
Actually I just had it happen to me, too... In 27.00.0100...
Re: Custom File Associations - with SubMenu
Well I am sure it will get immediately resolved because of all the intricate detail you have supplied, making any repro attempts a breeze.
Re: Custom File Associations - with SubMenu
Thanks for your kind and friendly words, jupe,
I thought Don probably does already have enough examples to figure it all out, but no problem:
Fixed one:
Original:
Working on a MineCraft DataPack (pack.mcmeta file) I was wondering, why the system default editor get's called instead of EditPad Pro 8 (#10 - i.e. line 10) referring to mcmeta files. Until I figured those lines were ignored.
Not sure if there's anything new in my config that's been different from the other config already provided by someone else.
It's interesting, that code above skipped submenus seem to be ignored, the code above the visible submenu is fully functional though.
EDIT:
Putting all three submenus in a block at the end with the first two hidden and the third showing is working correctly:
It doesn't even matter if the visible submenu (Scripts) is first or last of those blocks. The CFA's are evaluated correctly.
I thought Don probably does already have enough examples to figure it all out, but no problem:
Fixed one:
Code: Select all
+Just Great Software
+ atc>?:\AceText 4\AceText.exe
+ pgr>?:\PowerGREP 5\PowerGREP5.exe
+ rxb>?:\RegexBuddy 4\RegexBuddy4.exe
+ rxm>?:\RegexMagic 2\RegexMagic2.exe
+-
+AutoHotkey
+ "AHK 2.0 (64bit)" ahk>?:\Portable\AHK 2.0\AutoHotkeyU64.exe
+ "AHK 2.0 (32bit)" ahk>?:\Portable\AHK 2.0\AutoHotkeyU32.exe
+ "AHK 1.1 (64bit)" ahk>?:\Portable\AHK 1.1.26\AutoHotkeyU64.exe
+ "AHK 1.1 (32bit)" ahk>?:\Portable\AHK 1.1.26\AutoHotkeyU32.exe
+-
+{:Media};m4b>?:\PortableApps\VLCPortable\VLCPortable.exe
+-
+"AutoHotkey 2.0 Unicode 64-bit" ahk>?:\Portable\AHK 2.0\AutoHotkeyU64.exe
+"AutoHotkey 1.1.26 Unicode 64-bit" ahk>?:\Portable\AHK 1.1.26\AutoHotkeyU64.exe
+|"New Horizon Savegame Editor" main.dat>?:\Downloads\ACNH\NHSE\NHSE.exe
+7z;zip>?:\PortableApps\7-ZipPortable\7-ZipPortable.exe
-
+*.cosmos>?:\CoSMOS Portable\Cosmos.exe
+"EditPad Pro 8 #21" {:Text}>?:\EditPad Pro 8\EditPadPro8.exe
+"EditPad Pro 8 #22" mcmeta>?:\EditPad Pro 8\EditPadPro8.exe
+{:Text}>?:\PortableApps\BabelPadPortable\BabelPadPortable.exe
{:Web}>#
-
+db>?:\PortableApps\SQLiteDatabaseBrowserPortable\SQLiteDatabaseBrowserPortable.exe
+|"EditPad Pro 8 #27" *>?:\EditPad Pro 8\EditPadPro8.exe
+|*>?:\PortableApps\BabelPadPortable\BabelPadPortable.exe
+-
+pdf;chm;epub;mobi>?:\PortableApps\SumatraPDFPortable\SumatraPDFPortable.exe
+epub;azw3>?:\PortableApps\calibrePortable\calibrePortable.exe
+epub>?:\PortableApps\SigilPortable\SigilPortable.exe
+md;mdown;markdown>?:\PortableApps\CuteMarkEdPortable\CuteMarkEdPortable.exe
+iso>"?:\PortableApps\UltraISO Portable\UltraISOPortable.exe" -input <pfaitem>
+-
+|pdf>?:\PortableApps\GoogleChromePortable\GoogleChromePortable.exe
+"SmartVersion (32-bit)" svf>?:\Portable\smartvs382\smartvs.exe
+"SmartVersion (64-bit)" svf>?:\Portable\smartvs382_x64\smartvs.exe
+-
|odt;ott;sxw;stx;txt;htm;html;xml;xhtml;uot;uof;602>?:\PortableApps\PortableApps\OpenOfficePortable\OpenOfficeWriterPortable.exe
|"Microsoft Word 97/2000/XP -> OpenOffice" doc;dot>?:\PortableApps\PortableApps\OpenOfficePortable\OpenOfficeWriterPortable.exe
|"Microsoft Word 2003/2007 -> OpenOffice" docx;docm;dotx;dotm>?:\PortableApps\PortableApps\OpenOfficePortable\OpenOfficeWriterPortable.exe
+-
+txt>Notepad
+txt;rtf>Wordpad
+"Open File as Paper Folder|:paper" txt>::paperfolder(<pfaitem>, , ,l);
+-
+Scripts
+ |"Copy file size in bytes" *>::copytext <cursize>
+ |"Append Modified Date to Filename" \;*>::rename , '*-<datem yyyymmdd>'
+ |"Append Image Dimensions to Filename" \;*>::rename , '*-<prop #image.dimensions>'Code: Select all
+{:Media};m4b>?:\PortableApps\VLCPortable\VLCPortable.exe
+-
+"AutoHotkey 2.0 Unicode 64-bit" ahk>?:\Portable\AHK 2.0\AutoHotkeyU64.exe
+"AutoHotkey 1.1.26 Unicode 64-bit" ahk>?:\Portable\AHK 1.1.26\AutoHotkeyU64.exe
+|"New Horizon Savegame Editor" main.dat>?:\Downloads\ACNH\NHSE\NHSE.exe
+7z;zip>?:\PortableApps\7-ZipPortable\7-ZipPortable.exe
-
+*.cosmos>?:\CoSMOS Portable\Cosmos.exe
+"EditPad Pro 8 #9" {:Text}>?:\EditPad Pro 8\EditPadPro8.exe
+"EditPad Pro 8 #10" mcmeta>?:\EditPad Pro 8\EditPadPro8.exe
+{:Text}>?:\PortableApps\BabelPadPortable\BabelPadPortable.exe
{:Web}>#
-
+Just Great Software
+ atc>?:\AceText 4\AceText.exe
+ pgr>?:\PowerGREP 5\PowerGREP5.exe
+ rxb>?:\RegexBuddy 4\RegexBuddy4.exe
+ rxm>?:\RegexMagic 2\RegexMagic2.exe
+-
+pdf;chm;epub;mobi>?:\PortableApps\SumatraPDFPortable\SumatraPDFPortable.exe
+epub;azw3>?:\PortableApps\calibrePortable\calibrePortable.exe
+epub>?:\PortableApps\SigilPortable\SigilPortable.exe
+md;mdown;markdown>?:\PortableApps\CuteMarkEdPortable\CuteMarkEdPortable.exe
+iso>"?:\PortableApps\UltraISO Portable\UltraISOPortable.exe" -input <pfaitem>
+-
+AutoHotkey
+ "AHK 2.0 (64bit)" ahk>?:\Portable\AHK 2.0\AutoHotkeyU64.exe
+ "AHK 2.0 (32bit)" ahk>?:\Portable\AHK 2.0\AutoHotkeyU32.exe
+ "AHK 1.1 (64bit)" ahk>?:\Portable\AHK 1.1.26\AutoHotkeyU64.exe
+ "AHK 1.1 (32bit)" ahk>?:\Portable\AHK 1.1.26\AutoHotkeyU32.exe
+-
+db>?:\PortableApps\SQLiteDatabaseBrowserPortable\SQLiteDatabaseBrowserPortable.exe
+|"EditPad Pro 8 #33" *>?:\EditPad Pro 8\EditPadPro8.exe
+|*>?:\PortableApps\BabelPadPortable\BabelPadPortable.exe
+-
+|pdf>?:\PortableApps\GoogleChromePortable\GoogleChromePortable.exe
+"SmartVersion (32-bit)" svf>?:\Portable\smartvs382\smartvs.exe
+"SmartVersion (64-bit)" svf>?:\Portable\smartvs382_x64\smartvs.exe
+-
|odt;ott;sxw;stx;txt;htm;html;xml;xhtml;uot;uof;602>?:\PortableApps\PortableApps\OpenOfficePortable\OpenOfficeWriterPortable.exe
|"Microsoft Word 97/2000/XP -> OpenOffice" doc;dot>?:\PortableApps\PortableApps\OpenOfficePortable\OpenOfficeWriterPortable.exe
|"Microsoft Word 2003/2007 -> OpenOffice" docx;docm;dotx;dotm>?:\PortableApps\PortableApps\OpenOfficePortable\OpenOfficeWriterPortable.exe
+-
+txt>Notepad
+txt;rtf>Wordpad
+"Open File as Paper Folder|:paper" txt>::paperfolder(<pfaitem>, , ,l);
+-
+Scripts
+ |"Copy file size in bytes" *>::copytext <cursize>
+ |"Append Modified Date to Filename" \;*>::rename , '*-<datem yyyymmdd>'
+ |"Append Image Dimensions to Filename" \;*>::rename , '*-<prop #image.dimensions>'Not sure if there's anything new in my config that's been different from the other config already provided by someone else.
It's interesting, that code above skipped submenus seem to be ignored, the code above the visible submenu is fully functional though.
EDIT:
Putting all three submenus in a block at the end with the first two hidden and the third showing is working correctly:
Code: Select all
[...]
+-
+txt>Notepad
+txt;rtf>Wordpad
+"Open File as Paper Folder|:paper" txt>::paperfolder(<pfaitem>, , ,l);
+-
+Just Great Software
+ atc>?:\AceText 4\AceText.exe
+ pgr>?:\PowerGREP 5\PowerGREP5.exe
+ rxb>?:\RegexBuddy 4\RegexBuddy4.exe
+ rxm>?:\RegexMagic 2\RegexMagic2.exe
+-
+AutoHotkey
+ "AHK 2.0 (64bit)" ahk>?:\Portable\AHK 2.0\AutoHotkeyU64.exe
+ "AHK 2.0 (32bit)" ahk>?:\Portable\AHK 2.0\AutoHotkeyU32.exe
+ "AHK 1.1 (64bit)" ahk>?:\Portable\AHK 1.1.26\AutoHotkeyU64.exe
+ "AHK 1.1 (32bit)" ahk>?:\Portable\AHK 1.1.26\AutoHotkeyU32.exe
+-
+Scripts
+ |"Copy file size in bytes" *>::copytext <cursize>
+ |"Append Modified Date to Filename" \;*>::rename , '*-<datem yyyymmdd>'
+ |"Append Image Dimensions to Filename" \;*>::rename , '*-<prop #image.dimensions>'Re: Custom File Associations - with SubMenu
Not sure why you think he would already have enough info, you didn't even say what your issue actually was, whether submenus were missing, normal entries, dividers, or anything, you just said "it" happened.
So referencing your stated issue with mcmeta, adding a divider line @ line #12 of your original entries, seems to resolve it too, but of course you may have other issues you haven't mentioned, that this doesn't resolve.
So referencing your stated issue with mcmeta, adding a divider line @ line #12 of your original entries, seems to resolve it too, but of course you may have other issues you haven't mentioned, that this doesn't resolve.
Re: Custom File Associations - with SubMenu
I was referring to the general issue of Top-Level Entries missing when a Sub-Menu without visible sub-entries is present after those Top-Level Entries.jupe wrote: ↑23 Mar 2025 19:59 Not sure why you think he would already have enough info, you didn't even say what your issue actually was, whether submenus were missing, normal entries, dividers, or anything, you just said "it" happened.
So referencing your stated issue with mcmeta, adding a divider line @ line #12 of your original entries, seems to resolve it too, but of course you may have other issues you haven't mentioned, that this doesn't resolve.
The "Original" Version (with a divider at line #12) was still bugging...
Wait... You mean adding an additional divider above
Code: Select all
{:Web}>#Interesting. Didn't try that one.
Anyways, moving those Submenus to the end of the CFA-Config solved the issue (at least for now). But Don might still want to take a look at it since apparently he didn't catch all instances of it happening yet.
P.S. Yeah, I have to admit: I might at least have been a bit more specific as to what issue I was talking about... "It" might actually have been quite vague...
-
admin
- Site Admin
- Posts: 65389
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom File Associations - with SubMenu
Hmm, is it possible to state the problem and give a minimal repro example in one post?
FAQ | XY News RSS | XY X
Re: Custom File Associations - with SubMenu
Don, I spotted one issue (and found a mitigation) that I mentioned in my last post, to repro just use the entries reposted below, and create/rename a file to have a mcmeta file ext, open CFA menu and notice that there is no entry for "EditPad Pro 8 #10" then go back into CFA config and enable the existing divider at line 12, and now try again, the EditPro entry will now be visible in the menu.
Obviously I don't know if resolving this will fix all the OP's issues, but it does seem to mitigate the one they (eventually...) mentioned.
Obviously I don't know if resolving this will fix all the OP's issues, but it does seem to mitigate the one they (eventually...) mentioned.
Code: Select all
+{:Media};m4b>?:\PortableApps\VLCPortable\VLCPortable.exe
+-
+"AutoHotkey 2.0 Unicode 64-bit" ahk>?:\Portable\AHK 2.0\AutoHotkeyU64.exe
+"AutoHotkey 1.1.26 Unicode 64-bit" ahk>?:\Portable\AHK 1.1.26\AutoHotkeyU64.exe
+|"New Horizon Savegame Editor" main.dat>?:\Downloads\ACNH\NHSE\NHSE.exe
+7z;zip>?:\PortableApps\7-ZipPortable\7-ZipPortable.exe
-
+*.cosmos>?:\CoSMOS Portable\Cosmos.exe
+"EditPad Pro 8 #9" {:Text}>?:\EditPad Pro 8\EditPadPro8.exe
+"EditPad Pro 8 #10" mcmeta>?:\EditPad Pro 8\EditPadPro8.exe
+{:Text}>?:\PortableApps\BabelPadPortable\BabelPadPortable.exe
-
+Just Great Software
+ atc>?:\AceText 4\AceText.exe
+ pgr>?:\PowerGREP 5\PowerGREP5.exe
+ rxb>?:\RegexBuddy 4\RegexBuddy4.exe
+ rxm>?:\RegexMagic 2\RegexMagic2.exe
+-
+pdf;chm;epub;mobi>?:\PortableApps\SumatraPDFPortable\SumatraPDFPortable.exe
+epub;azw3>?:\PortableApps\calibrePortable\calibrePortable.exe
+epub>?:\PortableApps\SigilPortable\SigilPortable.exe
+md;mdown;markdown>?:\PortableApps\CuteMarkEdPortable\CuteMarkEdPortable.exe
+iso>"?:\PortableApps\UltraISO Portable\UltraISOPortable.exe" -input <pfaitem>
+-
+AutoHotkey
+ "AHK 2.0 (64bit)" ahk>?:\Portable\AHK 2.0\AutoHotkeyU64.exe
+ "AHK 2.0 (32bit)" ahk>?:\Portable\AHK 2.0\AutoHotkeyU32.exe
+ "AHK 1.1 (64bit)" ahk>?:\Portable\AHK 1.1.26\AutoHotkeyU64.exe
+ "AHK 1.1 (32bit)" ahk>?:\Portable\AHK 1.1.26\AutoHotkeyU32.exe
+-
+db>?:\PortableApps\SQLiteDatabaseBrowserPortable\SQLiteDatabaseBrowserPortable.exe
+|"EditPad Pro 8 #33" *>?:\EditPad Pro 8\EditPadPro8.exe
+|*>?:\PortableApps\BabelPadPortable\BabelPadPortable.exe
+-
+|pdf>?:\PortableApps\GoogleChromePortable\GoogleChromePortable.exe
+"SmartVersion (32-bit)" svf>?:\Portable\smartvs382\smartvs.exe
+"SmartVersion (64-bit)" svf>?:\Portable\smartvs382_x64\smartvs.exe
+-
|odt;ott;sxw;stx;txt;htm;html;xml;xhtml;uot;uof;602>?:\PortableApps\PortableApps\OpenOfficePortable\OpenOfficeWriterPortable.exe
|"Microsoft Word 97/2000/XP -> OpenOffice" doc;dot>?:\PortableApps\PortableApps\OpenOfficePortable\OpenOfficeWriterPortable.exe
|"Microsoft Word 2003/2007 -> OpenOffice" docx;docm;dotx;dotm>?:\PortableApps\PortableApps\OpenOfficePortable\OpenOfficeWriterPortable.exe
+-
+txt>Notepad
+txt;rtf>Wordpad
+"Open File as Paper Folder|:paper" txt>::paperfolder(<pfaitem>, , ,l);
+-
+Scripts
+ |"Copy file size in bytes" *>::copytext <cursize>
+ |"Append Modified Date to Filename" \;*>::rename , '*-<datem yyyymmdd>'
+ |"Append Image Dimensions to Filename" \;*>::rename , '*-<prop #image.dimensions>'-
admin
- Site Admin
- Posts: 65389
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom File Associations - with SubMenu
Yes.
Should be fixed in next beta.
FAQ | XY News RSS | XY X
Re: Custom File Associations - with SubMenu
Wow... I didn't notice that. Nice catch. Separator-lines can and should be activated in the CFA-config. Though they do work even when not activated, this issue seems fixed when they are...jupe wrote: ↑08 Apr 2025 02:29 Don, I spotted one issue (and found a mitigation) that I mentioned in my last post, to repro just use the entries reposted below, and create/rename a file to have a mcmeta file ext, open CFA menu and notice that there is no entry for "EditPad Pro 8 #10" then go back into CFA config and enable the existing divider at line 12, and now try again, the EditPro entry will now be visible in the menu.
Obviously I don't know if resolving this will fix all the OP's issues, but it does seem to mitigate the one they (eventually...) mentioned.
Re: Custom File Associations - with SubMenu
One other thing that stopped working (just the text is shown) when submenus were introduced was filetype specific dividers, eg
But even in earlier XY versions they weren't functioning as I think they were originally intended?, they seemed to show up no matter the filetype.
txt>-But even in earlier XY versions they weren't functioning as I think they were originally intended?, they seemed to show up no matter the filetype.
-
admin
- Site Admin
- Posts: 65389
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Custom File Associations - with SubMenu
Indeed. Should again work in the next beta. 
FAQ | XY News RSS | XY X
Re: Custom File Associations - with SubMenu
I think there may still be issues, eg. using these entries
and selecting a txt file, there is no div shown between Copy/Append entries, if div on line#2 is unchecked then the div on line#5 shows up.
Code: Select all
+txt>Notepad
+-
+txt;rtf>Wordpad
+|"Copy file size in bytes" *>::e|copytext <cursize>
+txt>-
+|"Append Modified Date to Filename" \;*>::e|rename , '*-<datem yyyymmdd>'
XYplorer Beta Club