Ideally "Insert Headline Time" (Alt-e, h, t) would work like "Insert Body Time" (Alt-e, b, t, t, CR). That is, both would simply insert the time at the current cursor position.
I have been unable to achieve this ideal because by the time the "Insert Headline Time" function is called, the headline cursor position is at the end of the headline. Why is this? Is it because the headline is no longer in an "edit" state and the cursor position in the headline is not saved by Leo-Editor? I showed this problem by replacing the revision 5718 version of insertHeadlineTime() with: http://pastebin.com/0nXz6UAS The same problem occurs when the following code is executed by hitting Ctrl-B: http://pastebin.com/ncuN1T8G Ideally, Ctrl-B code could also use the headline cursor position. Are these two "points of execution" ("Insert Headline Time" and Ctrl- B) very similar or very different? There are probably very good reasons why the headline implementation differs so much from the body implementation, but I think it would be worthwhile to make them more similar. If anyone knows how to do what I want to do, I would greatly appreciate your help. -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
