From mboxrd@z Thu Jan 1 00:00:00 1970 From: khi at users.sourceforge.jp (khi at users.sourceforge.jp) Date: Sun, 02 Sep 2018 22:10:35 +0900 Subject: [Howm-eng 160] Re: Search by page title with autocompletion In-Reply-To: <989387812.2721345.1535275119433@mail.yahoo.com> References: <1342622028.2136501.1534156304228.ref@mail.yahoo.com> <1342622028.2136501.1534156304228@mail.yahoo.com> <871sapl233.wl@id.domain> <1831809796.2750350.1535274943047@mail.yahoo.com> <989387812.2721345.1535275119433@mail.yahoo.com> Message-ID: <87va7o9h9w.wl@id.domain> Ah. Regexp was wrong. Sorry... ;; Though this is not completion, you can find notes by their titles. ;; (fixed [2018-09-02]) (defun my-howm-search-title (title) (interactive "sSearch title: ") (message title) (howm-search (format "^= +%s" (regexp-quote title)) nil)) > Is the first code supposed to be used with Keyword completion C-c , i ? No. It modifies the result of "C-c , c" (howm-create). You will get "= <<< " instead of "= " in the first line of each new note. > ;; Set initial contents of new notes > (setq howm-template ("= <<< %title%cursor\n%date %file\n\n")) -- khi at users.osdn.me