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.
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
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
Interactive 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) 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/.
fzf 是一个通用的命令行模糊查找器,它是一个用于命令行的交互式 Unix 过滤器,可以用于定位多种资源,包括文件、命令历史、进程、主机名、书签与 git commit 等。 特性包括: 便携无依赖性 非常快 最全面的功能集 布局灵活 可组合 Vim/Neovim 插件,提供键绑定和模糊自动完成
Kubectl-fzf kubectl-fzf provides a fast and powerful fzf autocompletion for kubectl. Table of Contents Kubectl-fzf Table of Contents Features Requirements Installation Cache builder Local installation
kube-fzf Shell commands using kubectl and fzf for command-line fuzzy searching of Kubernetes Pods. It helps to interactively: search for a Pod tail a container of a Pod exec in to a container of a Pod
fzf-tab-completion Tab completion using fzf in zsh, bash, GNU readline apps (e.g. python, php -a etc.) This is distinct fromfzf's own implementation for completion,in that it works with the existing c
我刚刚创建了一个ASP.NET MVC 4项目,并使用Visual Studio 2012 RC为和操作创建了一个控制器和Razor视图。 当我运行应用程序并浏览到视图时,显示以下错误: 编译器错误消息:CS0103:名称“Scripts”在当前上下文中不存在 问题是以下代码自动添加到视图底部: 为什么脚本不存在? 我查看了Assembly System.Web.mvc.dll,V4.0.0.0中
如果我们现在打开 Suppliers 页面,我们可以看到 tenant2 只能查看属于自己的供应商。但是在网格列表的右上角的 country 下拉列表中,所有的国家选项都被列出来了。 这个数据是通过动态脚本提供给脚本端。它不会在我们最近处理的 服务列表 中加载该数据。 提供给该下拉列表的检索脚本在 SupplierCountryLookup.cs 中定义: namespace MultiTenan