public inbox for howm-eng@lists.osdn.me
 help / color / mirror / Atom feed
From: yacinechaouche at yahoo.com (chaouche yacine)
Subject: [Howm-eng 162] Re: Search  by page title with autocompletion
Date: Mon, 10 Sep 2018 14:50:00 +0000 (UTC)	[thread overview]
Message-ID: <624484633.182884.1536591000996@mail.yahoo.com> (raw)
In-Reply-To: <87va7o9h9w.wl@id.domain>

 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 "^=.*<regexp>". What do you think ? 

Yassine.


    On Sunday, September 2, 2018, 2:10:50 PM GMT+1, <khi at users.sourceforge.jp> 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 

  parent reply	other threads:[~2018-09-10 14:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1342622028.2136501.1534156304228.ref@mail.yahoo.com>
2018-08-13 10:31 ` [Howm-eng 155] " yacinechaouche
2018-08-23 12:06   ` [Howm-eng 156] " khi
2018-08-26  9:15     ` [Howm-eng 157] " yacinechaouche
2018-08-26  9:18       ` [Howm-eng 158] " yacinechaouche
2018-08-26  9:18       ` [Howm-eng 159] " yacinechaouche
2018-09-02 13:10         ` [Howm-eng 160] " khi
2018-09-02 13:16           ` [Howm-eng 161] " yacinechaouche
2018-09-10 14:50           ` yacinechaouche [this message]
2018-09-22 14:52             ` [Howm-eng 163] " khi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=624484633.182884.1536591000996@mail.yahoo.com \
    --to=howm-eng@lists.osdn.me \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).