Like Saq, I'm no Vim expert, but there's also the built in VimL language that might be able to do this without having to invoke external scripts.
And thanks for the original post - very interesting and possibly of use to me. Many thanks, David Shaw On Wed, 7 Jul 2021, 09:50 Saq Imtiaz, <[email protected]> wrote: > Hi Gene, > > For the specific use case that your video demonstrates, i.e. creating > short new tiddlers rather than editing existing ones, have you considered > the following workflow: > > - don't write your newly created tiddler files to the wiki directory. > - instead have vim do a PUT request with cURL to the tiddlywiki to save > the tiddler. > > API: > https://tiddlywiki.com/#WebServer%20API%3A%20Put%20Tiddler:%5B%5BWebServer%20API%3A%20Put%20Tiddler%5D%5D > > Example: > > curl -X PUT -i 'http://192.168.0.12:8080/recipes/default/tiddlers/ > NewTiddlerTitle' --data '{ > "tags": "firstTag anotherTag", > "creator": "gene", > "modifier": "gene", > "text": "The use of knowledge in society" > }' -H "X-Requested-With: TiddlyWiki" > > I don't use VIM myself but as far as I know it can execute bash scripts so > you could set one up to do the PUT with cURL. Alternatively there seem to > be VIM plugins specifically for interacting with APIs. > > Cheers, > Saq > > > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/CAHODQvxT_MHS3yGq58-CZUDrG%2BNnPFeorqQgrb3%3DAC9-UvaKHg%40mail.gmail.com.

