public inbox for howm-eng@lists.osdn.me
 help / color / mirror / Atom feed
From: khi at users.sourceforge.jp (khi at users.sourceforge.jp)
Subject: [Howm-eng 160] Re: Search  by page title with autocompletion
Date: Sun, 02 Sep 2018 22:10:35 +0900	[thread overview]
Message-ID: <87va7o9h9w.wl@id.domain> (raw)
In-Reply-To: <989387812.2721345.1535275119433@mail.yahoo.com>

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


  reply	other threads:[~2018-09-02 13:10 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         ` khi [this message]
2018-09-02 13:16           ` [Howm-eng 161] " yacinechaouche
2018-09-10 14:50           ` [Howm-eng 162] " yacinechaouche
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=87va7o9h9w.wl@id.domain \
    --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).