dired-toggle icon indicating copy to clipboard operation
dired-toggle copied to clipboard

Show dired as sidebar and will not create new buffers when changing directory

#+HTML: MELPA #+HTML: MELPA Stable

*** Description

=dired-toggle= command could toggle to show dired buffer as a sidebar for current directory(similar to =dired-sidebar=, but more lightweight). The sidebar buffer also enabled a minor mode named =dired-toggle-mode=, and it only contains one buffer instance, change directories in it will not create news buffers.

Usage: #+BEGIN_SRC elisp (use-package dired-toggle :defer t :bind (("" . #'dired-toggle) :map dired-mode-map ("q" . #'dired-toggle-quit) ([remap dired-find-file] . #'dired-toggle-find-file) ([remap dired-up-directory] . #'dired-toggle-up-directory) ("C-c C-u" . #'dired-toggle-up-directory)) :config (setq dired-toggle-window-size 32) (setq dired-toggle-window-side 'left)

;; Optional, enable =visual-line-mode= for our narrow dired buffer: (add-hook 'dired-toggle-mode-hook (lambda () (interactive) (visual-line-mode 1) (setq-local visual-line-fringe-indicators '(nil right-curly-arrow)) (setq-local word-wrap nil)))) #+END_SRC

Source: https://github.com/fasheng/dired-toggle

*** Install

You could install it easily through [[http://melpa.milkbox.net/#/getting-started][melpa]] by typing =M-x package-install dired-toggle=

*** Screen shot

[[file:screenshot.png]]

(Enabled [[https://github.com/jtbm37/all-the-icons-dired][all-the-icons-dired]] and [[https://github.com/Fuco1/dired-hacks#dired-subtree][dired-subtree]] in screenshot)

*** License

GNU General Public License, Version 3.0