Thanks to visit codestin.com
Credit goes to github.com

Skip to content
/ fzfx Public
forked from danisztls/fzfx

fzfX delivers the power of finding, previewing, editing and managing any file in few key strokes.

License

Notifications You must be signed in to change notification settings

logix2/fzfx

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fzfX

fzfX multiplies the power of fzf by providing zero-configuration battle-tested applications to common use cases of fzf. It delivers the power of finding, previewing, editing and managing any file in few key strokes.

Features

  • default: find any file
  • hidden: include hidden files
  • full: fulltext, files containing string
  • md: markdown notes
  • pdf: pdf, ps and eps files
  • pic: pictures
  • av: audio and video
  • cd: change directory
  • ps: manage processes

It is agnostic and does not require a specific terminal emulator, desktop environment or text editor. It will make use of improved utils that are becoming standard at Linux desktop environments, like rg, fd, bat, rga, grc and many others. But it will sensibly fallback to their classic UNIX counterparts like grep, cat and ls when they are not available.

Find files anywhere

asciicast

$ fzfx

Find anything

asciicast

fzfx hidden

By default hidden files, cache/vendor directories like node_modules (see /usr/share/fzfx/ignore) are ignored and .gitignore files inside directories are followed.

Dynamically find a string inside files

asciicast

$ fzfx full

Note: Supports regular expressions.

Change directory

asciicast

$ fzfx cd

To change dir with ENTER create an alias:

alias fcd='cd "$(fzfx cd)"'

Note: Needed because a child shell can't act on its parent.

Manage processes

asciicast

$ fzfx ps

Find files with special cases

# markdown notes
$ fzfx md

# pdf, ps and eps
fzfx pdf

# pictures
fzfx pic

# audio and videos
fzfx av

Setup

Install through the AUR

Or install as user

$ ./setup install

Configure

Edit $XDG_CONFIG_HOME/fzfx/config

  • Set root="$HOME" to search all your files from anywhere.
  • Set editor to override the editor used by fzfx.
  • Set ignoreFile to override the default ignore file (.gitignore style).
  • Set defaultPreview, pdfView, avView, picView to whatever you prefer.

Note: All configurations are optional.

About

fzfX delivers the power of finding, previewing, editing and managing any file in few key strokes.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%