Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
switching between tree mode and default mode
#1
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
Reply
#2
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.
Reply
#3
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 -> ...
Reply
#4
Ventoy-1.0.12 released.

I add return item when you switch mode, so maybe much reasonable
Reply
#5
Tested the new function with 1.0.13 today.

Well done. Thank you very much.
Reply
#6
(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,


Attached Files Thumbnail(s)
   
Ventoy 1.0.15 on SSD
Reply
#7
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" }
    ]
}
Reply
#8
(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
Ventoy 1.0.15 on SSD
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)