-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add brand new UI for restore functionality (Bubble Tea integration) #44
Merged
Conversation
This file contains 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
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
kind/feature
A feature request; new or enhanced behavior
release/minor
Indicates minor version to bump up next when creating release PR.
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.
What
This pull request introduces a big update to the restore functionality of the
gomi
CLI tool. Specifically, it replaces the previous UI interface used for file restoration with a new one built using the Bubble Tea framework, a modern Go-based framework for building terminal applications with rich UIs.The key changes include:
promptui
based interface with the more flexible and feature-richBubble Tea
framework for restoring deleted files.The basic functionality of the tool (moving files to the trash instead of deleting them) remains unchanged. This update only impacts the UI/UX during file restoration.
Why
The reason for this update is to provide a more intuitive and user-friendly experience when restoring files in the command line. The original UI based on
promptui
was functional but limited in terms of interactivity and visual appeal. By switching to Bubble Tea, we are:This change does not alter any core functionality of the tool, such as the way files are moved to the trash or restored. It only changes the user interface for these actions, making the experience more visually appealing and easier to use.
Additional Information
rm
command flags and behaviors.Demos
We believe this update will greatly improve the user experience of the tool, especially for users who frequently rely on the restore functionality.