From c3823970f0f466630afe1169a9d2b5b34ddf4c81 Mon Sep 17 00:00:00 2001 From: justbur Date: Mon, 18 Jan 2016 14:11:33 -0500 Subject: [PATCH] spacemacs-ivy: Add counsel-search-docs Command to grep the spacemacs docs using dotspacemacs-search-tools --- layers/+completion/spacemacs-ivy/packages.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/layers/+completion/spacemacs-ivy/packages.el b/layers/+completion/spacemacs-ivy/packages.el index a48602bf5..b4ccf8a9e 100644 --- a/layers/+completion/spacemacs-ivy/packages.el +++ b/layers/+completion/spacemacs-ivy/packages.el @@ -137,6 +137,12 @@ that directory." (interactive) (spacemacs/counsel-search ,tools t (projectile-project-root)))))) + (defun spacemacs/counsel-search-docs () + "Search spacemacs docs using `spacemacs/counsel-search'" + (interactive) + (spacemacs/counsel-search dotspacemacs-search-tools + nil spacemacs-docs-directory)) + (defun spacemacs/counsel-git-grep-region-or-symbol () "Use `counsel-git-grep' to search for the selected region or the symbol under the point in the current project with git grep." @@ -190,6 +196,7 @@ Helm hack." "hdf" 'counsel-describe-function "hdm" 'spacemacs/describe-mode "hdv" 'counsel-describe-variable + "hR" 'spacemacs/counsel-search-docs ;; insert "iu" 'counsel-unicode-char ;; jump