Another example of ChatGPT, where I created a bookmarklet for setting the window name of a tab Bookmarklets, Just in Time install, Windows work flow and Timimi - #8 by TW_Tones
Wow
Another example of ChatGPT, where I created a bookmarklet for setting the window name of a tab Bookmarklets, Just in Time install, Windows work flow and Timimi - #8 by TW_Tones
Wow
I returned to ChatGPT4 and asked this; The answer possibly stolen from one of our members, but I created it and it worked.
There is a standard way to write the javascript for filter functions in tiddlywiki, can you help me write one?
Certainly! In TiddlyWiki, a filter is a sequence of steps that select a set of tiddlers from the entire wiki. Each step in a filter can transform the current set of titles by adding to it, removing from it, or otherwise changing it.
To write a filter function in TiddlyWiki using JavaScript, you would typically create a JavaScript macro or a plugin that defines a new filter operator.
Here’s a basic outline of steps to create a custom filter function in TiddlyWiki:
application/javascript
.$tw
global object to register your filter function as a new filter operator.Here’s a simple example of a filter operator that filters tiddlers by checking if their title includes a certain string:
/*\
title: $:/plugins/myusername/myfilteroperator.js
type: application/javascript
module-type: filteroperator
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
/*
Export our filter function
*/
exports.myfilter = function(source, operator, options) {
// operator.operand is the text that the filter operator is being applied with
var text = operator.operand.toLowerCase();
// operator.prefix determines if it's a negation
var invert = operator.prefix === "!";
// source is the list of tiddler titles being filtered
var results = [];
source(function(tiddler,title) {
if(title && title.toLowerCase().indexOf(text) !== -1 !== invert) {
results.push(title);
}
});
return results;
};
})();
This code defines a filter operator named myfilter
that includes tiddlers if their title includes the given operand text.
To use this new filter, you’d add your operand in a filter run like this:
[myfilter[searchText]]
Or to use the negation:
[!myfilter[searchText]]
Make sure to replace searchText
with the actual text you want to filter by.
Please note that you should be comfortable with JavaScript and familiar with the TiddlyWiki development environment before attempting to create custom filters. Also, ensure to test your filters carefully to ensure they work as expected within your TiddlyWiki environment.
now to test if it can modify this to perform more sophisticated functions
Just an update, I made a number of filters that worked quickly and easily,
This can off course be achieved with regular filters and or functions but they are useful for simplication purposes.
What is an operator you would like to see?
I think we need a thread with curated one-liners.
Maybe AI could help us write TiddlyWiki documentation that is lacking?
There has been new releases of the LLM used for ChatGPT that can be provided documents to ingest and provide feedback and information on.
If one were to build one of these LLM and feed it individual tiddlers from TiddlyWiki.com, it would likely be able to provide accurate information and list areas that could use further elaboration and suggest areas that require further documentation.
I was just watching a YT video regarding this yesterday, I believe a new version was just released that functions very well. Edit: a YT video just on llm’s sadly no one has begun making a tiddlywiki specific gpt model
I just loaded empty.html into ChatGPT and started asking questions (TiddlyWiki.com is too big).
Other questions are giving bag answers.
what standards can you determine for each of the modual-types?
In TiddlyWiki, module types are an integral part of its modular architecture, each serving specific purposes and adhering to certain standards. Here’s an overview of the common module types and their standards:
Understanding these module types and their standards is crucial for extending and customizing TiddlyWiki effectively. Each module type has a specific role and follows conventions that align with TiddlyWiki’s flexible and modular design philosophy.
Another update on my Journey to leverage ChatGPT for tiddlywiki.
Just now I created an SVG image to see if I could then use parameters to populate its labels, thus one could use it as an element in a presentation or provide links to corosponding lists or tiddlers.
I have started building a custom ChatGPT for tiddlywiki as a result of seeing someone elses attempt https://chat.openai.com/g/g-sHnokUbgB-tiddlywiki-guide.
Over here Organizing computer data files and matching to TiddlyWiki - #16 by TW_Tones we are clasifying and naming images with GatGPT. The resulting text can be placed with the image to aid search
I recently started playing around with Faraday.dev, I find it rather slow and buggy, but I think that’s mainly due to the fact I am running it on a Late 2014 Mac mini. There’s also Poe and you.com I have been using. I think some of the terms with ChatGPT are rather confusing to understand, so I really suggest starting with Faraday, as that might be a better way if you are interested in training the model with your own data. However that approach is rather slow so that’s where it might be worth it to pay for a subscription.
Today I wanted to edit the tiddlywiki Home icon to contain a H
inside the house.
So I gave ChatGPT the current Home image svg and asked it to place a letter inside it. After I worked out the size of the text needed to be larger, even if the button as a whole is smaller, I go a working image.
As a result I created this button, which opens the tiddler named in a config tiddler, rather than close all and default tiddlers. Defaults to Home
It is easy to edit the image and use another letter if you want.
home-tiddler.json (2.3 KB)