Code Monkey home page Code Monkey logo

diranged's Introduction

Dired on Acid!

A minor mode to make dired a bit more like ranger, but just crazy, not evil.

After enabling this mode, EVERY dired movement command, should preview the file or directory at point in other-window.

diranged aims to keep a preview for every motion command, regardless of what your dired-mode-map motion keys are bound to. If you find an edge-case - please let me know.

All keys should be consistent with dired-mode and standard Emacs bindings, with the exception of <SPC> and <backspace>, which will now scroll-other-window and scroll-other-window-down respectively.

Install

Add diranged.el to your load-path, and then:

(require 'diranged)
(define-key dired-mode-map "r" 'diranged-mode)

Or to use it as the default way to navigate dired buffers:

(add-hook 'dired-mode-hook 'diranged-mode)

With use-package:

(use-package diranged
  :bind (:map dired-mode-map ("r" . diranged-mode)))

Customise

The following customisation options and their defaults are shown below:

(setq diranged-disable-on-quit t     ; disable diranged on quit-window
      diranged-kill-on-move t        ; cleanup spawed buffers as we go
      diranged-kill-on-exit t        ; cleanup spawed buffers on exit
      diranged-max-file-size 10      ; MB size limit for previewing files
      diranged-restore-windows t)    ; restore windows state on exit

Alternatives

Not evil enough for you? Take a look at ranger-mode

A very similar package exists called peep-dired, but this doesn’t quite cut the mustard IMHO since it only works for up and down lines with Ctrl-p/n or Up/Down and hasn’t been touched in nearly 5 years.

diranged's People

Contributors

tslight avatar

Stargazers

Hadj H. avatar Christian Tietze avatar

Watchers

James Cloos 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.