fao

Find And Open - find files with matching names and opens them in your editor

When you know what a file is called, but not where it is, use fao to Find And Open it. Opens with whatever you have configured in your $EDITOR environment variable.

Under the covers it’s using find so asterisk style wildcards are supported. To Find And Open, every Markdown file, for example, you could run fao '*.md'

Usage

USAGE: fao <file_name>
       fao = Find And Open
       starting in the current directory, this
       finds each file matching the specified name
       and then asks you if you want to open the
       discovered path.
       If yes, it passes it to $EDITOR

       You can use asterisks for wildcards.
       E.g. 'fao foo.rb' calls 'vim path/to/foo.rb'
       "fao '*.rb'" calls "vim path/to/every/*.rb"

Metadata:

Tags:

  • cli
  • search