Skip to content
Projets

À propos

:bagel: fzf all the things!

Autres projets

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

everything.fzf

everything.fzf

What is this?

A personal collection of simple scripts that integrate everything with fzf.

They are mostly opinionated, unpolished, unextendable, inconsistent, and unconfigurable — just the way I like them. Only tested on my MacBook. Keep that in mind.

Hope you find some ideas useful.

How to use

Each script is self-contained and can be run directly and individually. You can add the repository to your $PATH,

[[ $PATH =~ everything.fzf ]] || PATH="/path/to/everything.fzf:$PATH"

or copy/symlink only the ones you like.

Prerequisites

The scripts are written in Bash and Ruby, so both are required.

Some scripts also depend on the following programs:

  • bat
  • chrome-cli
  • figlet
  • gh
  • mise
  • ripgrep
brew install bash ruby bat chrome-cli figlet gh mise ripgrep

Scripts

apps.fzf

  • Select macOS applications to open

chrome.fzf

  • chrome.fzf [t|h|b]
    • t for open tabs (default; requires chrome-cli)
      • You can press CTRL-W to close a tab
    • h for history
    • b for bookmarks

claude.fzf

  • Browse prompts from ~/.claude/history.jsonl
  • Show Claude session names next to session IDs when available
  • Press enter to resume the session or switch to the tmux pane running the session

codex.fzf

  • Browse prompts from Codex session transcripts in ~/.codex/sessions
  • Show Codex thread names next to session IDs when available
  • Press enter to resume the session or switch to the tmux pane running the session

docker.fzf

  • List running containers with memory usage
  • Preview container logs in the bottom pane
  • Press CTRL-S to stop a container, CTRL-T to show stats and top
  • Press CTRL-O to open full logs in your editor

figlet.fzf

  • Type in text, select a font, preview the result, and press enter to copy it to the clipboard.
  • Use / to separate the text from a search query (e.g. hello / banner to preview "hello" while filtering for fonts matching "banner"). If there is no /, the whole query is used as the text.

gist.fzf

  • Press enter on a gist to edit it in your editor
  • To access gists on GitHub Enterprise, set the GH_HOST environment variable
    alias giste.fzf='GH_HOST=git.evil.com gist.fzf'
    

jira.fzf

Usage: jira.fzf URL [JQL|PROJECT...]
    -u, --user={USER:PASSWORD,PAT}   User name and password (user:password) or PAT
    -q, --query=QUERY                Initial query
        --lines=NUM_LINES            Number of lines of description to show
        --limit=MAX_ITEMS            Maximum number of items to fetch
jira.fzf --limit 1000 --lines 10 https://issues.apache.org/jira \
    'creator = junegunn order by updated desc'

kube.fzf

usage: kube.fzf [p|d|j|cj|sc|sn]
  p   list all pods
  d   list all deployments
  j   list all jobs
  cj  list all cronjobs
  sc  switch to a different context
  sn  switch to a different namespace

maccy.fzf

  • You probably don't need this unless you really need to browse your clipboard history with more screen estate.
  • You can press CTRL-E to edit the selected item in your editor

make.fzf

  • Select Makefile targets to run

mise.fzf

  • First select a tool, then select a version of it to use it

pr.fzf

  • Browse and check out a GitHub pull request for the current repository
  • Press ALT-A to include closed and merged pull requests
  • Press CTRL-V to view the pull request in Vim
  • Press CTRL-O to open the pull request in your browser

pr-by.fzf

  • Search GitHub pull requests by a specific user across all repositories
  • Press CTRL-V to view the pull request in Vim
  • Press CTRL-O to open the pull request in your browser
# usage: pr-by.fzf [--limit=N] <author> [fzf-args]
pr-by.fzf junegunn

rg.fzf

  • Type / to split the input into two queries: the part before drives the ripgrep search, the part after filters the results with fzf
    • e.g. foobar / .js: searches for foobar with ripgrep, then narrows the matches to .js files with fzf
  • enter opens the selection in $EDITOR (defaults to vim); with multiple selections it builds a quickfix list
  • Press CTRL-O to open without exiting fzf
  • Press ALT-A/ALT-D to select/deselect all, CTRL-/ to toggle the preview

ssh.fzf

  • Select known hosts to open SSH connections to them in a tiled tmux split panes

wiki.fzf

  • Browse recently viewed and modified pages in Confluence wiki
    Usage: wiki.fzf URL
        -u, --user={USER:PASSWORD,PAT}   User name and password (user:password) or PAT
    

What else?

LICENSE

MIT

Explorer des projets similaires

Chargement…