This is a collection of scripts I've written that use fzf
Almost all of them require various tools from coreutils like awk
sed
cut
, and probably make use of GNU extensions.
an interactive wrapper around some docker commands
Lists or searches for files and opens them with a command, defaults to vim
. Kind of a shortcut for vim $(ag 'foo' | fzf)
, lists files if no search string is given.
Interactive git wrapper. Very much still a work in progress, but it has some very cool functions already.
depends on git
and perl
A small wrapper around buku to search bookmarks
Lists and searches for songs in an MPD library by artist, album, or playlist. I wrote a blog post about writing this script.
depends on mpc
Interactively move files. It was originally just an experiment to see what it would be like to make a file explorer with fzf.
runs stdin against programs like sed, awk, jq and shows the result in the preview window
A wrapper around ddgr to search the web using DuckDuckGo.
Accepts all ddgr
command line arguments. For example, to search Wikipedia for "hello world":
ddgsearch \!w hello world
depends on jq
and ddgr
Interactive grep/rg wrapper
Uploads files to ix.io and allows listing and editing of uploads.
depends on curl
Searches npmjs.com and installs packages with yarn
if available or npm
.
depends on npm and jq
Searches repos and installs multiple packages. Currently works with Debian, Ubuntu and Arch, and experimental support for Fedora and Void.
Lists and removes packages, optionally sorts by size.
depends on pacman
Lists files from remote servers and rsync
s them to the current directory
List and connect to wifi networks
depends on nmcli
Currently there's no installation script, but if you clone the repo you can easily symlink the scripts here with something like:
cd /path/to/repo/fzf-scripts
find -maxdepth 1 -executable -type f -exec ln -s -t $HOME/.local/bin $PWD/fzf-scripts/{} \;
Copyright (C) 2023 Ronald Joe Record ronaldrecord@gmail.com Copyright (C) 2016 Daniel F Gray DanielFGray@gmail.com
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.