Re parsing an input;

There is a facility in the current pre release keyboard-driven-input Macro 
<https://tiddlywiki.com/prerelease/#keyboard-driven-input%20Macro>

This allows actions to be executed from an input field, say with enter. 
This may provide the opportunity to do post entry processing. Effectively 
allowing you to make more sophisticated parsing take place on a per input 
basis.

Thus you could pass the value to other functions, if available for the 
result.

Regards
Tony



On Sunday, 13 September 2020 01:45:25 UTC+10, amreus wrote:
>
>
> Ruby has this great library called Chronic that parses strings into Ruby 
> Date objects. It handles date strings that are human friendly as well as in 
> rigid formats.
>
> You can see some usage examples here: https://github.com/mojombo/chronic
>
> Has anyone already made such a parser for TiddyWiki5? Does anyone know if 
> a similar library exists for Javascript which could be used?
>
> Why?  I have a textbox for rapid list item entry.  Instead of picking a 
> due-date for example, I just want to include the due-date as part of the 
> text and have a macro parse it out from the title and add it as a date 
> field. An example entry in my textbox might look like this:
>
> Schedule a fire system test due:"oct 1 8am"
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/72c66212-65fb-495f-a359-5b29231de2ddo%40googlegroups.com.

Reply via email to