From mboxrd@z Thu Jan 1 00:00:00 1970 From: yacinechaouche at yahoo.com (chaouche yacine) Date: Mon, 10 Sep 2018 14:50:00 +0000 (UTC) Subject: [Howm-eng 162] Re: Search by page title with autocompletion In-Reply-To: <87va7o9h9w.wl@id.domain> 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> <87va7o9h9w.wl@id.domain> Message-ID: <624484633.182884.1536591000996@mail.yahoo.com> Dear kazuyuki san, After thinking a bit I think I can achieve the same by searching with "C-c , g" then precede page titles with "^=.*". What do you think ? Yassine. On Sunday, September 2, 2018, 2:10:50 PM GMT+1, wrote: 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 _______________________________________________ Howm-eng mailing list Howm-eng at lists.osdn.me https://lists.osdn.me/mailman/listinfo/howm-eng -------------- next part -------------- An HTML attachment was scrubbed... URL: https://lists.osdn.me/mailman/archives/howm-eng/attachments/20180910/051f890e/attachment.htm