DUB question and suggestion

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
rlh
Posts: 19
Joined: 08 Mar 2010 09:58

DUB question and suggestion

Post by rlh »

I really like the DUB!

Question: In the HELP manual where it is extolling the benefits of DUBs, there is the phrase
Right-mouse dropping is supported, offering the full power of the drag-n-drop context menu..
Maybe I call it something else, but I don't recognize this type of operation.

Suggestion: Allow the user to add a list of appropriate target filenames to the right-click context menu of a DUB that has an exe in the name field. Then, for example, if I have a DUB with Foxit Reader.exe in the name field, I would have all my .pdf viewing available through one button;

1. Left-click --> invoke reader (no file)
2. Drag-drop --> display file in reader
3. Right-click --> select a (favourite) pdf file to display

The Click/Edit/Customize_Toolbar options could still be at the bottom of the context menu.

Roger

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

Re: DUB question and suggestion

Post by admin »

1. Ensure you checked Configuration | Extended | Custom drag and drop context menu

2. This is already possible using scripting. The On right-click field allows you to add any number and type of statements that will then popup in the button's context menu.

(I still like your idea, maybe I add something simpler than scripting later to achieve this.)

rlh
Posts: 19
Joined: 08 Mar 2010 09:58

Re: DUB question and suggestion

Post by rlh »

Excellent! I hadn't realized that was possible. For now, Ive just added a bunch of entries like

Code: Select all

open "C:\pdfs\xxx.pdf"
It works fine, but it does look a bit clunky :(
I don't see an immediate scripting solution that would present just a list of the filenames, without the 'open' and the path. But then, I know nothing about XY scripting, either :)

Thanks, Roger

Stefan
Posts: 1360
Joined: 18 Nov 2008 21:47
Location: Europe

Re: DUB question and suggestion

Post by Stefan »

rlh wrote:Excellent! I hadn't realized that was possible. For now, Ive just added a bunch of entries like

Code: Select all

open "C:\pdfs\xxx.pdf"
It works fine, but it does look a bit clunky :(
I don't see an immediate scripting solution that would present just a list of the filenames, without the 'open' and the path. But then, I know nothing about XY scripting, either :)

Thanks, Roger
You need an "Caption" in quotes right before your script lines .

See XYplorer help > Scripting > Script Files


In the CTB/BUB dialog note the [Edit...] button to create "multi line" scripts.


For your case use something like:

Code: Select all

"Open PDF1"
  open "C:\pdfs\xxx 1.pdf";
"Collection PDF"
  open "C:\pdfs\xxx 2.pdf";
"My ToDos.PDF"
  open "C:\pdfs\xxx 3.pdf";
(Note the indention!!!)


or in your case even more simpler:

Code: Select all

"Open PDF1"  open "C:\pdfs\xxx 1.pdf";
"Open PDF2" open "C:\pdfs\xxx 2.pdf";
"Open PDF3"    open "C:\pdfs\xxx 3.pdf";

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

Re: DUB question and suggestion

Post by admin »

admin wrote:(I still like your idea, maybe I add something simpler than scripting later to achieve this.)
Yes, I liked it so much that the next version will have a very easy way to add "openwith lists" to a DUB. :D

rlh
Posts: 19
Joined: 08 Mar 2010 09:58

Re: DUB question and suggestion

Post by rlh »

@stefan
For your case use something like:
Code:
"Open PDF1"
open "C:\pdfs\xxx 1.pdf";
"Collection PDF"
open "C:\pdfs\xxx 2.pdf";
"My ToDos.PDF"
open "C:\pdfs\xxx 3.pdf";
(Note the indention!!!)
I had seen that in the Scripting section of Help, and tried it. But it didn't seem to do anything useful. I hadn't recognized the importance of the indentation! Undoubtably something to do with my all-too-frequent inability to see something when it's right before my eyes :oops: I'll try it when I get home tonight.

Thank you very much, Stefan. EDIT Just tried it, works great!

@admin
Magic!! I look forward to it!

XY obviously has huge flexibility, but DUBs have been the turning point for me, and I'll be placing a license order tonight.
Both the Mini Tree and the Catalog(ue!) seem like they should do for me, exactly what they are designed to do i.e. minimize scrolling up and down a huge tree with open branches. And that is exactly what I want, it's just that I can't quite get comfortable with them yet. I do like that the Mini Tree is a plain text file! One trivial suggestion - put the 'remove item' command in the context menu.
Another slightly more radical idea for the Mini Tree would be the ability to reverse its text-file function i.e. allow the user to add additional branches/leaves etc to the file, and if they don't already exist, have XY create them. i.e. the user can lay out their desired folder structure in a text file and have it created, instead of repetitive mouse-clicks/typing. Hmmm, I would have thought this was already possible in Windows...
BTW, I also like how XY can duplicate a folder structure, and copy a pathname to the clipboard, and.. and...

Roger
Last edited by rlh on 25 Oct 2011 13:33, edited 1 time in total.

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

Re: DUB question and suggestion

Post by admin »

rlh wrote:XY obviously has huge flexibility, but DUBs have been the turning point for me, and I'll be placing a license order tonight.
Both the Mini Tree and the Catalog(ue!) seem like they should do for me, exactly what they are designed to do i.e. minimize scrolling up and down a huge tree with open branches. And that is exactly what I want, it's just that I can't quite get comfortable with them yet. I do like that the Mini Tree is a plain text file! One trivial suggestion - put the 'remove item' command in the context menu.
Another slightly more radical idea for the Mini Tree would be the ability to reverse its text-file function i.e. allow the user to add additional branches/leaves etc to the file, and if they don't already exist, have XY create them. i.e. the user can lay out their desired folder structure in a text file and have it created, instead of repetitive mouse-clicks/typing. Hmmm, I would have thought this was already possible in Windows...
BTW, I also like how XY can duplicate a folder structure, and copy a pathname to the clipboard, and.. and...
1. license order tonight: Great, thanks!

2. 'remove item' command in the context menu: possible already. Configuration | Extended | Custom items in shell context menu | Folder Tree | Hide Folder from Mini Tree. BTW, would "Remove Folder from Mini Tree" be the better caption?

3. allow the user to add additional branches/leaves etc to the file: possible already. Menu Tools | List Management | Mini Tree. There is also the loadtree scripting command by which you can load any mini tree of your design.

rlh
Posts: 19
Joined: 08 Mar 2010 09:58

Re: DUB question and suggestion

Post by rlh »

1. license order tonight: Great, thanks!
Done! License received, thank you.
2. 'remove item' command in the context menu: possible already. Configuration | Extended | Custom items in shell context menu | Folder Tree | Hide Folder from Mini Tree. BTW, would "Remove Folder from Mini Tree" be the better caption?
Oh, right... Jeez, you've got a bunch of options. 'Hide' folder, 'Remove' folder, I don't think it matters too much, but 'Hide' is probably better.
3. allow the user to add additional branches/leaves etc to the file: possible already. Menu Tools | List Management | Mini Tree. There is also the loadtree scripting command by which you can load any mini tree of your design.
The tools option seems not to accept a path which doesn't exist. If I select 'New' and type in a path containing a non-existent folder name, and then OK, that path appears to be simply discarded. My suggestion was to allow the user to type in a tree *that they want to create on the system* If some (or all) of the folders in that tree description don't actually exist, then XY would create them for you. I see this as a quick way of setting up a new project, for example. Not a high-use option, granted, but I think it would be 'nice to have'.

Thanks for everything,
Roger

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

Re: DUB question and suggestion

Post by admin »

rlh wrote:
3. allow the user to add additional branches/leaves etc to the file: possible already. Menu Tools | List Management | Mini Tree. There is also the loadtree scripting command by which you can load any mini tree of your design.
The tools option seems not to accept a path which doesn't exist. If I select 'New' and type in a path containing a non-existent folder name, and then OK, that path appears to be simply discarded. My suggestion was to allow the user to type in a tree *that they want to create on the system* If some (or all) of the folders in that tree description don't actually exist, then XY would create them for you. I see this as a quick way of setting up a new project, for example. Not a high-use option, granted, but I think it would be 'nice to have'.
Ah, ok. You can do that using menu Edit | New | New Folders...

rlh
Posts: 19
Joined: 08 Mar 2010 09:58

Re: DUB question and suggestion

Post by rlh »

Ah, ok. You can do that using menu Edit | New | New Folders...
OK, ok, I surrender. But I *will* think of something you don't already have... someday :)

Post Reply