Add your description here
Project description
Flatgrep ⚡Alpha v0.1.3
Automated searches for boring CLI tools.
Tired of typing by hand flatpak run com.something.veryobnoxious?
Try Flatgrep for fuzzy search and grep what you want in just seconds.
- Quick test :
flatgrep run mpv
- Fast and easy install apps from Flathub:
flatgrep install firefox
What is Flatgrep?
Flatgrep is a smart, fuzzy-finding command-line wrapper for Flatpak that makes searching, installing, and managing your applications a breeze. It enhances the standard flatpak commands with an interactive fzf interface, ensuring you find and select the right application quickly, even with typos or partial names.
Why Flatgrep?
Tired of trying to guess the exact application ID for a Flatpak? The default flatpak search can be cumbersome. Flatgrep solves this by providing a powerful and intuitive search layer on top of Flatpak.
- Typo-proof Searching: Can't remember if it's
Discordordiscord? Just typediscand let the fuzzy finder show you the options. - Interactive Selection: No more manually copying and pasting long app IDs like
org.gimp.GIMP. Just search, select from the list, and let Flatgrep handle the rest. The selected ID is copied to your clipboard automatically. - Unified Workflow: Use one consistent and powerful search tool to find, install, run, and uninstall your Flatpak apps.
Features
- ✅ Smart Interactive Search: Uses
fzfto provide a fuzzy search interface for both locally installed apps and the entire Flathub repository. - 🧠 Intelligent Filtering:
- If there's one perfect match, it's selected automatically.
- If there are multiple matches, you can choose from an interactive list using
fzf. - If no initial match is found, it falls back to a fuzzy search over the entire list of apps.
- 📋 Clipboard Integration: The selected application ID is automatically copied to your clipboard for convenience.
- 🎨 Rich Terminal Output: Utilizes the
richlibrary for clean, modern, and colorful command-line feedback. - 🚀 Full Management Suite: Provides intuitive commands for
search,install,run, anduninstall.
Command Table
| Action | Linux Command |
|---|---|
| Search on Flathub | flatgrep search "app name" --flathub |
| List locally installed apps | flatgrep search "app name" |
| Install an app from Flathub | flatgrep install "app name" |
| Run an app | flatgrep run "app name" |
| Uninstall an app | flatgrep uninstall "app name" |
Building Instructions
Prerequisites
Before you begin, make sure you have the following installed on your system:
- Python 3.8+
- Flatpak
fzf(a command-line fuzzy finder)
You can install fzf using your system's package manager:
# Debian/Ubuntu
sudo apt install fzf
# Fedora
sudo dnf install fzf
# Arch Linux
sudo pacman -S fzf
Clone Git Repository
git clone git@github.com:rodhfr/flatgrep.git
cd flatgrep/src
Setup Python Virtual Environment
# Create python virtual environment (isolated dependencies)
python -m venv .venv
# Activate the virtual python shell
source .venv/bin/activate # also works for zsh
#source .venv/bin/activate.fish # uncomment this line for fish shell
# Install python library requeriments
pip install -r requirements.txt
Install
# installation is just a binary in $HOME/.local/bin
sh build_and_install.sh
Uninstall
# Or just remove the binary located in $HOME/.local/bin
sh uninstall.sh
Management
Released Features ✅
- Search installed Flatpak app IDs.
- Copy app IDs to the clipboard.
- Install Flatpaks via fuzzy search with
--flathubflag. - Rich-text console.
- Run Flatpaks with
runmode 'feature: 2025-09-15.v0.1.1' - Write building instructions and program description. 'feature: 2025-09-16.v0.1.3'
Planned 🛠️
- Write installation guide.
- Release in some package manager.
- Write documentation.
- Search mode also searches by app names not only app ids.
- Run mode update: Auto install app if not available.
- Proper sanitize search command.
Potential Features 🤔
- Other package managers like dnf/pacman/aur helpers.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file flatgrep-0.1.0.tar.gz.
File metadata
- Download URL: flatgrep-0.1.0.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
983b37b247f0b169401d40344f84f35a82783b3c7008ecf807009a987083a245
|
|
| MD5 |
c5d5775c89061b13f4f94c429e81c799
|
|
| BLAKE2b-256 |
323b68067b78fd0cad6ee11a14229a5b9b56d80239266b072ece4addeed025c3
|
File details
Details for the file flatgrep-0.1.0-py3-none-any.whl.
File metadata
- Download URL: flatgrep-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c19ec1ece272d2f5736cc7bb94e34c3358118b2e8d9709bb99a94401aa350102
|
|
| MD5 |
5359471b98a541f260bf0ede58da119a
|
|
| BLAKE2b-256 |
7a4947a538d8109754d9563a391dc2b0cba339f5a273e2a189cc12ef451f3c11
|