Skip to content

[rbrowser] provide several rootrc parameters#19805

Merged
linev merged 4 commits intoroot-project:masterfrom
linev:rbrowser_settings
Sep 3, 2025
Merged

[rbrowser] provide several rootrc parameters#19805
linev merged 4 commits intoroot-project:masterfrom
linev:rbrowser_settings

Conversation

@linev
Copy link
Member

@linev linev commented Sep 2, 2025

Now RBrowser can be customized with following parameters:

  • WebGui.Browser.SortBy: sort by "name", "size", "none" (default "name")
  • WebGui.Browser.Reverse: reverse item order (default off)
  • WebGui.Browser.ShowHidden: show hidden files (default off)
  • WebGui.Browser.LastCycle: show only last key cycle (default off)
  • WebGui.Browser.Expand: expand browsable area (default off)

lastcycle field removed from BrowserRequest and used as global attributes which can be set via
ROOT::Browsable::RElement::SetLastKeyCycle(flag) method. This avoids misuse of gEnv for such properties.

Also fix file size sorting order - by default large files shown first

Address request on the forum and resolves #10264

* WebGui.Browser.SortBy:  sort by "name", "size", "none" (default "name")
* WebGui.Browser.Reverse: reverse items order (default off)
* WebGui.Browser.ShowHidden: show hidden files (default off)
* WebGui.Browser.Expand: open browser with expand browsable area (default off)
Any changes in settings store not in gEnv, but in RElement class.
Now it is global settings, which changed only when really clicked on the gui side. Or when WebGui.Browser.LastCycle
rootrc parameter configured - which is analyzed only once when browser started
@github-actions
Copy link

github-actions bot commented Sep 2, 2025

Test Results

    19 files      19 suites   3d 18h 45m 37s ⏱️
 3 656 tests  3 654 ✅ 0 💤 2 ❌
67 854 runs  67 847 ✅ 5 💤 2 ❌

For more details on these failures, see this check.

Results for commit 801319b.

@linev linev merged commit 059c76e into root-project:master Sep 3, 2025
24 of 29 checks passed
@linev linev deleted the rbrowser_settings branch September 3, 2025 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ability to RBrowser to use file order

2 participants

Comments