Context Menu > File List ... > ADD...

Features wanted...
Stef123

Context Menu > File List ... > ADD...

Post by Stef123 »

ADDing our own custom items - that would be terrific. By running or loading a script or simply specifying #ID;
Even better if the [folders only] option could be applied as well.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Context Menu > File List ... > ADD...

Post by bdeshi »

Ah, I was also thinking of these "XY-only shortcuts", and that. Say I put one of these yet-imaginary files/shortcuts/scripts (optionally with at least some properties) to any arbitrary location, but only they aren't really there. And they survive across systems. Like a removable layer on top of the file system. or like a paper: but mixed in with filesystem locations.
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

admin
Site Admin
Posts: 65132
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Context Menu > File List ... > ADD...

Post by admin »

Via Open With... in the context menu you can add all sorts of scripts (PFA).

Stef123

Re: Context Menu > File List ... > ADD...

Post by Stef123 »

You're right. And I've been doing it to some extent, w/o realizing it. Guess it's that extra click it takes, plus the Open... caption. 2 misleading hints that don't encourage treating it as a genuine context menu.

Stef123

Re: Context Menu > File List ... > ADD...

Post by Stef123 »

admin wrote:Via Open With... in the context menu you can add all sorts of scripts (PFA).
Please add support for
- separators - to group real PFA apart from custom commands
- XY icons

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Context Menu > File List ... > ADD...

Post by bdeshi »

you can assign custom icons in the caption, like this

Code: Select all

+"XYScript|<xyicons>\cfi\xys.ico" xys>::load "<xyscripts>\pfa_xys.xys";
and make separators using the caption, like this:

Code: Select all

+|"-" *;\ >::eval();
edit: if you want to add more than one separator, then make the pfa part different to stop them from being assimilated into one.

Code: Select all

+|"-" *;\ >::eval(0);
+|"-" *;\ >::eval(1);
+|"-" *;\ >::eval(2);
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Stef123

Re: Context Menu > File List ... > ADD...

Post by Stef123 »

Thanks.
I meant the built-in icons :moveto :copyto etc - to be consistent throughout XY

The separators are not working here. I get to see the "::eval();" instead of separators. I helped myself with dummy commands and empty spacer icons like this:

Code: Select all

|"--------------|<xyicons>\spacer.ico" \;*>#614;
But it doesn't look nice. A far cry from real separators than span the whole width.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Context Menu > File List ... > ADD...

Post by TheQwerty »

Works here... But it can quickly turn into a mess when the match patterns start changing what appears between the separators.
Attachments
2015-04-20_102314_cfaseps.png
2015-04-20_102314_cfaseps.png (47.07 KiB) Viewed 3074 times

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Context Menu > File List ... > ADD...

Post by bdeshi »

TheQwerty wrote:can quickly turn into a mess when the match patterns start changing what appears between the separators.
???
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Stef123

Re: Context Menu > File List ... > ADD...

Post by Stef123 »

Maybe that's what happens here - changing match patterns?
All I can say is, I don't get to see separators. Only the eval() stuff, literally. :veryconfused:

Ed:
Getting closer. I removed the +sign up front, to make it look more like on TheQwerty's screenshot. Now I see one single hyphen "-" (without parentheses) and the blue SC tirangle icon.

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Context Menu > File List ... > ADD...

Post by TheQwerty »

SammaySarkar wrote:
TheQwerty wrote:can quickly turn into a mess when the match patterns start changing what appears between the separators.
???
Given the following PFA in Editor Mode (pencil icon/F6) format:

Code: Select all

+"Current Item is a TXT" txt>end true;//txt
+"Current Item is an RTF" rtf>end true;//rtf
+"Current Item is a PDF" pdf>end true;//pdf
+|"-" \;*>end true;//0
+txt>Notepad
+|"-" \;*>end true;//1
+txt;rtf>Wordpad
+|"-" \;*>end true;//2
+|"Copy file size in bytes" *>::copytext <cursize>
+|"-" \;*>end true;//3
+|"Append modified date" \;*>::rename , '*-<datem yyyymmdd>'
Results in the following open with menus based on the current item:
2015-04-20_cfasep_patterns.png
2015-04-20_cfasep_patterns.png (20.73 KiB) Viewed 3063 times
Notice the empty sections.

You have to think carefully about what's in a section and when you want the items and separators shown to determine what pattern should be used for matching those items and separators.

In some ways you're much better off writing your own CTB/script to handle this rather than try to overload POM with too much. (Or wait for Don to give POM full separator support which will likely collapse those empty sections and make the above demonstration moot.)

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Context Menu > File List ... > ADD...

Post by bdeshi »

Oh, that! I don't mind that. That just tells me there is a section here but none of them are applicable to current item.

I thought you said the pfa items themselves somehow can travel to different separated sections (alarming!) :)
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Context Menu > File List ... > ADD...

Post by bdeshi »

Stef123 wrote:Getting closer. I removed the +sign up front, to make it look more like on TheQwerty's screenshot. Now I see one single hyphen "-" (without parentheses) and the blue SC triangle icon.
A screenshot for a screenshot. Post a screenshot of the misbehaving separator item in PFA editor. (and perhaps the resulting mis-menu)

btw, the format I posted is supposed to be pasted into a new line in editor mode (F6) or remove the + and paste as a new entry in normal mode
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Stef123

Re: Context Menu > File List ... > ADD...

Post by Stef123 »

SammaySarkar wrote:the format I posted is supposed to be pasted into a new line in editor mode (F6) or remove the + and paste as a new entry in normal mode
:oops: :oops:
shot.jpg
shot.jpg (178.05 KiB) Viewed 3056 times
In case you wonder about the missing colons :: - I had them too, makes no difference, tried all variations from verbatim your solution and that of TheQwerty's screenshot, plus all kinds of variants - no separator.

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: Context Menu > File List ... > ADD...

Post by bdeshi »

No idea (yet).
Surely not the same in ::fresh ?


edit: "I get to see the "::eval();" instead of separators." - at least this issue is solved now, eh?
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply