Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
translations translations
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  New Feature: shortcuts that allow setting a value instead of the config screen
« previous next »
  • Print
Pages: [1]

Author Topic: New Feature: shortcuts that allow setting a value instead of the config screen  (Read 381 times)

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1196
New Feature: shortcuts that allow setting a value instead of the config screen
« on: January 25, 2025, 03:37:50 PM »
This adds a new menu option 'Add Current to Shortcuts' when selected it will record the current value of the setting in the shortcut

Later run Shortcuts and you will see '[your selected setting] ([recorded value])'
when selected the setting will be applied just as if you had selected the option in the configure screen

See the manual for your device for more info 'The Main Menu>Shortcuts'
Logged

Offline rockbox_dev123

  • Member
  • *
  • Posts: 170
Re: New Feature: shortcuts that allow setting a value instead of the config screen
« Reply #1 on: January 25, 2025, 08:49:07 PM »
Thanks for adding this.

It was how I expected shortcuts to work when I first started using them. This should make switching between brightness levels much easier/faster for me.
Logged

Offline Bilgus

  • Developer
  • Member
  • *
  • Posts: 1196
Re: New Feature: shortcuts that allow setting a value instead of the config screen
« Reply #2 on: January 25, 2025, 09:36:53 PM »
Both ways have their respective pros and cons
but if I had to choose one for sure the former is the better choice

small tidbit you can change between types and have the same syntax
setting: value

so by changing between 'shortcut' and 'apply'
you can easily change the behavior of existing menu items

currently your data shortcut reads
Code: [Select]
[shortcut]
type: setting
data: volume

and the apply shortcut
Code: [Select]
[shortcut]
type: apply
data: volume: 20

you can later convert the apply shortcut to a setting
Code: [Select]
[shortcut]
type: setting
data: volume: 20
next time the list is saved (new item or deleted item) it will erase the :value part
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 497
Re: New Feature: shortcuts that allow setting a value instead of the config screen
« Reply #3 on: January 25, 2025, 10:23:05 PM »
This is tremendous - thanks very much.

Now I no longer have to create multiple .cfg files containing single settings and put links to them in shortcuts.txt.

"type: apply" is beautiful.
Logged

Offline iPodVT

  • Member
  • *
  • Posts: 497
Re: New Feature: shortcuts that allow setting a value instead of the config screen
« Reply #4 on: January 25, 2025, 10:37:30 PM »
And the effect is instantaneous - much faster than using the .cfg file links.
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Feature Ideas
| | |-+  New Feature: shortcuts that allow setting a value instead of the config screen
 

  • SMF 2.0.19 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.112 seconds with 22 queries.