rejeep / prodigy.el

Manage external services from within Emacs
GNU General Public License v3.0
550 stars 39 forks source link

Add filtering for status #122

Open pidu opened 6 years ago

pidu commented 6 years ago

Enable a quick way to filter out services with a particular status. I tried this:

(defun prodigy-add-status-filter ()
  "Read string and add filter for status."
  (interactive)
  (prodigy-with-refresh
   (let ((string (read-string "string: ")))
     (prodigy-add-filter :Status string))
   (ignore-errors
     (prodigy-goto-first-line))))

but I was not successful in my attempt.

rejeep commented 6 years ago

Have you added it to the prodigy-services method?

Fuco1 commented 6 years ago

I suspect :Status should be :status too.

pidu commented 6 years ago

With your helpful hints I think I got it working.

pidu commented 6 years ago

Any reason why this can't be merged?