Skip to content

Simple file browser plugin for Vis editor with fzf

License

Notifications You must be signed in to change notification settings

peaceant/vis-fzf-browser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Simple fuzzy file browser with the power of FZF

Use fzf to browse files in vis.

Did not spent much time writing this plugin. Use at your own risk.

fzf-browser

Usage

In vis:

  • :fzfbrowser: list all files in the current working directory.

Configuration

In visrc.lua:

plugin_vis_fzf_browser = require('plugins/vis-fzf-browser/fzf-browser')

-- Path to the fzf executable (default: 'echo "..\n$(ls -Ap)" | fzf')
plugin_vis_browser.fzf_browser_path = 'echo "..\n$(ls -p) | fzf'

-- Arguments passed to fzf (defaul: "")
plugin_vis_browser.fzf_browser_args = "--height 24%"

-- Mapping configuration example (<Space>e)
vis.events.subscribe(vis.events.INIT, function()
    vis:map(vis.modes.NORMAL, " e", ":fzfbrowser<Enter>")
end)

About

Simple file browser plugin for Vis editor with fzf

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages