Giter VIP home page Giter VIP logo

find-file-in-project's Introduction

find-file-in-project (v3.5)

Find files in a project quickly.

This program provides a couple methods for quickly finding any file in a given project. It depends on GNU find.

By default, it will automatically search file in project managed by Git. But you can easily switch to other types of projects.

Features:

  • The only dependency is GNU find
  • Works on *Windows*/Cygwin/Linux/Mac
  • Furthing tweaking of GNU find through flag `ffip-find-options` is possible

Install

Please install through melpa

Setup

It works out of the box for project using Git.

If your project uses other VCS (subversion, for example), add below line into ~/.emacs:

(setq ffip-project-file ".svn")

Usage

`M-x find-file-in-project`

Tips

Per project setup

;; if the full path of current file is under SUBPROJECT1 or SUBPROJECT2
;; OR if I'm reading my personal issue track document,
(when (ffip-current-full-filename-match-pattern-p "\\(/SUBPROJECT1\\|/SUBPROJECT2\\|issue-track.org\\)")
  ;; set the root directory into "~/projs/PROJECT_DIR"
  (setq-local ffip-project-root ("~/projs/PROJECT_DIR"))
  ;; well, I'm not interested in concatenated BIG js file
  (setq-local ffip-find-options "-not -size +64k")
  ;; for this project, I'm only interested certain types of files
  (setq-local ffip-patterns '("*.html" "*.js" "*.css" "*.java" "*.xml" "*.js")))

Specify root directory explicitly on BOTH Cygwin and Windows

(if (eq system-type 'windows-nt)
    (setq ffip-project-root "C:/Users/myname/projs/myproj1")
  (setq ffip-project-root "~/projs/myprojs1"))

Bug Report

Check https://github.com/technomancy/find-file-in-project

find-file-in-project's People

Contributors

jjrussell avatar kylpo avatar stuarthalloway avatar technomancy avatar vmihailenco avatar wfarr avatar

Watchers

 avatar  avatar  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.