How to apply a regular expression to use only a part of a URL as a title. #47
-
As mentioned in the documentation, can you provide an example of using a regular expression to use only a part of the URL as title of the clipped tiddler. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
As a example we can remove the 'path' part of a url, eg this page has url we can remove upto the last "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 method. see the result - |
Beta Was this translation helpful? Give feedback.
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…