Giter Site home page Giter Site logo

fzf-switch-project's Introduction

fzf-switch-project

This plugin provides an easy way of switching between project directories indexed from a specified workspace folder or folders. I originally stole from kieran-bamforth 's dotfiles.

Install

Install via Plug:

Plug 'benwainwright/fzf-switch-project'

Configure

let g:fzfSwitchProjectWorkspaces = [ '~/workspace1', '~/workspace2' ]

automatically list projects in the above folders

let g:fzfSwitchProjectProjects = [ '~/folder1', '~/folder2' ]

add individual folders to the project list (I use it for my dotfiles folder)

let g:fzfSwitchProjectsGitInitBehaviour = 'ask' " default

fzf-switch-project can automatically initialise a git repository for you if you switch to a project folder without one. The possible values are:

  • ask (default) prompt the user to confirm if a new git repository should be initialised
  • auto always initialise a new git repository if one isn't found
  • none do nothing

Usage

Running FzfSwitchProjects in command mode will produce a list of folders from within your workspace folders that contain a .git folder at their root (I may make this filtering optional in the future). When you select a project, the working directory is changed and the GitFiles command from fzf.vim is initiated to allow you to switch to a file within the project.

Dependencies

requires fzf.vim and the fzf command line tool

fzf-switch-project's People

Watchers

 avatar

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.