todo finder added

This commit is contained in:
lxsameer 2011-06-05 01:16:15 +04:30
parent 2945610dbd
commit 8161d90999
1 changed files with 14 additions and 1 deletions

View File

@ -196,9 +196,22 @@ binding for Kuso IDE django plugin"
)
(defun kuso/get-todo ()
(defun django/get-todo ()
"Get a list of TODO entries from the project source tree"
(interactive)
(let (command gbuffer commandp)
(if (string= project-path "")
(get-project-path)
)
(setq command (concat "grep \"# TODO:\" " project-path " -Rn -T --color"))
(message command)
(setq gbuffer (get-buffer-create "*Grep*"))
(ansi-color-for-comint-mode-on)
(switch-to-buffer gbuffer)
(add-hook 'after-change-functions 'buffer-change-colorizing t t)
(setq commandp (start-process-shell-command "grep" gbuffer command))
)
)