lem icon indicating copy to clipboard operation
lem copied to clipboard

Feature: change Project Explorer's Default Location and Ignore Dotfiles

Open veqqq opened this issue 1 year ago • 3 comments

Adding (setf lem.file-browser::*show-hidden* nil) lets me see normal folders (but still shows hidden too). I've not been able to determine how to open into a different directory e.g. "~/Sandbox"

veqqq avatar Nov 11 '24 23:11 veqqq

I've not been able to determine how to open into a different directory e.g. "~/Sandbox"

I think there is currently no way! Except opening a new buffer (even if a directory list) and calling M-x filer-directory, that opens at the current buffer's directory.

Here's a function, good for a PR:

(define-command filer-at-directory () ()
  (let ((directory (prompt-for-directory "Directory: "
                                         :directory (buffer-directory)
                                         :gravity :cursor
                                         :use-border t)))
    (when (filer-active-p)
      (deactive-filer)
    (make-leftside-window (make-filer-buffer directory)))))

call M-x filer-at-directory RET choose directory RET

vindarel avatar Nov 12 '24 08:11 vindarel

see https://github.com/lem-project/lem/discussions/1831 for a snippet to hide dot files.

vindarel avatar Jul 28 '25 13:07 vindarel

The command M-x filer-at-directory was merged, it asks for a directory and opens the filer there.

vindarel avatar Jul 28 '25 13:07 vindarel