Add helm-based org searching commands
This commit is contained in:
parent
31291af29d
commit
a1b57eda3a
5 changed files with 36 additions and 15 deletions
|
@ -90,5 +90,19 @@
|
|||
(interactive "<a><!>")
|
||||
(if bang (helm-multi-swoop-all search) (helm-swoop :$query search)))
|
||||
|
||||
;;;###autoload
|
||||
(defun narf/helm-org-search (&optional directory)
|
||||
(interactive)
|
||||
(require 'helm-ag)
|
||||
(require 'helm-deft)
|
||||
(let ((dir (or directory org-directory)))
|
||||
(let ((helm-deft-dir-list `(,dir))
|
||||
(default-directory dir)
|
||||
(helm-ag--default-directory dir))
|
||||
(helm :sources `(,(if directory
|
||||
'helm-source-deft-fn
|
||||
'helm-source-projectile-files-list)
|
||||
helm-source-do-ag)))))
|
||||
|
||||
(provide 'defuns-helm)
|
||||
;;; defuns-helm.el ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue