You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

99 lines
3.2 KiB

7 years ago
# fzf-scripts
This is a collection of scripts I've written that use [fzf](https://github.com/junegunn/fzf)
6 years ago
Almost all of them require various tools from coreutils like `awk` `sed` `cut`, and probably make use of GNU extensions.
7 years ago
## [fv](fv)
7 years ago
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.
## [fzgit](fzgit)
7 years ago
Interactive git wrapper. Very much still a work in progress, but it has some very cool functions already.
7 years ago
6 years ago
*depends on `git` and `perl`*
7 years ago
4 years ago
## [fzbuku](fzbuku)
A small wrapper around [buku](https://github.com/jarun/Buku) to search bookmarks
## [fzmp](fzmp)
7 years ago
5 years ago
Lists and searches for songs in an MPD library by artist, album, or playlist. I wrote a [blog post](https://danielfgray.gitlab.io/computers/fzmp) about writing this script.
7 years ago
*depends on `mpc`*
## [fzmv](fzmv)
7 years ago
7 years ago
Interactively move files. It was originally just an experiment to see what it would be like to make a file explorer with fzf.
7 years ago
3 years ago
## [fzrepl](fzrepl)
3 years ago
runs stdin against programs like sed, awk, jq and shows the result in the preview window
## [goog](goog)
7 years ago
Google search from the command line. This is now broken since google deprecated the API I used and I have yet to update to the newer version..
*depends on `jq` and `curl`*
3 years ago
## [igr](igr)
3 years ago
Interactive rg wrapper
## [ix](ix)
7 years ago
6 years ago
Uploads files to [ix.io](http://ix.io) and allows listing and editing of uploads.
7 years ago
*depends on `curl`*
2 years ago
## [js](js)
6 years ago
Searches [npmjs.com](https://npmjs.com) and installs packages with `yarn` if available or `npm`.
*depends on npm and [jq](https://stedolan.github.io/jq/)*
## [pkgsearch](pkgsearch)
7 years ago
6 years ago
Searches repos and installs multiple packages. Currently works with Debian, Ubuntu and Arch, and experimental support for Fedora and Void.
## [pkgrm](pkgrm)
Lists and removes packages, optionally sorts by size.
*depends on `pacman`*
7 years ago
## [sshget](sshget)
7 years ago
Lists files from remote servers and `rsync`s them to the current directory
## [wifi](wifi)
7 years ago
List and connect to wifi networks
*depends on `nmcli`*
# Install
Currently there's no installation script, but if you clone the repo you can easily symlink the scripts here with something like:
6 years ago
``` sh
cd /path/to/repo/fzf-scripts
3 years ago
find -maxdepth 1 -executable -type f -exec ln -s -t $HOME/.local/bin $PWD/fzf-scripts/{} \;
6 years ago
```
3 years ago
# Notable Mentions
* [forgit](https://github.com/wfxr/forgit) - a better version of fzgit
3 years ago
* [fzf-tab](https://github.com/Aloxaf/fzf-tab) - use fzf to tab-complete everything in your shell
3 years ago
# Legal
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/>.