* Evernote Plugin?
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Re: Evernote Plugin?
I have not coded it yet, I'll look at doing it, probably not this weekend though.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- johnmorrisoniom
- Megastar
- Posts: 882
- Joined: 18 Dec 2008 07:40
- Family Historian: V7
- Location: Isle of Man
Re: Evernote Plugin?
After reading this thread with interest, I have downloaded and installed evernote on all my PC's as well as the current version (I think) of the plugin. I can foresee both becoming very useful.
- capnkeith
- Famous
- Posts: 190
- Joined: 09 Mar 2009 17:15
- Family Historian: V6.2
- Location: Suffolk, England
Re: Evernote Plugin?
Just been playing a bit more with the To Do Notes and noticed what I first thought was no word wrap in Evernote, but it is not that. The text has not all been transferred, only 120 characters approx. and finishes with ...Jane wrote:Then just edit your template to include the data reference for your To Do attribute under the Comments section.
It's probably something like INDI._ATTR-TO_DO[1].NOTE2[1] so wrap the {} around it and add it in to the template
Is that Evernote putting a limit, or something needs opening up in FH?
Keith
- tatewise
- Megastar
- Posts: 27082
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: Evernote Plugin?
That is an FH/LUA limitation of any long text field such as Notes via fhGetItemText() and fhGetDisplayText() API functions.
e.g.
local strNote = fhGetItemText( ptrInd, "~.NOTE2" ) is restricted to 120 chars plus ellipsis.
local strNote = fhGetDisplayText( ptrInd, "~.NOTE2" ) is restricted to 120 chars plus ellipsis.
local strNote = fhGetValueAsText( fhGetItemPtr( ptrInd, "~.NOTE2" ) ) retrieves the entire Note text.
So the body of the Plugin needs to use fhGetValueAsText( fhGetItemPtr( ) ) instead of fhGetItemText().
Or use fhGetValueAsText( fhGetItemPtr( ) ) instead of fhGetDisplayText(), but this will not have Note: in front of the Note text, so the Template will need to add |Note: | as a prefix.
e.g.
local strNote = fhGetItemText( ptrInd, "~.NOTE2" ) is restricted to 120 chars plus ellipsis.
local strNote = fhGetDisplayText( ptrInd, "~.NOTE2" ) is restricted to 120 chars plus ellipsis.
local strNote = fhGetValueAsText( fhGetItemPtr( ptrInd, "~.NOTE2" ) ) retrieves the entire Note text.
So the body of the Plugin needs to use fhGetValueAsText( fhGetItemPtr( ) ) instead of fhGetItemText().
Or use fhGetValueAsText( fhGetItemPtr( ) ) instead of fhGetDisplayText(), but this will not have Note: in front of the Note text, so the Template will need to add |Note: | as a prefix.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Re: Evernote Plugin?
0.7 of the plugin is now on the same link as before. It now uses fhGetValueAsText for longtext class fields, which I think includes all notes. Also you can specify prefix and suffix text for standard Data Reference template codes.
Prefix and Suffix are not supported for the following
{ref} Selected Record Reference
{title} The Title entered
{comment} the comment entered
{project} the project file
{projectname} The project title
They are supported for any data reference which can be started with INDI or ~
To specify simply enter as follows
{reference|prefix|suffix} both the prefix and suffix are optional, but a prefix must be used if a suffix is required, even if it's only a space.
Prefix and Suffix are not supported for the following
{ref} Selected Record Reference
{title} The Title entered
{comment} the comment entered
{project} the project file
{projectname} The project title
They are supported for any data reference which can be started with INDI or ~
To specify simply enter as follows
{reference|prefix|suffix} both the prefix and suffix are optional, but a prefix must be used if a suffix is required, even if it's only a space.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- capnkeith
- Famous
- Posts: 190
- Joined: 09 Mar 2009 17:15
- Family Historian: V6.2
- Location: Suffolk, England
Re: Evernote Plugin?
Yes 0.7 worked straight out of the box. The "note:" is now missing from the beginning of the text but I didn't need or want that anyway.
Thanks
Thanks
Keith
- johnmorrisoniom
- Megastar
- Posts: 882
- Joined: 18 Dec 2008 07:40
- Family Historian: V7
- Location: Isle of Man
Re: Evernote Plugin?
0.7 worked OK for me as well.
I missed the bit about not being able to create new Tags outside of evernote. But it created the ones I made anyway on the version of evernote I have (5.0.1.1.1188)
I missed the bit about not being able to create new Tags outside of evernote. But it created the ones I made anyway on the version of evernote I have (5.0.1.1.1188)
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Re: Evernote Plugin?
I think Evernote 5 supports adding from the import where as 4 did not. I have adjusted 0.7 slightly to exit cleanly if Evernote is not installed.johnmorrisoniom wrote:I missed the bit about not being able to create new Tags outside of evernote. But it created the ones I made anyway on the version of evernote I have (5.0.1.1.1188)
I think it's nearly ready for the Store now, I will just add some help in to the Knowledge base.
I think the template system could be useful for other plugins where you want to create flexible web pages from FH data.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- capnkeith
- Famous
- Posts: 190
- Joined: 09 Mar 2009 17:15
- Family Historian: V6.2
- Location: Suffolk, England
Re: Evernote Plugin?
I been thinking about the double space under the note title, you cannot do anything about the space above the title because that is set by <H3>. I wondered if below was affected by <p> and perhaps Evernote style sheet had already catered for that, but removing them made no difference. Then it dawned on me that it was the first <br /> , I removed that and row space has gone. Obviously if there is no BIRT or BAPT data it goes back to two rows but I can live with that, or just backspace it in Evernote.
When I put the expression for the To Do data in "Comment" I didn't put it between the <p>s and it worked. So I wonder if it is necessary to use the <p> because Evernote deals with that?
Just a thought
When I put the expression for the To Do data in "Comment" I didn't put it between the <p>s and it worked. So I wonder if it is necessary to use the <p> because Evernote deals with that?
Just a thought
Keith
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Re: Evernote Plugin?
You can change the template however you want, you could even make it completely empty the plugin won't mind.
If you make any interesting ones they could be posted on the help page for the plugin in the knowledge base if you want to share them.
If have changed the default one to use a list for events, and added some more headings to break up the text.
If you make any interesting ones they could be posted on the help page for the plugin in the knowledge base if you want to share them.
If have changed the default one to use a list for events, and added some more headings to break up the text.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- capnkeith
- Famous
- Posts: 190
- Joined: 09 Mar 2009 17:15
- Family Historian: V6.2
- Location: Suffolk, England
Re: Evernote Plugin?
Something weird has happened.
I have just downloaded 0.8 but the edit template has not updated it is still the one I altered. However I can see your amendments you mentioned in last post if I look at edit Plugin.
I have just downloaded 0.8 but the edit template has not updated it is still the one I altered. However I can see your amendments you mentioned in last post if I look at edit Plugin.
Keith
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Re: Evernote Plugin?
You'll obviously need to deleted your customised one to use the new default one. Just delete the template.txt from the evernote to do.dat folder in your project fh_data/plugin folder.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- capnkeith
- Famous
- Posts: 190
- Joined: 09 Mar 2009 17:15
- Family Historian: V6.2
- Location: Suffolk, England
Re: Evernote Plugin?
I have been renaming the plugin versions in my download folder before downloading the next version. I did not know about the plugin data folder. I have not found as many versions of the .dat folder as I have of plugin downloads in the download folder.
I like what you now have in the latest version.
edit
Should the text format for "Father", "Mother" and "Spouse(s)" be the same ?
I like what you now have in the latest version.
edit
Should the text format for "Father", "Mother" and "Spouse(s)" be the same ?
Keith
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Re: Evernote Plugin?
Father and Mother are on one line, but Spouse(s) is a heading. I might leave it for now, as I was thinking about a way to support +1 indexes, so all census and all children could be added easily.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
- capnkeith
- Famous
- Posts: 190
- Joined: 09 Mar 2009 17:15
- Family Historian: V6.2
- Location: Suffolk, England
Re: Evernote Plugin?
Hi Jane,
Edited
Have you had any more thoughts on adding +indexes and children to the Family section of this plugin?
Thanks
Edited
Have you had any more thoughts on adding +indexes and children to the Family section of this plugin?
Thanks
Keith
- capnkeith
- Famous
- Posts: 190
- Joined: 09 Mar 2009 17:15
- Family Historian: V6.2
- Location: Suffolk, England
Re: Evernote Plugin?
I've managed to get this piece of code to work but I am struggling to include the child's birth or baptism to work?
If it is possible please show me, thanks
{INDI.FAMS[1]>CHIL[1]>|<li>|</li> }
{INDI.FAMS[1]>CHIL[2]>|<li>|</li> }
{INDI.FAMS[1]>CHIL[3]>|<li>|</li> }
If it is possible please show me, thanks
{INDI.FAMS[1]>CHIL[1]>|<li>|</li> }
{INDI.FAMS[1]>CHIL[2]>|<li>|</li> }
{INDI.FAMS[1]>CHIL[3]>|<li>|</li> }
Keith
- Jane
- Site Admin
- Posts: 8441
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Re: Evernote Plugin?
I am not sure why you could not get them to work, you should be able to insert them directly using the Edit>data Reference Tool on the Plugin editor menu.
Code: Select all
<h6>Childen</h6>
{INDI.~CHIL[1]>| |, }{INDI.~CHIL[1]>BIRT[1]}
{INDI.~CHIL[2]>|<br /> |, }{INDI.~CHIL[2]>BIRT[1]}
{INDI.~CHIL[3]>|<br /> |, }{INDI.~CHIL[3]>BIRT[1]}
{INDI.~CHIL[4]>|<br /> |, }{INDI.~CHIL[4]>BIRT[1]}
{INDI.~CHIL[5]>|<br /> |, }{INDI.~CHIL[5]>BIRT[1]}
{INDI.~CHIL[6]>|<br /> |, }{INDI.~CHIL[6]>BIRT[1]}Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
Re: Evernote Plugin?
On the Plugin page http://www.fhug.org.uk/wiki/doku.php?id ... note_to_do there is no link to the actual plugin, which after some searching I found in a much earlier post in this thread.
I installed it on V6 and confirm that it does still work with Evernote - very nice too.
Is there a reason there is not an actual link to the plugin on it's main page?
Thanks.
I installed it on V6 and confirm that it does still work with Evernote - very nice too.
Is there a reason there is not an actual link to the plugin on it's main page?
Thanks.