Desktop / MNTM Settings: Directories and generic files support for Keybinds / Main Menu#331
Conversation
- Adds *RIGHT* button select in the file browser dialogs and changing the `Open File` action to `Open File/Directory` in `Settings > Desktop > Keybinds Setup`. This adds the ability to open to any directory in the Archive app, in addition to the default behavior of opening a file in it's default app.
- Normal files and directories are now able to be added to then main menu and are run in their appropriate apps. - e.g. .txt files shown in text viewer, .js files are run in the JS Runner app, and folders are navigated to by the Archive app. All similar to the desktop keybinds functionality. - Icons are also assigned appropriately based on the extensions, though more could probably be added to the `loader_menu_get_ext_icon` function. - Also replaced some of the long arduous is_dir checks and just used the `storage_dir_exists` function since its already there and does the same.
|
The adding of JS files and other stuff to the main menu seemed connected to the initial PR with the Screenshot of the files/folder with icons in the Main MenuAnother thing I was thinking about but haven't messed with is whether the word
Just a thought. |
very nice!
i think "Item" would work better as a single name for both apps and files. or alternatively, could use both app and file, changing the text of the buttons based on what is currently selected, but that is a bit over the top i think |
Oh yep, you're right. "Item" is generic enough for all of it 👍 |
apps may blindly reach into these structs so need to keep the basics in same structure for DialogsFileBrowserOptions this is even in public api and after compilation this would be incompatible with other firmwares even without reaching into private structs
|
Merged :) #369 |

What's new
Adds RIGHT button select in the file browser dialogs and changes the
Open Fileaction toOpen File/DirectoryinSettings > Desktop > Keybinds Setup. This adds the ability to open to any directory in the Archive app, in addition to the default behavior of opening a file in it's default app.For the reviewer