|
View:
New views
6 Messages
—
Rating Filter:
Alert me
|
|
|
html//blogging
hi folks,
i've just discovered tomboy-blogposter ( http://flukkost.nu/blog/tomboyblogposter/ ) which i'm really liking a lot. blog postings are like notes, and now that there are notebooks to store them in tomboy is an obvious place to write them in. the only issue is that blogs really need html links in them, because you're often referring to stuff from the web. am i wrong in thinking that tomboy doesn't allow 'hidden' html links in text? that is, can i write here the way i might in an html document? if not, would it be desirable or distracting to have such a feature? 'cause for me, right now, it'd be great to have. thanks much, matt
_______________________________________________ Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
|
Re: html//bloggingOn 4/29/08, Matt Price <matt.price@...> wrote:
> > i've just discovered tomboy-blogposter ( http://flukkost.nu/blog/tomboyblogposter/ ) which i'm really liking a > lot. blog postings are like notes, and now that there are notebooks to > store them in tomboy is an obvious place to write them in. the only > issue is that blogs really need html links in them, because you're > often referring to stuff from the web. am i wrong in thinking that > tomboy doesn't allow 'hidden' html links in text? that is, can i write > here the way i might in an html document? if not, would it be > desirable or distracting to have such a feature? 'cause for me, right > now, it'd be great to have. Currently there is no way to do this from Tomboy, but somebody could write an addin to do it pretty easily (like how the bugzilla addin works). We are thinking about adding this functionality to Tomboy in the future. Sandy _______________________________________________ Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
|
Re: html//bloggingOn Tue, 2008-04-29 at 22:32 -0700, Sandy Armstrong wrote:
> On 4/29/08, Matt Price <matt.price@...> wrote: > > > > i've just discovered tomboy-blogposter ( http://flukkost.nu/blog/tomboyblogposter/ ) which i'm really liking a > > lot. blog postings are like notes, and now that there are notebooks to > > store them in tomboy is an obvious place to write them in. the only > > issue is that blogs really need html links in them, because you're > > often referring to stuff from the web. am i wrong in thinking that > > tomboy doesn't allow 'hidden' html links in text? that is, can i write > > here the way i might in an html document? if not, would it be > > desirable or distracting to have such a feature? 'cause for me, right > > now, it'd be great to have. > > Currently there is no way to do this from Tomboy, but somebody could > write an addin to do it pretty easily (like how the bugzilla addin > works). We are thinking about adding this functionality to Tomboy in > the future. > don't have much time & also don't read c# (ok, it might be time to learn i guess) but had a quick look at the xml for a note. comparing a bugzilla link & a dragged-in html link: <link:bugzilla uri="http://bugzilla.gnome.org/show_bug.cgi?id=331529">331529</link:bugzilla> <link:url>http://www.nytimes.com/</link:url> i see that the link:url entity doesn't have a uri attribute. i tried editing the note manually to add such an attribute and only succeeded in breaking the link. so my question: would the best thing to do be to extend the definition of link:url or add another link:xxx (link:web?) element as is done in the bugzilla addin? I guess i would have expected these elements to be defined in xml documents but it seems they aren't . will try to understnad the code better. once i learn to read these files it doesn't look like this will be so difficult. then i guess i'll just extend tomboy-blogposter to handle the links properly... hopefully i'll have time to do it soon. matt ps any recommendations for mono tutorials? > Sandy -- Matt Price matt.price@... _______________________________________________ Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
|
Re: html//bloggingI think you should make a new <link:href> or <link:a> tag that mimics
the <link:bug> approach of using an attribute to code the URI. You'll need to come up with some cleverness to actually edit the link in these tags, and to create a new link from e.g. selected text. For editing, a right-click menu entry to 'Edit Link' which pops up a dialog is probably fine for now... live editing of url+text seems pretty difficult to find an intuitive UI for, though I'd love to hear some ideas. -Alex On Wed, Apr 30, 2008 at 10:18 AM, Matt Price <matt.price@...> wrote: > On Tue, 2008-04-29 at 22:32 -0700, Sandy Armstrong wrote: > > On 4/29/08, Matt Price <matt.price@...> wrote: > > > > > > i've just discovered tomboy-blogposter ( http://flukkost.nu/blog/tomboyblogposter/ ) which i'm really liking a > > > lot. blog postings are like notes, and now that there are notebooks to > > > store them in tomboy is an obvious place to write them in. the only > > > issue is that blogs really need html links in them, because you're > > > often referring to stuff from the web. am i wrong in thinking that > > > tomboy doesn't allow 'hidden' html links in text? that is, can i write > > > here the way i might in an html document? if not, would it be > > > desirable or distracting to have such a feature? 'cause for me, right > > > now, it'd be great to have. > > > > Currently there is no way to do this from Tomboy, but somebody could > > write an addin to do it pretty easily (like how the bugzilla addin > > works). We are thinking about adding this functionality to Tomboy in > > the future. > > > hi sandy, > > don't have much time & also don't read c# (ok, it might be time to learn > i guess) but had a quick look at the xml for a note. comparing a > bugzilla link & a dragged-in html link: > > <link:bugzilla > uri="http://bugzilla.gnome.org/show_bug.cgi?id=331529">331529</link:bugzilla> > <link:url>http://www.nytimes.com/</link:url> > > i see that the link:url entity doesn't have a uri attribute. i tried > editing the note manually to add such an attribute and only succeeded in > breaking the link. so my question: would the best thing to do be to > extend the definition of link:url or add another link:xxx (link:web?) > element as is done in the bugzilla addin? I guess i would have expected > these elements to be defined in xml documents but it seems they aren't . > will try to understnad the code better. > > once i learn to read these files it doesn't look like this will be so > difficult. then i guess i'll just extend tomboy-blogposter to handle > the links properly... > > hopefully i'll have time to do it soon. > matt > > ps any recommendations for mono tutorials? > > > > > Sandy > -- > > Matt Price > matt.price@... > > > _______________________________________________ > 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: html//bloggingOn Wed, 2008-04-30 at 10:58 -0700, Alex Graveley wrote:
> I think you should make a new <link:href> or <link:a> tag that mimics > the <link:bug> approach of using an attribute to code the URI. You'll > need to come up with some cleverness to actually edit the link in > these tags, and to create a new link from e.g. selected text. For > editing, a right-click menu entry to 'Edit Link' which pops up a > dialog is probably fine for now... live editing of url+text seems > pretty difficult to find an intuitive UI for, though I'd love to hear > some ideas. > don't have ideas about the live editing, but would also love to be able to highlight some text and, cay, ctrl-shift-l or something to add the link. that makes the whole process a little smoother and more organic. anyway, thx for the ideas... matt > -Alex > > On Wed, Apr 30, 2008 at 10:18 AM, Matt Price <matt.price@...> wrote: > > On Tue, 2008-04-29 at 22:32 -0700, Sandy Armstrong wrote: > > > On 4/29/08, Matt Price <matt.price@...> wrote: > > > > > > > > i've just discovered tomboy-blogposter ( http://flukkost.nu/blog/tomboyblogposter/ ) which i'm really liking a > > > > lot. blog postings are like notes, and now that there are notebooks to > > > > store them in tomboy is an obvious place to write them in. the only > > > > issue is that blogs really need html links in them, because you're > > > > often referring to stuff from the web. am i wrong in thinking that > > > > tomboy doesn't allow 'hidden' html links in text? that is, can i write > > > > here the way i might in an html document? if not, would it be > > > > desirable or distracting to have such a feature? 'cause for me, right > > > > now, it'd be great to have. > > > > > > Currently there is no way to do this from Tomboy, but somebody could > > > write an addin to do it pretty easily (like how the bugzilla addin > > > works). We are thinking about adding this functionality to Tomboy in > > > the future. > > > > > hi sandy, > > > > don't have much time & also don't read c# (ok, it might be time to learn > > i guess) but had a quick look at the xml for a note. comparing a > > bugzilla link & a dragged-in html link: > > > > <link:bugzilla > > uri="http://bugzilla.gnome.org/show_bug.cgi?id=331529">331529</link:bugzilla> > > <link:url>http://www.nytimes.com/</link:url> > > > > i see that the link:url entity doesn't have a uri attribute. i tried > > editing the note manually to add such an attribute and only succeeded in > > breaking the link. so my question: would the best thing to do be to > > extend the definition of link:url or add another link:xxx (link:web?) > > element as is done in the bugzilla addin? I guess i would have expected > > these elements to be defined in xml documents but it seems they aren't . > > will try to understnad the code better. > > > > once i learn to read these files it doesn't look like this will be so > > difficult. then i guess i'll just extend tomboy-blogposter to handle > > the links properly... > > > > hopefully i'll have time to do it soon. > > matt > > > > ps any recommendations for mono tutorials? > > > > > > > > > Sandy > > -- > > > > Matt Price > > matt.price@... > > > > > > _______________________________________________ > > Tomboy-list mailing list > > Tomboy-list@... > > http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com > > Matt Price matt.price@... _______________________________________________ Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
|
|
|
Re: html//bloggingOn Tue, 2008-04-29 at 22:32 -0700, Sandy Armstrong wrote:
> On 4/29/08, Matt Price <matt.price@...> wrote: > > > > i've just discovered tomboy-blogposter ( http://flukkost.nu/blog/tomboyblogposter/ ) which i'm really liking a > > lot. blog postings are like notes, and now that there are notebooks to > > store them in tomboy is an obvious place to write them in. the only > > issue is that blogs really need html links in them, because you're > > often referring to stuff from the web. am i wrong in thinking that > > tomboy doesn't allow 'hidden' html links in text? that is, can i write > > here the way i might in an html document? if not, would it be > > desirable or distracting to have such a feature? 'cause for me, right > > now, it'd be great to have. > > Currently there is no way to do this from Tomboy, but somebody could > write an addin to do it pretty easily (like how the bugzilla addin > works). We are thinking about adding this functionality to Tomboy in > the future. > > Sandy so finally trying to understand the Bugzilla plugin code a little better. if i understand it correctly, the bugzilla plugin works exclusively through drag and drop -- so, for instance, if you paste a bugzilla url in to a note, you get an ordinary link with no special bugzilla properties. the <link:href> tag i am using would not work by dragging, but by pasting a url somewhere. is there some obvious code in the tomboy source tree (or on the web somewhere) that shows how to acquire the clipoard data and add it to the note? i'm imagining that, instead of this code in BugzillaNoteAddin.cs: > > void DropUriList (Gtk.DragDataReceivedArgs args) > { > if (args.SelectionData.Length > 0) { > string uriString = Encoding.UTF8.GetString (args.SelectionData.Data); > > string bugIdGroup = "bugid"; > string regexString = > @"show_bug\.cgi\?(\S+\&){0,1}id=(?<" + bugIdGroup + @">\d{5,})"; > > Match match = Regex.Match (uriString, regexString); > if (match.Success) { > int bugId = int.Parse (match.Groups [bugIdGroup].Value); > if (InsertBugzilla (args.X, args.Y, uriString, bugId)) { > Gtk.Drag.Finish (args.Context, true, false, args.Time); > g_signal_stop_emission_by_name(Window.Editor.Handle, > "drag_data_received"); > } > } > } > } i want something more like: void PasteUriList (Gtk.ClipboardDataRecievedArgs args) { string uriString = Encoding.UTF8.GetString (args.SelectionData.Data); string highlightedText = Gtk.HighlightedText.value ; InsertHref (uriString, highlightedText ) ; } while InsertHref would, i guess, create an xml link:href object, with value highightedText and attribute uri, and replace the highlighted text with that object. this is pretty simple, obviously, but it feels harder b/c i have never tried c# before (or even c), and also b/c i don't have any feel for the available gtk/tomboy methods. anyway6, any comments or help would be appreciated. thanks! matt -- Matt Price matt.price@... _______________________________________________ Tomboy-list mailing list Tomboy-list@... http://lists.beatniksoftware.com/listinfo.cgi/tomboy-list-beatniksoftware.com |
| Free Forum Powered by Nabble | Forum Help |