Skip to content

elrs.lua: Improvement to Folders/Sub-Folders - #3474

Merged
mha1 merged 5 commits into
ExpressLRS:masterfrom
frankiearzu:elrs_subfolder
Apr 2, 2026
Merged

mha1 merged 5 commits into
ExpressLRS:masterfrom
frankiearzu:elrs_subfolder

Conversation

@frankiearzu

@frankiearzu frankiearzu commented Jan 2, 2026 •

Copy link
Copy Markdown
Contributor

Fixes: #3464

  1. Show the Folder name in the title when navigating to it
  • In Color, it shows the folder name in the middle title area
  • For B&W, due to space, will show the DeviceName when it is at the top level, or the folder name when it is inside a folder.
  1. Allow to show nested sub-folders and properly navigate them
  • The original implementation only allows 1 level of sub-folders, which can limit organizing the information.
  • Now the LUA can support unlimited nesting levels of folders.

Pretty efficient in memory, it only stores one global variable for the current folder name, and for navigation, stores one extra variable in the entry that keeps track of the "---BACK---" entry to keep track of the "grandParent".

image image

1. Show the Sub-Folder name in the title when navigating to it
2. Allow to show nested sub-folders
@frankiearzu

frankiearzu commented Jan 2, 2026 •

Copy link
Copy Markdown
Contributor Author

Nested Test:
NOTE: The extra "---BACK---" is becuase the script add the BACK automatically, so they should not be in the mock.. but was already there.

image image image image

Comment thread src/lua/elrs.lua Resolved
Comment thread src/lua/elrs.lua Resolved
Comment thread src/lua/elrs.lua Resolved
Comment thread src/lua/elrs.lua Resolved
@CapnBry CapnBry added V4.1 🍑 enhancement 🪄 New feature or request labels Feb 19, 2026
@frankiearzu

Copy link
Copy Markdown
Contributor Author

@CapnBry: Changes done as requested.

Just to give you an idea of what i'm doing, you can see the video:
https://youtu.be/Wk4s1B-1F_4

Have been modifying the alex's gyro code to make it significantly easier to setup/use. Merged gyro code ideas from UNI-RX, openXsensor gyro functionality into the code.

@frankiearzu
frankiearzu requested a review from CapnBry March 4, 2026 04:55
Comment thread src/lua/elrs.lua Outdated

local function fieldBackExec(field)
if field.grandParent then
if field.grandParent then -- Back from Sub-menu

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fix the spacing just before the then

@pkendall64 pkendall64 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only the minor nit

@jurgelenas

Copy link
Copy Markdown
Member

@frankiearzu please cherry pick your commits and submit an additional PR to https://github.com/ExpressLRS/Lua-Scripts as well.

@jurgelenas

Copy link
Copy Markdown
Member

Did some additional testing on my end. Looks good.

image image image image image

@jurgelenas

Copy link
Copy Markdown
Member

@frankiearzu you might be also interested in the new ExpressLRS lua scripts that I am developing: https://github.com/ExpressLRS/Lua-Scripts/tree/unified-lua-lsp

It requires EdgeTX nightly though.

@CapnBry CapnBry left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks for the changes. Tested on Boxer and TX16S.

@mha1
mha1 merged commit 2e0900f into ExpressLRS:master Apr 2, 2026
26 checks passed
mha1 pushed a commit to mha1/ExpressLRS that referenced this pull request Apr 3, 2026
* Manage multi-level sub-folders

1. Show the Sub-Folder name in the title when navigating to it
2. Allow to show nested sub-folders

* Updates to elrs requested by CapnBry

* Fix minor nit

---------

Co-authored-by: Paul Kendall <[email protected]>
@frankiearzu
frankiearzu deleted the elrs_subfolder branch November 25, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement 🪄 New feature or request V4.1 🍑

Projects

None yet

Development

Successfully merging this pull request may close these issues.

elrs.lua sub-folder improvements

5 participants