Code Monkey home page Code Monkey logo

vis-fzf-open's Introduction

This project has a new home. Development continues at https://git.sr.ht/~mcepl/vis-fzf-open.

Fuzzy find and open files in vis

Use fzf to open files in vis.

Usage

In vis:

  • :fzf: search all files in the current sub-tree.
  • You can pass arguments to fzf, e.g. : :fzf -p !.class

Configuration

In visrc.lua:

plugin_vis_open =require('plugins/vis-fzf-open/fzf-open')

-- Path to the fzf executable (default: "fzf")
plugin_vis_open.fzf_path = "fzf"

-- Arguments passed to fzf (defaul: "")
 plugin_vis_open.fzf_args = "-q '!.class '"

vis-fzf-open's People

Contributors

guillaumecherel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vis-fzf-open's Issues

:fzf inserts filename as text in current buffer instead of opening the selected file

When using the vis-fzf-open plugin the following would occur. After typing the command, :fzf and selecting a file, the name, or part of the name, of that file would be inserted into the buffer I currently had open. It appeared that after hitting after selecting the file, vis was returning to Normal mode instead staying in command mode and opening the selected.

I took a look code for the plugin and found that changing line 48 in init.lua from:

vis:feedkeys(string.format("%s '%s'<Enter>", action, output[2]))

to:
vis:feedkeys(string.format(": %s '%s'<Enter>", action, output[2]))
or:
vis:command(string.format("%s '%s'", action, output[2]))

resolved the issue.

I didn't put in a PR because it appears that this repo no longer hosts the most recent code and I don't have any experience using Sourcehut.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.