Repository navigation
feat(appload): add folder support - #83
Open
debemdeboas wants to merge 2 commits into
Open
debemdeboas wants to merge 2 commits into
debemdeboas wants to merge 2 commits into
Conversation
Folders are now user-managed instead of coming from the manifest.
AppLoad keeps them in exthome/appload/folders.json as
{"<app id>": "<folder>"} (external apps: external::<dir>).
Long-pressing an app selects it and shows a toolbar: Launch windowed,
Move to folder, Create folder with. Long-pressing a folder offers
Rename and Remove folder. Names are typed with xochitl's keyboard.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I wrote a bundle of games for the Paper Pro and didn't want to bog down people's AppLoad homescreens. So I added folder support.
Tested only on the RMPP on firmware 3.28.0.172.
How it works
Folders now live in a
folders.jsonon AppLoad's root (exthome/appload/folders.json), as suggested. It's just a map of app ID to folder name, like{"chess": "Games"}. External apps useexternal::<dir>as their ID. The manifest"folder"tag is gone, so apps don't pick their folder anymore, the user does.Long-pressing an app now selects it and turns the header into a toolbar with "Launch windowed" (what long-press used to do), "Move to folder" and "Create folder with" (then tap the other app). Long-pressing a folder lets you rename or remove it. Removing a folder just puts its apps back on the home. Folder names are typed with xochitl's own keyboard.
Customization
folders.jsoncan also be edited by hand. Hit the reload button on AppLoad's header after saving and the folders update, no need to restart xochitl. An app's ID is theidin its manifest, orexternal::<dir>for external apps:{ "chess": "Games", "sudoku": "Games", "external::koreader": "Reading" }Apps that aren't listed just stay on the home.
Showcase
Click to expand