@Saq - Ha yes, that's a neat way of getting around the need for nodemon, that I hadn't considered (mostly as I was ignorant of the API / focussed on writing to the folder). And you could call a bash script from Vim, or as @David Shaw points out an even tidier way would be to write it with VimL.
If I have time for a project prior to the next release, I might give it a whirl. Thanks for the suggestion / education. Yours, Gene On Wednesday, July 7, 2021 at 10:22:19 AM UTC+1 David Shaw wrote: > 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/fa4d0af1-d398-4ec4-b9cc-bc55d9c74ddfn%40googlegroups.com.

