Skip to content
suewonjp edited this page Jun 13, 2017 · 3 revisions

lff - Filter results returned by lf or lfi

✔️ General Usages

Motivation of lff is same as lfs.

Unlike lfs that lets you select a particular path with index, lff will let you do that by filtering with BASIC REGULAR EXPRESSION

  1. lff
    • Will list all the paths returned by previous call of lf or lfi
  2. lff [pattern]
    • Will select one or more paths matching [pattern] from the paths found by previous call of lf or lfi
    • [pattern] is BASIC REGULAR EXPRESSION used by grep command
  3. lff [pattern] +
    • Same as lff [pattern] except that the obtained paths will be copied to the system clipboard
    • Refer to lfs command for more details
  4. lff --help
    • Will show help message

✔️ Examples

$ lf --

files/empty.txt
files/folder 0/empty.txt
files/folder 0/folder 2/empty.txt
files/folder 0/foo.txt
files/folder 1/bar.txt

$ lff

files/empty.txt
files/folder 0/empty.txt
files/folder 0/folder 2/empty.txt
files/folder 0/foo.txt
files/folder 1/bar.txt

$ lff empty

files/empty.txt
files/folder 0/empty.txt
files/folder 0/folder 2/empty.txt

$ lff bar +

files/folder 1/bar.txt ## Now this path has been copied to the system clipboard...

[ NOTE ] This command shares basic functionalities with lfs; Refer to that command for information not described here