Skip to content
Iury O. G. Figueiredo edited this page Dec 1, 2019 · 1 revision

Quickly open files in vy by using locate command.

Install

The plugin relies on locate command to work properly.

It is installed by default in most distros. Check if you have it:

locate

Then uncomment the code in your ~/.vy/vyrc file in the Extra plugins section.

# A wrap around unix locate command.
# from vyapp.plugins import fsniffer
# autoload(fsniffer)

Usage

The plugin implements two new keystrokes in Global mode, it means the keystrokes will work regardless of the current mode the AreaVi is in.

Suppose you have a file whose path is:

/etc/resolv.conf

For opening that file by using fsniffer plugin you would just press:

<Alt-y>

It will be shown an input area then try typing:

et solv 

It would list possible matches in a file picker window.

Just select your desired file then hit:

<Return>

You would have the file contents loaded in your current AreaVi instance.

Clone this wiki locally