From f0dda6213b2120eb6ceca4fa72030f4a1ef10503 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 31 Oct 2016 17:39:37 -0700 Subject: Use 'ivy' instead of 'helm'. ivy[1] is lighter than helm and has a nicer API. [1] http://oremacs.com/swiper/ --- pants.el | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/pants.el b/pants.el index ac98da8..75606ec 100644 --- a/pants.el +++ b/pants.el @@ -1,10 +1,10 @@ ;;; pants.el --- A frontend for pants. -;; Package-Requires: ((helm "1.5.3")) +;; Package-Requires: ((ivy "0.8.0")) ;;; Code: (require 'compile) -(require 'helm) +(require 'ivy) (require 'python) (defcustom pants-source-tree-root nil @@ -104,13 +104,8 @@ (while (re-search-forward "^\\(.+\\)$" nil t) (setq target (match-string 1)) (push target targets))) - (helm - (helm :sources - `((name . "Pants Targets") - (candidates . ,targets) - (action . action)) - :buffer "*helm pants targets*" - :prompt "pants: ")))) + (ivy-read "Pants Targets" targets + :action (lambda (target) (funcall action target))))) (defun pants--get-build-file-for-current-buffer () "Finds the nearest build file for the current buffer" -- cgit v1.2.3