Permalink
Browse files

* helm-bmkext.el: Add search and match specialized functions to all s…

…ources (same as pp-bokmarks).

(helm-bmkext-filter-setup-alist): Give location prop to all bmks.
  • Loading branch information...
1 parent 4178855 commit 2fbaccc5290cd66395682f7449f1ee3ecd496c4e @thierryvolpiatto thierryvolpiatto committed Apr 4, 2013
Showing with 15 additions and 1 deletion.
  1. +15 −1 helm-bmkext.el
View
@@ -39,7 +39,7 @@
(funcall fn))
for i in alist
for b = (car i)
- collect b into sa
+ collect (propertize b 'location (bookmark-location b)) into sa
finally return (sort sa 'string-lessp)))
;;;###autoload
@@ -61,6 +61,8 @@
'global
(helm-bmkext-addressbook-setup-alist))))
(candidates-in-buffer)
+ (search helm-bookmark-search-fn)
+ (match-part . helm-pp-bookmark-match-fn)
(persistent-action
. (lambda (candidate)
(let ((bmk (helm-bookmark-get-bookmark-from-name
@@ -146,6 +148,8 @@
(helm-init-candidates-in-buffer
'global (helm-bookmark-w3m-setup-alist))))
(candidates-in-buffer)
+ (search helm-bookmark-search-fn)
+ (match-part . helm-pp-bookmark-match-fn)
(filtered-candidate-transformer
helm-adaptive-sort
helm-highlight-bookmark)
@@ -166,6 +170,8 @@
(helm-init-candidates-in-buffer
'global (helm-bookmark-images-setup-alist))))
(candidates-in-buffer)
+ (search helm-bookmark-search-fn)
+ (match-part . helm-pp-bookmark-match-fn)
(filtered-candidate-transformer
helm-adaptive-sort
helm-highlight-bookmark)
@@ -186,6 +192,8 @@
(helm-init-candidates-in-buffer
'global (helm-bookmark-man-setup-alist))))
(candidates-in-buffer)
+ (search helm-bookmark-search-fn)
+ (match-part . helm-pp-bookmark-match-fn)
(filtered-candidate-transformer
helm-adaptive-sort
helm-highlight-bookmark)
@@ -207,6 +215,8 @@
(helm-init-candidates-in-buffer
'global (helm-bookmark-gnus-setup-alist))))
(candidates-in-buffer)
+ (search helm-bookmark-search-fn)
+ (match-part . helm-pp-bookmark-match-fn)
(filtered-candidate-transformer
helm-adaptive-sort
helm-highlight-bookmark)
@@ -227,6 +237,8 @@
(helm-init-candidates-in-buffer
'global (helm-bookmark-info-setup-alist))))
(candidates-in-buffer)
+ (search helm-bookmark-search-fn)
+ (match-part . helm-pp-bookmark-match-fn)
(filtered-candidate-transformer
helm-adaptive-sort
helm-highlight-bookmark)
@@ -247,6 +259,8 @@
(helm-init-candidates-in-buffer
'global (helm-bookmark-local-files-setup-alist))))
(candidates-in-buffer)
+ (search helm-bookmark-search-fn)
+ (match-part . helm-pp-bookmark-match-fn)
(filtered-candidate-transformer
helm-adaptive-sort
helm-highlight-bookmark)

0 comments on commit 2fbaccc

Please sign in to comment.