Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to Change Project Explorer's Default Location and Ignore Dotfiles? #1597

Open
veqqq opened this issue Nov 11, 2024 · 1 comment
Open

Comments

@veqqq
Copy link

veqqq commented Nov 11, 2024

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"

@vindarel
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants