top  Index  Search  Changes  RSS  Login

howm wiki - CountMenu Diff

  • Added parts are displayed like this.
  • Deleted parts are displayed like this.

指定キーワードでヒットするメモの本数をメニューに表示したい - [[2ch3:580]]

----

;; 1.3.7rc2 でテスト (1.3.6 では動作しません)
(defun my-howm-menu-count (key)
   (let ((count (length (howm-filter-items-uniq
                         (howm-view-search-folder-items key (howm-folder)
                                                        nil 'fixed)))))
     (format "[%s(%s)]" key count)))

;; howm のロードより後に
(add-to-list 'howm-menu-allow 'my-howm-menu-count)

で, メニューに
%here%(my-howm-menu-count "hoge")
などと書けば, [hoge(3)] のように本数が表示される

----
{{comment}}
----