feat(uninstall): Upgrade to fzf for improved performance and UX - #10
Merged
therealtinhtute merged 1 commit intoNov 20, 2025
Merged
therealtinhtute merged 1 commit into
therealtinhtute merged 1 commit into
Conversation
Replace simple numbered menu with fzf fuzzy finder for dramatically improved package selection experience. ## New Features **fzf Integration:** - Fuzzy search across all installed packages - Multi-select with Tab key (select multiple packages at once) - Live preview pane showing package details (type, name, version, size) - Color-coded by package manager (APT=Blue, Snap=Magenta, Flatpak=Green, AppImage=Yellow) - Auto-installs fzf if not present (via apt or GitHub) **Enhanced UI:** - Rounded border with styled header - Real-time search as you type - Preview pane (40% width) with package metadata - Visual markers for selected packages (✓) - Pointer indicator (▶) for current selection **Improved Keyboard Navigation:** - ↑↓ or j/k: Navigate list - Tab: Toggle current selection - Shift+Tab: Toggle + move up - Ctrl+A: Select all packages - Ctrl+D: Deselect all packages - Enter: Confirm selection and proceed - Esc: Cancel operation **Performance Benefits:** - Instant filtering with fuzzy matching - No scrolling through hundreds of numbered items - Can handle large package lists efficiently - Type-ahead search finds packages instantly ## Implementation Details **format_package_entry():** - Formats each package with aligned columns - Color codes by package type - Shows: [TYPE] name version size **ensure_fzf():** - Checks if fzf is installed - Auto-installs via apt-get if available - Falls back to GitHub release if needed - Adds to PATH automatically **show_app_selector():** - Prepares formatted display for fzf - Configures fzf with custom theme and bindings - Parses selections and returns raw package data - Confirms before proceeding with uninstallation ## Updated Help & Banner - Help message now documents fzf features - Lists all keyboard shortcuts - Banner indicates "(fzf)" integration - Installation section mentions auto-install ## Backwards Compatibility - Falls back gracefully if fzf installation fails - All existing package scanning logic unchanged - Same uninstall flow after selection - System-critical and data-protected package checks intact ## Example Usage ```bash $ fub uninstall # Opens fzf interface: # - Type "chrome" to filter to Chrome packages # - Press Tab to select Google Chrome # - Press Tab again to select Chromium # - Press Enter to confirm # - Confirm with 'y' to proceed ``` This upgrade makes uninstalling packages much faster and more intuitive, especially on systems with many installed packages.
therealtinhtute
deleted the
claude/review-ubuntu-port-files-01RTbeZNrbum4yKMj42mNCWA
branch
November 20, 2025 14:52
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.
No description provided.