Skip to content

Commit

Permalink
Add easy-hugo-select-file
Browse files Browse the repository at this point in the history
  • Loading branch information
masasam committed Dec 1, 2018
1 parent 179f776 commit fa86f77
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions easy-hugo.el
Original file line number Diff line number Diff line change
Expand Up @@ -2078,6 +2078,21 @@ Optional prefix ARG says how many lines to move; default is one line."
nil t)))
(easy-hugo))

;;;###autoload
(defun easy-hugo-select-file ()
"Select file you want to open."
(interactive)
(find-file
(concat (expand-file-name easy-hugo-postdir easy-hugo-basedir)
"/"
(completing-read
"Complete file: "
(delete ".."
(delete "."
(directory-files
(expand-file-name easy-hugo-postdir easy-hugo-basedir))))
nil t))))

(defun easy-hugo--directory-list (list)
"Return only directories in LIST."
(if list
Expand Down

0 comments on commit fa86f77

Please sign in to comment.