Skip to content

How to apply a regular expression to use only a part of a URL as a title. #47

Answered by buggyj
arunnbabu81 asked this question in Q&A
Discussion options

You must be logged in to vote

As a example we can remove the 'path' part of a url, eg this page has url
https://github.com/buggyj/tiddlyclip-plugin/discussions/47

we can remove upto the last / can just use the number i.e '47' as part of the tiddler title, combining it with 'discussion' i.e.

"discussion 47"


step 1 create a new row in the TiddlyClipConfig


step 2 clone the defaultSnip tiddler and rename it DiscussionsSnip, then change the 'Title' to refrence another tiddler called 'TitleRule'


create the 'TitleRule' Tiddler, make sure the 'type is as shown'


reload you tiddlywiki and re-dock so the new method appears in the browser tiddlyclip context menu.

snip some text from this webpage (this discussion) using new…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@arunnbabu81
Comment options

@buggyj
Comment options

@arunnbabu81
Comment options

Answer selected by buggyj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants