This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+vim/vinegar
duianto 0a06c7ca6b Fix filenames in layer file headers
Also fixed the groovy/funcs.el header which said: Java
2020-02-20 00:07:30 +01:00
..
config.el [vinegar] Support custom dired hide details mode by default. 2019-04-20 23:27:10 +02:00
funcs.el Fix filenames in layer file headers 2020-02-20 00:07:30 +01:00
keybindings.el Fix filenames in layer file headers 2020-02-20 00:07:30 +01:00
packages.el Revert "Defer packages by default using use-package-always-defer" 2018-03-03 23:40:10 -05:00
README.org [doc] Fix typos and add missing/remove extra ~ 2019-06-01 20:40:22 +02:00

Vinegar layer

Description

This layer is a port of vim-vinegar for Emacs.

It is based on tpope's vinegar.vim, simplifying dired with a limited number of details and exposing the - command in all buffers to enter dired.

Features:

  • navigation up folders with - key
  • simplify dired buffer to show only file names
  • better evil/vim bindings for navigation within dired buffer
  • keep only one active dired buffer
  • Use dired-k extension to show time / vcs related information in single bar
  • right mouse click moves up directory if in blank space or shows context menu

Install

Layer

To use this configuration layer add vinegar to the dotspacemacs-configuration-layers list.

Reuse dired buffer

To reuse dired buffers set the variable vinegar-reuse-dired-buffer to t.

  (setq-default dotspacemacs-configuration-layers '(
    (vinegar :variables
             vinegar-reuse-dired-buffer nil))

Deactive hide details mode

Per default extensive details in dired are hidden with this layer. This can be deactivated by setting the variable vinegar-dired-hide-details to nil.

  (setq-default dotspacemacs-configuration-layers '(
    (vinegar :variables
             vinegar-dired-hide-details t)))

Mouse bindings

Mouse Binding Description
mouse-1 (Dired) Open selected file
mouse-2 (Dired) Open clicked file in other-window
mouse-3 (Dired) Open context popup or go up directory

Key bindings

Key binding Description
- Navigate to parent directory in dired
0 (Dired) Move to the beginning of the file in dired
= (Dired) Diff between selected files
C-j (Dired) Move to next subdirectory
C-k (Dired) Move to previous subdirectory
I (Dired) Toggle showing dotfiles
~ (Dired) Navigate to home directory
f (Dired) Helm find file
J (Dired) Goto file
C-f (Dired) dired-find
H (Dired) Show dired history
T (Dired) Move down in dired tree
K (Dired) Kill marked lines (hide, do not delete)
r (Dired) Redisplay buffer