Skip to content

Add inventory auto-stack and sort funcionality for exosuit, starship, freighter and chests#36

Merged
vectorcmdr merged 1 commit into
vectorcmdr:mainfrom
thiago-rcarvalho:feat/add-auto-stack-functionality
Apr 6, 2026
Merged

Add inventory auto-stack and sort funcionality for exosuit, starship, freighter and chests#36
vectorcmdr merged 1 commit into
vectorcmdr:mainfrom
thiago-rcarvalho:feat/add-auto-stack-functionality

Conversation

@thiago-rcarvalho
Copy link
Copy Markdown
Contributor

Pull Request

🧩 Summary

Add inventory auto-stack and sort funcionality for exosuit, starship, freighter and chests allowing the user to move items from exosuit -> starship/freighter/chests or from starship -> freighter/chests. This feature has being very useful for organizing my inventory.

✅ Checklist

  • I have read the Contributor Guidelines in CONTRIBUTING.md
  • My changes follow the project style and conventions
  • I have not introduced external packages or libraries
  • I have added localisation to UI strings
  • I added/updated tests (if applicable)
  • All existing and new tests pass
  • I have updated documentation as needed

🧪 Testing

Auto-stack:

  • There is a sort button on Exosuit, Starship, Freighter and Chest (0-9), clicking on it will move all matching items from the current inventory to the target inventory.
  • Exosuit and Starship Cargo have a context menu, where you can also auto-stack only the slot you right-clicked.
  • You can pin a slot from the context menu. Pinned slots are ignored by auto-stack.
  • If you use the single-slot auto-stack action on a pinned slot, the action is blocked.
  • If the destination stack becomes full, the extra items go to another free slot in the same destination when possible.
  • If there is no valid free slot, the remaining items stay in Exosuit Cargo.
  • Pinned slots are persisted locally-only via AppConfig.

Sort:

  • There is a sort button on Exosuit, Starship, Freighter and Chest (0-9), just click on it to sort the inventory.
  • Sort does not ignore pinned slots.

💬 Notes

The code was mostly generated by LLM and I revised/tested. Everything is working as expected, tested on my own savegame.

Some screenshots:
image

image
🚀 Recommended PR Flow
  1. Create a feature branch from main.
  2. Make small, focused commits.
  3. Update or add tests for your changes.
  4. Open PR and link related issues.

@thiago-rcarvalho thiago-rcarvalho force-pushed the feat/add-auto-stack-functionality branch from aa3553b to 2faa696 Compare April 6, 2026 21:35
@vectorcmdr
Copy link
Copy Markdown
Owner

This is a great addition to the editor, and a very neat and tidy PR. Thank you!
Looking forward to seeing it in the next build.

@vectorcmdr vectorcmdr merged commit 72852d3 into vectorcmdr:main Apr 6, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants