Page 2 of 3

Re: What can Virtual Folders do?

Posted: 29 Jan 2023 18:14
by admin
For some double-clickable help pages:
vi:help "idh_paperfolders.htm";|help "idh_virtualfolders.htm";

Re: What can Virtual Folders do?

Posted: 05 Feb 2023 04:11
by GUIguy
No,

Code: Select all

vi:<clp>
just gives me an empty tab:
vi-clp empty.png
vi-clp empty.png (44.62 KiB) Viewed 790 times
What am I doing wrong?

Re: What can Virtual Folders do?

Posted: 05 Feb 2023 10:04
by admin
What is in the clipboard? Should be files or folders.

Re: What can Virtual Folders do?

Posted: 05 Feb 2023 20:09
by GUIguy
I rarely place complete files or folders on the clipboard. It’s usually snippets of text or images, so does that mean that they will not appear in this virtual folder?

After thinking about your response, I guess snippets of text or images are not in the file system, so therefore, they won’t appear in the virtual clipboard, is that correct?

If so, I apologize for the bandwidth I’ve occupied here.

Re: What can Virtual Folders do?

Posted: 05 Feb 2023 20:46
by admin
Allowed are files, folders, URLs, and one-line scripts.

Re: What can Virtual Folders do?

Posted: 05 Feb 2023 21:28
by GUIguy
What constitutes a one line script? Does it have to be a file?

I’m wondering if there is a way to make text copied to the clipboard into some kind of “thing“ that XY will treat as a one line script.

Re: What can Virtual Folders do?

Posted: 06 Feb 2023 11:32
by admin
Don't worry about it. It's not even an official feature at the moment.

Re: What can Virtual Folders do?

Posted: 15 Feb 2023 17:18
by admin
Question to all: Should Virtual Folders only show items that exist?

It would make a difference e.g. with vi:<get list_recentlyopenedfiles>, see viewtopic.php?t=25818

Re: What can Virtual Folders do?

Posted: 15 Feb 2023 17:21
by highend
It's a bit like zombies in the paperfolder...

They can make sense and they can not. Maybe give :vi an option to show them but by default turn them off?

Re: What can Virtual Folders do?

Posted: 15 Feb 2023 17:24
by admin
Yep, probably / sadly true. :) I'll think about a way.

Re: What can Virtual Folders do?

Posted: 15 Feb 2023 18:11
by Adequat
I use Virtual Folders (actually only one so far), for the following thing:

I have several scripts that are located in various folders, for good reasons. And I use a virtual folder to access them all from the same "folder". This is quite useful.

I know I will use this feature for other similar reasons. I just have to find the time to set them up. To be honest, I am not amazed by new XY features for quite some time, but this one is an exception :)

Re: What can Virtual Folders do?

Posted: 15 Feb 2023 18:27
by admin
Thanks for the feedback!

Scripts and URLs will always pass the test-for-existence (in case I add that test).

Re: What can Virtual Folders do?

Posted: 17 Feb 2023 11:38
by Garonne
highend wrote: 15 Feb 2023 17:21 It's a bit like zombies in the paperfolder...

They can make sense and they can not. Maybe give :vi an option to show them but by default turn them off?
This does make sense. The nature of virtual folders does kind of make you believe the files/folders displayed should be currently existing... Then again... if you use virtual folders with a stationary list you should be aware that not all files/folders are existing (anymore)...

You won't expect paper folders to only show existing files/folders, and "list_recentlyopenedfiles" could very well be seen as a paper folder (or at least something similar... they are both lists of files... past and current.)

Re: What can Virtual Folders do?

Posted: 17 Feb 2023 14:00
by admin
I'm currently experimenting with a syntax extension that allows to pack some switches into the VFO definition:
vi:[|space for switches|][the main definition]

For example, this could be a way to explicitly allow zombies in <get list_recentlyopenedfiles> (if we default to not allowing zombies):
vi:|z|<get list_recentlyopenedfiles>

Looks good?

Re: What can Virtual Folders do?

Posted: 17 Feb 2023 16:16
by Garonne
admin wrote: 17 Feb 2023 14:00 I'm currently experimenting with a syntax extension that allows to pack some switches into the VFO definition:
vi:[|space for switches|][the main definition]

For example, this could be a way to explicitly allow zombies in <get list_recentlyopenedfiles> (if we default to not allowing zombies):
vi:|z|<get list_recentlyopenedfiles>

Looks good?
Looks perfect to me... Easy to understand... Backwards compatible... Everything you might want. :D