Am Mittwoch, 30. Oktober 2019 10:09:45 UTC+1 schrieb Viktor Ransmayr: > > Hello Edward, hello Matt, > > Title says it all. - I need your help. > > Currently I use the command "insert-body-time" to get a timestamp into a > given location of the body of a node. > > I wanted to see if I can use abbreviations instead - and - tried to follow > the description in > > - > https://leoeditor.com/tutorial-pim.html#using-abbreviations-and-templates > > Unfortunately I can't get it to work in either Leo 6.0 or Leo 6.1b1. > > I have the following settings in '~/.leo/myLeoSettings.leo': > > - @bool enable-abbreviations = True > - @bool scripting-abbreviations = True > - @data global-abbreviations > - Body contains: ts;;={|{import time ; > x=time.strftime("%Y%m%d%H%M%S")}|} > > If I execute 'Settings > List/Kill Abbreviations > Abbrev-List' Leo > reports: > > Abbreviations... > ,,=__NEXT_PLACEHOLDER > ts;;={|{import time ; x=time.strftime("%Y%m%d%H%M%S")}|} > > But when I type 'ts;;' in a given body node nothing happens :-( > > What am I missing? >
Can someone, who has 'Leo abbreviations' working in a Python 3.7/ Windows 10 environment, please comment? With kind regards, Viktor -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/2c1f3a31-ee2a-4ca1-939f-129ac68a858d%40googlegroups.com.
