Skip to content

Emacs File Navigation

NeoTree

KEY RESULT
n next line, p previous line。
SPC or RET or TAB Open current item if it is a file. Fold/Unfold current item if it is a directory.
U Go up a directory
g Refresh
A Maximize/Minimize the NeoTree Window
H Toggle display hidden files
O Recursively open a directory
C-c C-n Create a file or create a directory if filename ends with a ‘/’
C-c C-d Delete a file or a directory.
C-c C-r Rename a file or a directory.
C-c C-c Change the root directory.
C-c C-p Copy a file or a directory.

Lusty-Explorer

NOTE: Didn't find a way to display hidden files.

Launch the explorer with one of these commands:

M-x lusty-file-explorer
M-x lusty-buffer-explorer

NOTE: I bound the following shortcuts

KEY RESULT
C-c l to launch lusty-file-explorer
C-c C-l to launch lusty-buffer-explorer

speedbar

KEY RESULT
Q Quit speedbar, and kill the frame.
q Quit speedbar, and hide the frame. This makes it faster to restore the speedbar frame, than if you press Q.
g Refresh whatever contents are in speedbar.
n, p Move, respectively, to the next or previous item. A summary of that item will be displayed in the attached frame's minibuffer.
b Switch into Quick Buffers mode (see Buffer Mode). After one use, the previous display mode is restored.
f Switch into File mode.
<RET>, e Edit/Open the current group or tag. This behavior is dependent on the mode. In general, files or buffers are opened in the attached frame, and directories or group nodes are expanded locally.
+, = Expand the current group, displaying sub items. When used with a prefix argument, any data that may have been cached is flushed. This is similar to a power click. See Mouse Bindings.
- Contract the current group, hiding sub items.

Notes on speedbar:

  • By default it does not display files, only directories. To show files, either go to the menu item and choose "Show all files", or set it as default by adding this to the emacs init file:

    (custom-set-variables '(speedbar-show-unknown-files t) )

  • Speedbar has no option to display hidden files. However what speedbar displays is configured by a regexp. Setting the following in the emacs init file defaults speedbar to display hidden files:

    (setq speedbar-directory-unshown-regexp "^\(\.\.*$\)\'")

  • In sum, my speedbar config, using use-package is thus:

    ;; Speedbar
    ;; https://www.gnu.org/software/emacs/manual/html_mono/speedbar.html
    (use-package speedbar
        :ensure t
        :config
    ;; set speedbar to show files by default
        (custom-set-variables '(speedbar-show-unknown-files t))
    ;; and to display hidden files
        (setq speedbar-directory-unshown-regexp "^\(\.\.*$\)\'"))

NOTE: I also bound the following key to toggle speedbar.

KEY RESULT
C-c C-s toggle speedbar

The following was added to the ~/.emacs.d/ska_init/ska_emacs_keybindings.el file

;; speedbar keybinding
(global-set-key (kbd "C-c C-s") 'speedbar)

dired

Emacs: File Manager, dired

ivy


NeoTree:

Lusty Explorer:

dired:

Speedbar: