Ventoy Forums
switching between tree mode and default mode - Printable Version

+- Ventoy Forums (https://forums.ventoy.net)
+-- Forum: Ventoy General Use —— Ventoy 使用交流 (https://forums.ventoy.net/forumdisplay.php?fid=1)
+--- Forum: Ventoy Discussion Forum (https://forums.ventoy.net/forumdisplay.php?fid=2)
+--- Thread: switching between tree mode and default mode (/showthread.php?tid=47)



switching between tree mode and default mode - FOW0RYL - 05-26-2020

Hello,
I have added the  Global Plugin code to the existing theme entry in the ventoy.json file.
Ventoy is startin in treemode as described. Works fine so far.
At the bottom line there is a permanent hint "F3: Treemode".
When pressing F3, the system switched to default mode. But the hint doesn't change.
When pressing F3 again nothing happens. When playing around, I found that I have to press alternating ESC and F3, to switch between modes. Confusing.

I would like to have a correct hint Smile


RE: switching between tree mode and default mode - longpanda - 05-26-2020

Hi,
When you define VTOY_DEFAULT_MENU_MODE="1"
Then the hint will become F3:ListView

ESC is used to return back to the default mode. That's noted in the document.


RE: switching between tree mode and default mode - FOW0RYL - 05-28-2020

Hi,
you are right. If "VTOY_DEFAULT_MENU_MODE" is set to "1" the hint is "F3:ListView". My fault.
I agree that everyone should read the documentation first. But ....

After changing the view mode by pressing F3 the hint doesn't change to ESC. It's still "F3:ListView" or "F3:TreeView", depending on the choosen "VTOY_DEFAULT_MENU_MODE".
If you don't remeber the docs, you may rember that you have pressed F3 a few seconds ago. You are looking at the hint, and find "F3:...". So you will press F3 intuitive. There is something flickering on the screen, but nothing happens. And you did not realize why.

I think it would be better to change the hint according to the actual environment like:
F3:ListView -> ESC:TreeView -> F3:ListView -> ESC:TreeView -> ...
The most intuitive solution would be, to let F3 work as a real toggle like the MemDisk switch. Of course with correct hint's
F3:ListView -> F3:TreeView -> F3:ListView -> F3:TreeView -> ...


RE: switching between tree mode and default mode - longpanda - 05-30-2020

Ventoy-1.0.12 released.

I add return item when you switch mode, so maybe much reasonable


RE: switching between tree mode and default mode - FOW0RYL - 06-15-2020

Tested the new function with 1.0.13 today.

Well done. Thank you very much.


RE: switching between tree mode and default mode - Joh76530 - 07-20-2020

(05-26-2020, 02:36 PM)longpanda Wrote: Hi,
When you define  VTOY_DEFAULT_MENU_MODE="1"
Then the hint will become    F3:ListView

ESC is used to return back to the default mode. That's noted in the document.
Hello,

I allow myself to write to you about the treeview addon.

I have paste the code to apply treeview but it has no effect.


A screenshot is attached.

Do you have a solution?


I use Ventoy 1.0.15

Thank you in advance for your response.

Regards,



RE: switching between tree mode and default mode - longpanda - 07-20-2020

You made a wrong json level in the file.
This is the correct format:
Code:
{
    "theme": {
        "file": "/ventoy/vimix/theme.txt",
        "gfxmode": "1920x1080",
        "ventoy_left": "5%",
        "ventoy_top": "95%",
        "ventoy_color": "#000000ff"
    },
   
    "control": [
        { "VTOY_DEFAULT_MENU_MODE": "1" },
        { "VTOY_DEFAULT_SEARCH_ROOT": "/ISOs" }
    ]
}



RE: switching between tree mode and default mode - Joh76530 - 07-20-2020

(07-20-2020, 03:13 PM)longpanda Wrote: You made a wrong json level in the file.
This is the correct format:
Code:
{
    "theme": {
        "file": "/ventoy/vimix/theme.txt",
        "gfxmode": "1920x1080",
        "ventoy_left": "5%",
        "ventoy_top": "95%",
        "ventoy_color": "#000000ff"
    },
   
    "control": [
        { "VTOY_DEFAULT_MENU_MODE": "1" },
        { "VTOY_DEFAULT_SEARCH_ROOT": "/ISOs" }
    ]
}
Thank you very much, indeed with the right code it works much better