Giter VIP home page Giter VIP logo

emacs-fasd's Introduction

emacs-fasd

An Emacs extension to integrate Fasd:

Forked from https://github.com/emacsmirror/fasd, but support tramp path.

Fasd (pronounced similar to β€œfast”) is a command-line productivity booster. Fasd offers quick access to files and directories for POSIX shells. It is inspired by tools like autojump, z and v. Fasd keeps track of files and directories you have accessed, so that you can quickly reference them in the command line.

Prerequisites

Installation

quelpa

quelpa is at https://github.com/quelpa/quelpa

(quelpa '(fasd :repo "steckerhalter/emacs-fasd" :fetcher github))

Since the recipe is stored in melpa this also works:

(quelpa 'fasd)

Interactively: M-x quelpa fasd RET.

MELPA

You can install fasd.el using the packages on Melpa.

Make sure you have something like the following in your Emacs startup file (~/.emacs.d/init.el, or ~/.emacs):

(add-to-list 'package-archives
             '("melpa" . "http://melpa.milkbox.net/packages/"))

To make that take effect, either evaluate that elisp expression or restart Emacs.

Then use M-x package-list-packages, select fasd from the list by pressing i, then press x to execute the changes. At that point, the package will be installed.

El-Get

Example recipe for el-get:

(:name fasd
       :type github
       :url "https://github.com/steckerhalter/emacs-fasd"
       :depends (grizzl)
       :postinit (progn
                   (global-set-key (kbd "C-h C-/") 'fasd-find-file)
                   (global-fasd-mode 1)))

Usage

Add a shortcut key for fasd-find-file and enable the global-fasd-mode which makes sure that opening files or directories in Emacs updates the fasd database.

(global-set-key (kbd "C-h C-/") 'fasd-find-file)
(global-fasd-mode 1)

Calling fasd-find-file with a prefix argument of

  • C-u lists only directories
  • M-- lists only files

With no prefix it shows files and directories.

Options

Use the customize interface:

M-x customize-group RET fasd RET

Initial Prompt

Usually fasd will prompt for a initial query. To turn that off and get all results directly, set fasd-enable-initial-prompt to nil.

Completion Function

By default the standard completing-read-function will be used, which could be using helm or ido depending on what you are using. To use e.g. ido explicitly set it to ido-completing-read. Previously the default was grizzl-completing-read but the dependency on grizzl has been removed. If you still want to use grizzl, you need to install the package and set the completing-read-function accordingly.

Standard search

By default the fasd search parameter is -a which searches files and directories, you can customize this with the fasd-standard-search option.

emacs-fasd's People

Contributors

steckerhalter avatar dalanicolai avatar gfgkmn avatar francescelies avatar

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.