Skip to content

Commit

Permalink
Merge pull request #1600 from vindarel/vindarel/filer-at-directory
Browse files Browse the repository at this point in the history
filer: add filer-at-directory to prompt for a directory
  • Loading branch information
cxxxr authored Nov 12, 2024
2 parents 5c72ad8 + 52d6358 commit ff05eea
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/ext/filer.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -178,5 +178,15 @@
(let ((directory (buffer-directory)))
(make-leftside-window (make-filer-buffer directory)))))

(define-command filer-at-directory () ()
"Prompt for a directory and open the filer tree view at this 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)))))

(define-command filer-select () ()
(select (back-to-indentation (current-point))))

0 comments on commit ff05eea

Please sign in to comment.