public inbox for howm-eng@lists.osdn.me
 help / color / mirror / Atom feed
* [Howm-eng 106]  Show title rather than file name in summaries
@ 2012-11-14  7:56 areiner
  2012-11-14 11:54 ` [Howm-eng 107] " khi
  0 siblings, 1 reply; 7+ messages in thread
From: areiner @ 2012-11-14  7:56 UTC (permalink / raw)


Hello,

is it possible to have howm display the title, rather than the file
name, in summaries such as are displayed after C-c , s or C-c , a or
when following links?  Something like

,----[ C-c , s Zeit RET ]
| 2012-10-15-081531.txt | haelt sich durch im Zeitbegriff?
| 2012-10-29-211319.txt | vorfinden, auf die Zeit aus?
`----

is not so usable as I get no idea what 2012-10-29-211319.txt is about.

Ideally, I would like

- the title (or at least its beginning, if it is too long) to be
  displayed, if it is non-blank;

  - if the title is too long, one might display the first matching
    line of the file only on the next line

- otherwise, the file name should be displayed as is the case now.

- At the same time, when navigating the list, the echo area should
  continue to display the full file name, e.g.: "View:
  /home/albert/.howm/2012/09/2012-09-22-110945.txt".

So the above example would become, e.g.,

,----[ C-c , s Zeit RET ]
| Familienaehnlichkeite | haelt sich durch im Zeitbegriff?
| Quantentheorie - Nich | vorfinden, auf die Zeit aus?
`----

or

,----[ C-c , s Zeit RET ]
| Familienaehnlichkeiten - Wittgenstein
|        | haelt sich durch im Zeitbegriff?
| Quantentheorie - Nichtlokalitaet
|        | vorfinden, auf die Zeit aus?
`----

Best regards,

Albert.


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

* [Howm-eng 107] Re: Show title rather than file name in summaries
  2012-11-14  7:56 [Howm-eng 106] Show title rather than file name in summaries areiner
@ 2012-11-14 11:54 ` khi
  2012-11-19  8:58   ` [Howm-eng 108] " areiner
  0 siblings, 1 reply; 7+ messages in thread
From: khi @ 2012-11-14 11:54 UTC (permalink / raw)


Hi, Albert-san. thx for your suggestion.

It is a hidden (experimental) feature.

http://sourceforge.jp/projects/howm/lists/archive/eng/2006/000026.html
| (setq howm-view-list-title-type 2) ;; Show title before summary.
| (setq howm-view-summary-format "") ;; If you want to delete file names.

You may also need "M-x customize-variable RET howm-list-title RET".

-- 
khi at users.sourceforge.jp


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

* [Howm-eng 108] Re: Show title rather than file name in summaries
  2012-11-14 11:54 ` [Howm-eng 107] " khi
@ 2012-11-19  8:58   ` areiner
  2012-11-20 12:52     ` [Howm-eng 109] " khi
  0 siblings, 1 reply; 7+ messages in thread
From: areiner @ 2012-11-19  8:58 UTC (permalink / raw)


Hi,

thanks a lot for the speedy reply!  However,

[khi at users.sourceforge.jp, Wed, 14 Nov 2012 20:54:18 +0900]:
> http://sourceforge.jp/projects/howm/lists/archive/eng/2006/000026.html
> | (setq howm-view-list-title-type 2) ;; Show title before summary.
> | (setq howm-view-summary-format "") ;; If you want to delete file names.

this does not seem to do what I want.  Consider the file

,----
| = <<< foo
| [2012-10-15 08:15] >>> ~/.howm/2012/09/2012-09-22-110945.txt
| 
| bar baz
`----

After `C-c , s bar RET` I only get the line "bar baz" without any
indication that it is found within a file with title "foo":

,----[ C-c , s bar RET ]
| 2012-10-15-081531.txt | bar baz
`----

(And with empty howm-view-summary-format, not even with any indication
that it belongs to a new file.)  So it seems that setting
howm-view-list-title-type does not do what the documentation says:

,----[ C-h v howm-view-list-title-type RET ]
...
| Value 2 means "show title before summary".
`----

which would imply something like

,----[ C-c , s bar RET ]
| 2012-10-15-081531.txt | = foo
|                       | bar baz
`----

The above would be perfectly OK for me, although what I really want is
the title to be shown instead of the FILE NAME, i.e., on the left hand
side of the summary.

In fact, I can observe absolutely no difference between
howm-view-list-title-type set to 1 or to 2.

Regards,

Albert.


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

* [Howm-eng 109] Re: Show title rather than file name in summaries
  2012-11-19  8:58   ` [Howm-eng 108] " areiner
@ 2012-11-20 12:52     ` khi
  2012-11-20 15:14       ` [Howm-eng 110] " areiner
  0 siblings, 1 reply; 7+ messages in thread
From: khi @ 2012-11-20 12:52 UTC (permalink / raw)


Hi, Albert-san.

Would you try

  (setq howm-list-title t) ;; Show title in any case.

or "M-x customize-variable RET howm-list-title RET"
in addition to the following lines?

  (setq howm-view-list-title-type 2) ;; Show title before summary.
  (setq howm-view-summary-format "") ;; If you want to delete file names.
  
-- 
khi at users.sourceforge.jp


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

* [Howm-eng 110] Re: Show title rather than file name in summaries
  2012-11-20 12:52     ` [Howm-eng 109] " khi
@ 2012-11-20 15:14       ` areiner
  2012-12-27 15:54         ` [Howm-eng 112] " khi
  0 siblings, 1 reply; 7+ messages in thread
From: areiner @ 2012-11-20 15:14 UTC (permalink / raw)


Hi,

thanks again for the response!  This:

[khi at users.sourceforge.jp, Tue, 20 Nov 2012 21:52:00 +0900]:
>   (setq howm-list-title t) ;; Show title in any case.
>   (setq howm-view-list-title-type 2) ;; Show title before summary.
>   (setq howm-view-summary-format "") ;; If you want to delete file names.

is much better.  My only gripe is that the title is shown for every
single line, and with varying width.  E.g.,

,----
| = <<< Familien?hnlichkeiten | PhD: Familien?hnlichkeiten - was h?lt sich 
| = PhD: ART - G?del-L?sungen - Wurml?cher | = PhD: ART - G?del-L?sungen - 
| = PhD: Anfangs?berlegungen | = PhD: Anfangs?berlegungen
| = PhD: Chronologie | = PhD: Chronologie
| = PhD: Chronologie | Vorstehungen mit dem Dekan der KTF; konkret zum PhD-
| = PhD: Chronologie | auf Lizentiat, nicht PhD.
| = PhD: Chronologie | - falls parallel: Offene Frage, ob 3-Jahres-Dauer de
`----

Note the many lines with title "= PhD: Chronologie" where only one
might be sufficient.  Also, ideally the leading "= " might be
suppressed in displaying the title as it only takes up a lot of screen
space.  (Due to my eyes I usually work on a display with 25x80
characters, so 2 characters less are noticable.)

But at any rate, that is much better and much more usable for me than
at the beginning.  Thanks a lot!

Albert.


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

* [Howm-eng 112] Re: Show title rather than file name in summaries
  2012-11-20 15:14       ` [Howm-eng 110] " areiner
@ 2012-12-27 15:54         ` khi
  2013-01-05 21:13           ` [Howm-eng 113] " areiner
  0 siblings, 1 reply; 7+ messages in thread
From: khi @ 2012-12-27 15:54 UTC (permalink / raw)


Hi, Albert-san.

Would you try this adhoc-cheap-inefficient-experimental code
on howm-test121227 or later?

http://howm.sourceforge.jp/a/howm-test.tar.gz

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(setq howm-list-title t) ;; Show title in any case.
(setq howm-view-list-title-type 2) ;; Show title before summary.
(setq howm-view-summary-format "") ;; If you want to delete file names.

;; show titles in independent lines without headers "=" in summary buffer.
;; works only after (setq howm-view-list-title-type 2).
;; char-width is not considered.
;; tested on howm-test121227.
(setq howm-entitle-items-style2-max-length 50)
(setq howm-entitle-items-style2-format "%-0s|%s") ;; for title and summary
(setq howm-entitle-items-style2-title-line t) ;; independent title line?

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


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

* [Howm-eng 113] Re: Show title rather than file name in summaries
  2012-12-27 15:54         ` [Howm-eng 112] " khi
@ 2013-01-05 21:13           ` areiner
  0 siblings, 0 replies; 7+ messages in thread
From: areiner @ 2013-01-05 21:13 UTC (permalink / raw)


Hello,

thanks a lot - and sorry for the slow reply!

I have just installed and tried howm-test121227, and with the settings

  (setq howm-entitle-items-style2-format "%-2s|%s")
  (setq howm-entitle-items-style2-title-line nil)

(to make subsequent lines indented slightly, so that I can better see
the boundaries between the files, and to have the first match
displayed already in the same line as the title) this is, I think:
exactly, what I wanted.  Thanks a lot!

Best regards,

Albert.


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

end of thread, other threads:[~2013-01-05 21:13 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-14  7:56 [Howm-eng 106] Show title rather than file name in summaries areiner
2012-11-14 11:54 ` [Howm-eng 107] " khi
2012-11-19  8:58   ` [Howm-eng 108] " areiner
2012-11-20 12:52     ` [Howm-eng 109] " khi
2012-11-20 15:14       ` [Howm-eng 110] " areiner
2012-12-27 15:54         ` [Howm-eng 112] " khi
2013-01-05 21:13           ` [Howm-eng 113] " areiner

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