Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.
/ peep-dired Public archive

A convienent way to look up file contents in other window while browsing directory in dired

Notifications You must be signed in to change notification settings

asok/peep-dired

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moving this project to read-only

As described in the ticket I stopped using this package years ago. I have no time nor motivation to maintain it. As it turns out Protesilaos created his own package that provides the same feature as peep-dired.

The quality of the work Protesilaos is putting into Emacs makes me confident that his package will be far better than mine. So if I were you I would make the switch :)

Peep Dired

This is a minor mode that can be enabled from a dired buffer. Once enabled it will show the file from point in the other window. Moving to the other file within the dired buffer with down/up or C-n/C-p will display different file. Hitting SPC will scroll the peeped file down, whereas C-SPC and backspace will scroll it up.

Screenshot

Installation

Once you have setup Melpa you can use package-install command to install Peep Dired. The package name is peep-dired.

Configuration

Customizing

When disabling the mode you can choose to kill the buffers that were opened while browsing the directories.

(setq peep-dired-cleanup-on-disable t)

Or you can choose to kill the buffer just after you move to another entry in the dired buffer.

(setq peep-dired-cleanup-eagerly t)

If you want the dired buffers that were peeped to have the mode enabled set it to true.

(setq peep-dired-enable-on-directories t)

Evil integration

Adjust the state name depending on an evil state you open dired in:

(evil-define-key 'normal peep-dired-mode-map (kbd "<SPC>") 'peep-dired-scroll-page-down
                                             (kbd "C-<SPC>") 'peep-dired-scroll-page-up
                                             (kbd "<backspace>") 'peep-dired-scroll-page-up
                                             (kbd "j") 'peep-dired-next-file
                                             (kbd "k") 'peep-dired-prev-file)
(add-hook 'peep-dired-hook 'evil-normalize-keymaps)

Ignoring Certain File Extensions

You probably don't want to open certain files like videos when using Peep Dired. To ignore certain files when moving over them you can customize the following to your liking:

(setq peep-dired-ignored-extensions '("mkv" "iso" "mp4"))

Alternatives

  • dired-preview can be treated as a better replacement for Peep-Dired
  • ranger.el emulates ranger in dired. It has the preview feature similar to Peep-Dired.
  • diredc extensions to dired. It has a browse mode which has a similar feature to Peep-Dired.

Contribution

Install cask if you haven't already, then:

$ cd /path/to/peep-dired
$ cask

Run all tests with:

$ make test

About

A convienent way to look up file contents in other window while browsing directory in dired

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •