public inbox for howm-eng@lists.osdn.me
 help / color / mirror / Atom feed
* [Howm-eng 155]  Search  by page title with autocompletion
       [not found] <1342622028.2136501.1534156304228.ref@mail.yahoo.com>
@ 2018-08-13 10:31 ` yacinechaouche
  2018-08-23 12:06   ` [Howm-eng 156] " khi
  0 siblings, 1 reply; 9+ messages in thread
From: yacinechaouche @ 2018-08-13 10:31 UTC (permalink / raw)


Dear Howmers, or homies,
If I know I want to open a certain note which title is "Plan", is there any howm command that would allow me to open that page by simply typing C-c , <key> then be prompted for the title of the page and it would auto-complete for me ? like I type only Pl<tab> and it would show completions for Plan, Plumbers and Plagiarisme, given that such pages exist.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.osdn.me/mailman/archives/howm-eng/attachments/20180813/fee9520f/attachment.htm 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Howm-eng 156] Re: Search  by page title with autocompletion
  2018-08-13 10:31 ` [Howm-eng 155] Search by page title with autocompletion yacinechaouche
@ 2018-08-23 12:06   ` khi
  2018-08-26  9:15     ` [Howm-eng 157] " yacinechaouche
  0 siblings, 1 reply; 9+ messages in thread
From: khi @ 2018-08-23 12:06 UTC (permalink / raw)


Hi.

Howm has auto-completion only for *keywords*.  So you need to write
the title as "= <<< Plan" instead of "= Plan" for auto-completion.
You can set it default as follows, but I'm afraid of efficiency.

;; Set initial contents of new notes
(setq howm-template ("= <<< %title%cursor\n%date %file\n\n"))

Or, ...

;; Though this is not completion, you can find notes by their titles.
(defun my-howm-search-title (title)
  (interactive "sSearch title: ")
  (howm-search (format "^=\\s+%s" (regexp-quote title)) nil))

Most titles in my notes are empty because considering suitable titles
is bothersome for quick note taking.  I regard howm as a tool not for
well-organized documentation but for scribble / clutter-writing.

-- 
khi at users.osdn.me


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Howm-eng 157] Re: Search  by page title with autocompletion
  2018-08-23 12:06   ` [Howm-eng 156] " khi
@ 2018-08-26  9:15     ` yacinechaouche
  2018-08-26  9:18       ` [Howm-eng 158] " yacinechaouche
  2018-08-26  9:18       ` [Howm-eng 159] " yacinechaouche
  0 siblings, 2 replies; 9+ messages in thread
From: yacinechaouche @ 2018-08-26  9:15 UTC (permalink / raw)


Hello !
I put both code in my .emacs but got no matches :( 

Is the first code supposed to be used with Keyword completion C-c , i ?
Yassine.




   On Thursday, August 23, 2018, 1:06:22 PM GMT+1, khi at users.sourceforge.jp <khi at users.sourceforge.jp> wrote:  
 
 Hi.

Howm has auto-completion only for *keywords*.? So you need to write
the title as "= <<< Plan" instead of "= Plan" for auto-completion.
You can set it default as follows, but I'm afraid of efficiency.

;; Set initial contents of new notes
(setq howm-template ("= <<< %title%cursor\n%date %file\n\n"))

Or, ...

;; Though this is not completion, you can find notes by their titles.
(defun my-howm-search-title (title)
? (interactive "sSearch title: ")
? (howm-search (format "^=\\s+%s" (regexp-quote title)) nil))

Most titles in my notes are empty because considering suitable titles
is bothersome for quick note taking.? I regard howm as a tool not for
well-organized documentation but for scribble / clutter-writing.

-- 
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/20180826/36143de2/attachment.htm 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Howm-eng 158] Re: Search  by page title with autocompletion
  2018-08-26  9:15     ` [Howm-eng 157] " yacinechaouche
@ 2018-08-26  9:18       ` yacinechaouche
  2018-08-26  9:18       ` [Howm-eng 159] " yacinechaouche
  1 sibling, 0 replies; 9+ messages in thread
From: yacinechaouche @ 2018-08-26  9:18 UTC (permalink / raw)



   On Sunday, August 26, 2018, 10:15:43 AM GMT+1, chaouche yacine <yacinechaouche at yahoo.com> wrote:  
 
 Hello !
I put both code in my .emacs but got no matches :( 

Is the first code supposed to be used with Keyword completion C-c , i ?
Yassine.




   On Thursday, August 23, 2018, 1:06:22 PM GMT+1, khi at users.sourceforge.jp <khi at users.sourceforge.jp> wrote:  
 
 Hi.

Howm has auto-completion only for *keywords*.? So you need to write
the title as "= <<< Plan" instead of "= Plan" for auto-completion.
You can set it default as follows, but I'm afraid of efficiency.

;; Set initial contents of new notes
(setq howm-template ("= <<< %title%cursor\n%date %file\n\n"))

Or, ...

;; Though this is not completion, you can find notes by their titles.
(defun my-howm-search-title (title)
? (interactive "sSearch title: ")
? (howm-search (format "^=\\s+%s" (regexp-quote title)) nil))

Most titles in my notes are empty because considering suitable titles
is bothersome for quick note taking.? I regard howm as a tool not for
well-organized documentation but for scribble / clutter-writing.

-- 
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/20180826/3b468a5e/attachment.htm 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Howm-eng 159] Re: Search  by page title with autocompletion
  2018-08-26  9:15     ` [Howm-eng 157] " yacinechaouche
  2018-08-26  9:18       ` [Howm-eng 158] " yacinechaouche
@ 2018-08-26  9:18       ` yacinechaouche
  2018-09-02 13:10         ` [Howm-eng 160] " khi
  1 sibling, 1 reply; 9+ messages in thread
From: yacinechaouche @ 2018-08-26  9:18 UTC (permalink / raw)


You can see a screencast here : https://vimeo.com/286741056
Yassine.


   On Sunday, August 26, 2018, 10:15:43 AM GMT+1, chaouche yacine <yacinechaouche at yahoo.com> wrote:  
 
 Hello !
I put both code in my .emacs but got no matches :( 

Is the first code supposed to be used with Keyword completion C-c , i ?
Yassine.




   On Thursday, August 23, 2018, 1:06:22 PM GMT+1, khi at users.sourceforge.jp <khi at users.sourceforge.jp> wrote:  
 
 Hi.

Howm has auto-completion only for *keywords*.? So you need to write
the title as "= <<< Plan" instead of "= Plan" for auto-completion.
You can set it default as follows, but I'm afraid of efficiency.

;; Set initial contents of new notes
(setq howm-template ("= <<< %title%cursor\n%date %file\n\n"))

Or, ...

;; Though this is not completion, you can find notes by their titles.
(defun my-howm-search-title (title)
? (interactive "sSearch title: ")
? (howm-search (format "^=\\s+%s" (regexp-quote title)) nil))

Most titles in my notes are empty because considering suitable titles
is bothersome for quick note taking.? I regard howm as a tool not for
well-organized documentation but for scribble / clutter-writing.

-- 
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/20180826/2798930b/attachment.htm 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Howm-eng 160] Re: Search  by page title with autocompletion
  2018-08-26  9:18       ` [Howm-eng 159] " yacinechaouche
@ 2018-09-02 13:10         ` khi
  2018-09-02 13:16           ` [Howm-eng 161] " yacinechaouche
  2018-09-10 14:50           ` [Howm-eng 162] " yacinechaouche
  0 siblings, 2 replies; 9+ messages in thread
From: khi @ 2018-09-02 13:10 UTC (permalink / raw)


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Howm-eng 161] Re: Search  by page title with autocompletion
  2018-09-02 13:10         ` [Howm-eng 160] " khi
@ 2018-09-02 13:16           ` yacinechaouche
  2018-09-10 14:50           ` [Howm-eng 162] " yacinechaouche
  1 sibling, 0 replies; 9+ messages in thread
From: yacinechaouche @ 2018-09-02 13:16 UTC (permalink / raw)


Works great ! thanks for awesome support !
Yassine.

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

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Howm-eng 162] Re: Search  by page title with autocompletion
  2018-09-02 13:10         ` [Howm-eng 160] " khi
  2018-09-02 13:16           ` [Howm-eng 161] " yacinechaouche
@ 2018-09-10 14:50           ` yacinechaouche
  2018-09-22 14:52             ` [Howm-eng 163] " khi
  1 sibling, 1 reply; 9+ messages in thread
From: yacinechaouche @ 2018-09-10 14:50 UTC (permalink / raw)


 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 

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Howm-eng 163] Re: Search  by page title with autocompletion
  2018-09-10 14:50           ` [Howm-eng 162] " yacinechaouche
@ 2018-09-22 14:52             ` khi
  0 siblings, 0 replies; 9+ messages in thread
From: khi @ 2018-09-22 14:52 UTC (permalink / raw)


Hi.

Yes. The below code does it automatically.

> 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 ? 

>  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))


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-09-22 14:52 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <1342622028.2136501.1534156304228.ref@mail.yahoo.com>
2018-08-13 10:31 ` [Howm-eng 155] Search by page title with autocompletion 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           ` [Howm-eng 162] " yacinechaouche
2018-09-22 14:52             ` [Howm-eng 163] " khi

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).