|
View:
New views
10 Messages
—
Rating Filter:
Alert me
|
|
|
is there any export all notes to html utility?That would be useful.
Is there anything like this? A plugin, an external script, something? I like to keep only relevant notes accessible, but it would be cool to be able to keep regular snapshots for future reference. I can just copy the .tomboy folder, but then there is no human friendly readable notes, onl the xml .note files. It would be handy to keep a snapshot of the whole notepad in HTML or in a cleaner text format. _______________________________________________ Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
Re: is there any export all notes to html utility?On 4/23/08, Pedro <pedro100@...> wrote:
> That would be useful. > Is there anything like this? > A plugin, an external script, something? Nothing that I know of, sorry. We have an Export to HTML addin that's installed by default, but it only works on one note at a time. It can include all notes linked from the note your exporting...so I guess you could make one note that links to all of your other notes, and then export that master note. It wouldn't be hard to write a script that creates the master note in one go. Need help writing it? And yes, we do intend to improve the export functionality to have the behavior you really want. Sandy _______________________________________________ Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
|
|
|
Re: is there any export all notes to html utility?"(don't forget to reply-all)"
Guilty as charged! :( Owned... Pete On Wed, Apr 23, 2008 at 2:28 PM, Sandy Armstrong <sanfordarmstrong@...> wrote: (don't forget to reply-all) _______________________________________________ Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
Re: is there any export all notes to html utility?dbus looks like a really cool technology, but i think i'll just write
a small perl script to grab the name of all the notes from their content using a simples regex match or maybe xpath. As for plugins, I wont take the effort to learn how to use .net now, maybe in the future. Thank you, these were quick and helpful replies. Apreciated. On Wed, Apr 23, 2008 at 9:20 PM, Pete Deremer <sportman1280@...> wrote: > "(don't forget to reply-all)" > > Guilty as charged! :( > > Owned... > > Pete > > > > On Wed, Apr 23, 2008 at 2:28 PM, Sandy Armstrong > <sanfordarmstrong@...> wrote: > > > > > > > > > (don't forget to reply-all) > > > > Tomboy has a pretty nice dbus interface, so you can use any language > > with dbus bindings (I like Python) to control Tomboy. That's what I > > would use to write the script. > > > > > http://arstechnica.com/journals/linux.ars/2007/09/26/using-the-tomboy-d-bus-interface > > > > You can extend Tomboy to a much higher degree by writing an addin. A > > Tomboy addin must run on Mono, so it must be written in a .NET > > language like C#, Boo, IronPython, etc. > > > > http://live.gnome.org/Tomboy/HowToCreateAddins > > > > Sandy > > > > > > On 4/23/08, Pedro <pedro100@...> wrote: > > > That was a wise workaround. > > > I will put up a script generate the index, quick and fun. > > > > > > BTW, I have zero knowledge on mono an how tomboy is written, is it > > > possible to extend mono with plugins written in languages like python > > > or perl? > > > > > > > > > > > > > > > > > > > > > On Wed, Apr 23, 2008 at 8:04 PM, Sandy Armstrong > > > <sanfordarmstrong@...> wrote: > > > > On 4/23/08, Pedro <pedro100@...> wrote: > > > > > That would be useful. > > > > > Is there anything like this? > > > > > A plugin, an external script, something? > > > > > > > > Nothing that I know of, sorry. We have an Export to HTML addin > that's > > > > installed by default, but it only works on one note at a time. It > can > > > > include all notes linked from the note your exporting...so I guess > you > > > > could make one note that links to all of your other notes, and then > > > > export that master note. It wouldn't be hard to write a script that > > > > creates the master note in one go. Need help writing it? > > > > > > > > And yes, we do intend to improve the export functionality to have > the > > > > behavior you really want. > > > > > > > > Sandy > > > > > > > > > > > _______________________________________________ > > Tomboy-list mailing list > > Tomboy-list@... > > > http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com > > > > Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
|
|
|
Re: is there any export all notes to html utility?1.that is exactly what I thought, the whole purpose would be an
archive organised by timestamp named folders. But it might be better to simply archive all notes. I think it allows a more confortable browsing. 2.Personaly i find it more practical to have a timestamp named folder with a snapshot of all the notes at that time. We all have a rough time index of events in our heads, while note names tend to be forgoten with time and can become difficult to browse if they are to many. 3. check 1 and 2 I haven't started this, this weekend probably i'll write it. BTW, HTML export is an addin feature therefore is not supported by dbus. Any suggestion on how to automate html export? On Thu, Apr 24, 2008 at 4:53 PM, Hot Mailing <mailing51@...> wrote: > > A couple of additional thoughts here: > > 1. If this utility could export all notes that whose last changed date > was before a certain date then it could act as a archive utility. > > 2. I think it would also be useful if it put each note in a directory > that was named after the Tomboy folder. > > 3. It would also be useful if the name of the html file was YYYYMMDD - > Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
Re: is there any export all notes to html utility?On 4/25/08, Pedro <pedro100@...> wrote:
> > BTW, HTML export is an addin feature therefore is not supported by > dbus. Any suggestion on how to automate html export? As I said, I would use dbus to get the titles of all of my notes, and then create a new note whose body was the the title of each note on a different line (again, with dbus). This note would basically be a table of contents. When you export it to HTML, because it links to all notes, all notes would be exported into one HTML file. Sandy _______________________________________________ Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
Re: is there any export all notes to html utility?Yes, I got mixed up and forgot that all the notes are exported to one file.
The issue I was trying to address is the need for manually export the notes rather than having an automated periodic export. But I think I'll leave that to an hypothetical future plugin. I'll try to write this during the weekend. On Fri, Apr 25, 2008 at 3:56 PM, Sandy Armstrong <sanfordarmstrong@...> wrote: > On 4/25/08, Pedro <pedro100@...> wrote: > > > > BTW, HTML export is an addin feature therefore is not supported by > > dbus. Any suggestion on how to automate html export? > > As I said, I would use dbus to get the titles of all of my notes, and > then create a new note whose body was the the title of each note on a > different line (again, with dbus). This note would basically be a > table of contents. When you export it to HTML, because it links to > all notes, all notes would be exported into one HTML file. > > Sandy > Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
Re: is there any export all notes to html utility?Ok, the first draft is complete and functional.
I just put a couple of functions from tomboy dbus API together. The documentation on perl's Net::Dbus is not available yet so I just used epiphany plugin as a reference. Here's the script http://pastebin.com/f718a7655 Any suggestions on how to automate this process? Like... running this script when tomboy starts or something similar would be cool. just for future reference...... #!/usr/bin/env python # # This script creates a tomboy note containing link to each other note # so one can easily export all the notes to an HTML file import dbus note_title = "Note Index" # Get the D-Bus session bus bus = dbus.SessionBus() # Access the Tomboy D-Bus object obj = bus.get_object("org.gnome.Tomboy","/org/gnome/Tomboy/RemoteControl") # Access the Tomboy remote control interface tomboy = dbus.Interface(obj, "org.gnome.Tomboy.RemoteControl") notes_links = "" for note in tomboy.ListAllNotes(): notes_links += tomboy.GetNoteTitle(note) + " \n" uri = tomboy.FindNote(note_title) if uri == "": uri = tomboy.CreateNamedNote(note_title) tomboy.SetNoteContents(uri, note_title + "\n\n" + notes_links) #end of script =========================================== On Fri, Apr 25, 2008 at 4:36 PM, Pedro <pedro100@...> wrote: > Yes, I got mixed up and forgot that all the notes are exported to one file. > The issue I was trying to address is the need for manually export the > notes rather than having an automated periodic export. > But I think I'll leave that to an hypothetical future plugin. > > I'll try to write this during the weekend. > > On Fri, Apr 25, 2008 at 3:56 PM, Sandy Armstrong > <sanfordarmstrong@...> wrote: > > > > On 4/25/08, Pedro <pedro100@...> wrote: > > > > > > BTW, HTML export is an addin feature therefore is not supported by > > > dbus. Any suggestion on how to automate html export? > > > > As I said, I would use dbus to get the titles of all of my notes, and > > then create a new note whose body was the the title of each note on a > > different line (again, with dbus). This note would basically be a > > table of contents. When you export it to HTML, because it links to > > all notes, all notes would be exported into one HTML file. > > > > Sandy > > > Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
| Free Forum Powered by Nabble | Forum Help |