Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow caption to be used #8

Closed
danielo515 opened this issue Nov 25, 2014 · 17 comments
Closed

Allow caption to be used #8

danielo515 opened this issue Nov 25, 2014 · 17 comments
Labels
feature A new feature for TiddlyMap

Comments

@danielo515
Copy link

Tiddler titles are very important since they told you what is the tiddler about. The title is not always suitable to be used inside a node graph. Allowing caption as the value to be displayed gives the opportunity to have long and meaningful titles with beautiful node maps.

For example

  • title: transaction.propertyname
  • caption: property
@felixhayashi
Copy link
Owner

Hi @danielo515

I get your point the problem is I use the node label in many cases to quickly access the tiddler. So before I accept your pull request I need to introduce another field "orignalLabel" for nodes and then use the label for caption.

Anyhow, I think this will work. Thanks for the suggestion.
Just add tickets for all your suggestions. I might not solve them immediately but I will certainly consider them.

Felix

@felixhayashi felixhayashi added the feature A new feature for TiddlyMap label Nov 26, 2014
@danielo515
Copy link
Author

Hello @felixhayashi

In my pull request (or it should be) I'm using name as an alternative to label. Then I changed the double click handler (not sure if I included that) to use the existing one. Is there any other place where it is used?

@felixhayashi
Copy link
Owner

Hola @danielo515,

I am heavily modifying the internal code at the moment. Just wait until the end of the week, I try to implement to use a caption as alternate label but I have to be careful because I currently use the label for some operations as shortcut to access the tiddler.

Also notice that my local code is changing at high pace at the moment so accepting pull request at this early stage is not possible but I certainly look at your code suggestions!

Felix

@tobibeer
Copy link

because I currently use the label for some operations as shortcut to access the tiddler

sounds a bit direct, but: NEVER do that

@felixhayashi
Copy link
Owner

:) hehe
@tobibeer I think I didn't expressed myself correctly, I reference tiddlers only via ids but as the nodes label directly corresponds to a tiddler title (up until now), I used it for example to open a tiddler when the node was double clicked. this has an enormous advantage because I do not have to iterate over all fields to find the tiddler with a certain id. However now I removed this code as I will allow captions in the next version.

By the way I am doing a major rework of the plugin at the moment. it will allow API users (not end users) to use $tw.taskgraph.adapter to inject nodes on a graph programmatically (like using $tw.wiki.addTiddler(). Also many other improvements will come ;) I hope its all finished in a few days.

Felix

@tobibeer
Copy link

Very promising stuff, Felix, to even provide hooks for other developers. Great!

@felixhayashi
Copy link
Owner

@danielo515

Captions may now be used (finally!).
See http://wkpr.de/hosting/tmp/tw5/taskgraph/#%24%3A%2Fplugins%2Ffelixhayashi%2Ftaskgraph%2Fdocs%2Fhelp

@tobibeer

Very promising stuff, Felix, to even provide hooks for other developers. Great!

Thanks Tobi!

The API for taskgraph is now accessible and has many features for developers:
I created an example here: http://wkpr.de/hosting/tmp/tw5/taskgraph/#Adapter

@felixhayashi
Copy link
Owner

@danielo515 @tobibeer

Tooltips can now be used by setting the description field of a tiddler. This can support short titles. if no description field exists, the title is used as tooltip.

The field can be changed from description to something else e.g. I know you use summary @tobibeer. But I still have to outsource this as a config tiddler...

Example at demo site: "How to deal with large Titles"

-Felix

@tobibeer
Copy link

Thanks Felix, perhaps open a new dummy issue only to close it ...and perhaps have the description / tooltip topic be a different thing.

@danielo515
Copy link
Author

@felixhayashi

This is terrific! Your plugin is getting more and more professional on each update.

@danielo515
Copy link
Author

Dear @felixhayashi

Links are dead again

@felixhayashi
Copy link
Owner

@danielo515,

Your plugin is getting more and more professional on each update.

Thanks!

Links are dead again

Which links? You mean http://bit.ly/tiddlymap?

@felixhayashi
Copy link
Owner

@tobibeer

Thanks Felix, perpahs open a new dummy issue only to close it ...and perhaps have the description / tooltip topic be a different thing.

Good point.

@rcrath
Copy link
Contributor

rcrath commented Feb 25, 2015

The API for taskgraph is now accessible and has many features for developers:
I created an example here: http://wkpr.de/hosting/tmp/tw5/taskgraph/#Adapter

Seems to be down. Very interested in it though.

@felixhayashi
Copy link
Owner

@rcrath yes, this old url is not in use anymore. please use the following proxy to visit the demo site: http://bit.ly/tiddlymap

and this url to visit the api:

http://bit.ly/tiddlymap_api

The api is not considered stable but you get a good impression on the existing functions and how to use them in plugins.

@tobibeer
Copy link

http://bit.ly/tiddlymap_api

slick

@rcrath
Copy link
Contributor

rcrath commented Feb 26, 2015

taskgraph=tiddlymap? I thought it was a separate thing. thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature for TiddlyMap
Projects
None yet
Development

No branches or pull requests

4 participants