Giter Site home page Giter Site logo

dired-efap's Introduction

Overview

dired-efap.el allows the user to edit the filename at point, by hitting a key (like f2) or double-clicking it. The name is edited in the dired buffer, and the renaming takes effect when the user hits the RET key. Only the name of the file at point is tangible and editable, and it uses an special font.

This package provides a similar user interface to renaming files to the interface used by some graphical file managers (or "explorers", however they are called).

Installation

Add dired-efap.el to your load-path and this line to your config file:

(require 'dired-efap)
(define-key dired-mode-map [f2] 'dired-efap)
;;; Only if you want to control rename with the mouse...
(define-key dired-mode-map [down-mouse-1] 'dired-efap-click)

Usage

To edit a name you can hit f2 (or the mapping of your choosing) or double-click over it. Pressing RET the file is actually renamed. C-g aborts.

Customization

The behavior of the mouse can be customized. There are three options: double-click to edit, click once in the file where the cursor is (this includes double-click, because the first click moves the cursor) and disallow the use of the mouse to edit names. See and customize the variable `dired-efap-use-mouse' to change the default behavior.

You can customize also the face of the name being edited. This face is called dired-efap-face. Default face inherits from your default face, with a box around it.

See also variable dired-efap-initial-filename-selection, if you want to control what part of the filename will be initially selected.

Type M-x customize-group RET dired-efap if you want make changes to the default behavior.

Contributing

Ideas, bug reports, patches, etc. are most welcomed

dired-efap's People

Contributors

juan-leon avatar zw963 avatar

Watchers

 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.