Code Monkey home page Code Monkey logo

dired-delight's Introduction

dired-delight: Colorful, persistent tags for files

Dired Delight lets you tag files in Dired, Emacs’ file manager, with colors.

https://github-production-user-asset-6210df.s3.amazonaws.com/8607532/248907131-b1a91441-580c-439a-841b-328c45eea170.png

This affords a visual way – besides the filesystem tree – to group files, or persistently mark files needing action, find a specific file at a glance, etc… I think? (Honestly I’m not sure.)

Features

  • There are two supported styles for marking:

https://github-production-user-asset-6210df.s3.amazonaws.com/8607532/248907455-e871a653-efe2-484d-82bc-95cddebdf437.png

A block next to the file name (left), or highlighting (right). Both styles work with and without dired-hide-details-mode.

  • Select colors with preview for marking:

https://github-production-user-asset-6210df.s3.amazonaws.com/8607532/248907735-1ba63f8f-6cc5-40e1-8f29-51665fc80843.png

Installation

Manual

Clone this repo or download its files and run M-x package-install-file on the directory.

Straight

(use-package dired-delight
  :straight (:host github :repo "karthink/dired-delight")
  :hook (dired-mode . dired-delight-mode)
  :bind (:map dired-mode-map
         ("@" . dired-delight)
         ("*c" . dired-delight-mark-color)))

Quelpa

(package-install 'quelpa-use-package)
(require 'quelpa-use-package)

(use-package dired-delight
  :quelpa (dired-delight :fetcher github :repo "karthink/dired-delight")
  :hook (dired-mode . dired-delight-mode)
  :bind (:map dired-mode-map
         ("@" . dired-delight)
         ("*c" . dired-delight-mark-color)))

Usage

  1. Turn on dired-delight-mode in a Dired buffer.
  2. Mark files (or not for a single file) and call dired-delight to tag marked files. To remove a tag don’t supply any color, i.e. leave it blank.
  3. Call dired-delight-mark-color to mark all files that have a given color. You can then narrow the buffer to these files, or act on them in any of the usual ways.

The following keybindings may help:

(define-key dired-mode-map (kbd "@") 'dired-delight)
(define-key dired-mode-map (kbd "*c") 'dired-delight-mark-color)

Customization

OptionDescriptionDefault
dired-delight-displaySet color display style (block or background)Block
dired-delight-use-relative-namesMatch files by relative names, not absolute paths.Absolute paths
dired-delight-fileFile used to persist Delight data across sessionsXDG_CACHE_DIR or user-emacs-directory

dired-delight's People

Contributors

chookity-pokk avatar karthink avatar

Stargazers

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

Watchers

 avatar  avatar

dired-delight's Issues

Emacs freezing with dired-delight

After enabling dired-delight, when i open dired and go to a directory emacs freezes.
It does not happen when I don't enable dired-delight.

I ran profiler and did C-g when it freezes and generated the profiler report and I see that it is indeed due to dired-delight.
Please see the attached snapshot
Screenshot 2023-07-05 at 12 28 40 PM

Unmark files

Hello karthink, thanks for this handy package. I find it very useful, but I cannot find a way to unmark a file after I've marked it. Is there a way to do that? Many thanks.

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.