[MonoDevelop] ChangeLogAddIn

Jacob Ilsø Christensen jacobilsoe at gmail.com
Thu Dec 15 13:36:45 EST 2005


Thanks, it works now.

I have committed the ChangeLogAddIn.

To use it you must open a ChangeLog file. Then in the ChangeLog sub menu of
the Edit menu there are two items:

Insert Header: Inserts a header with name and email (taken from the
configured values in Preferences).
Insert Entry: Will insert a filename entry provided that you have marked a
file in the solution explorer. It will use the path relative to the
ChangeLog file and the selected file must be in the same directory or a sub
directory of the ChangeLog file.

Comments are welcome. Have fun! :-)

/Jacob

On 12/15/05, Lluis Sanchez <lluis at ximian.com> wrote:
>
> El mié, 14-12-2005 a las 23:56 +0100, Jacob Ilsø Christensen escribió:
> > Hi.
> >
> > Thanks for the IEditableTextBuffer tip. I cannot make it insert text
> > at the current cursor position though. I tried using the SelectedText
> > property (as that was the only one I could find) but it always inserts
> > in the top of the file when nothing is selected. How do I insert text
> > at the cursor position?
>
>
> You can do something like:
>
> IEditableTextBuffer b = ...
> b.InsertText (b.CursorPosition, "hello");
>
> >
> > /Jacob
> >
> > On 12/14/05, Lluis Sanchez <lluis at ximian.com> wrote:
> >         Hi,
> >
> >         You should avoid depending on MonoDevelop.SourceEditor. You
> >         can insert
> >         text to the editor by casting document.Content to
> >         IEditableTextBuffer,
> >         which is independent from the editor, so if the editor changes
> >         in the
> >         future your add-in will work without changes.
> >
> >         Other than that, it's ok to me.
> >
> >         Thanks!
> >         Lluis.
> >
> >         El lun, 05-12-2005 a las 22:22 +0100, Jacob Ilsø Christensen
> >         escribió:
> >         > Hi.
> >         >
> >         > I have written a small ChangeLogAddIn. The current
> >         functionality is to
> >         > add a new entry to a ChangeLog file.
> >         > It is invoked from the Edit menu and will only work if the
> >         currently
> >         > open file is a ChangeLog file.
> >         > The name and email used can be configured via the
> >         preferences as
> >         > usual.
> >         > Will someone try it out and let me know if this is something
> >         I can
> >         > commit?
> >         >
> >         > I plan to add these things later:
> >         >
> >         > * Make the preferences section a bit more pretty (gotta read
> >         up on
> >         > some gtk...) and follow the style of the other MonoDevelop
> >         preference
> >         > sections.
> >         > * Check the ChangeLog via mimetypes instead of just
> >         filename.
> >         > * Make it possible to select a number of files in the
> >         solution
> >         > explorer and when clicking Add ChangeLog Entry those files
> >         will be
> >         > added as well (with the correct path relative to the
> >         ChangeLog being
> >         > added to).
> >         > * Integration with the VersionControl AddIn. Clicking Add
> >         ChangeLog
> >         > Entry will create an entry in the currently open ChangeLog
> >         file and
> >         > add file entries for each modified file in the same
> >         directory and
> >         > subdirectories of the ChangeLog file.
> >         >
> >         > Sounds like something we could use?
> >         >
> >         > The patch file works as usual. The .tar.gz file should be
> >         unpacked in
> >         > the root dir of MonoDevelop.
> >         >
> >         > /Jacob
> >         > _______________________________________________
> >         > Monodevelop-list mailing list
> >         > Monodevelop-list at lists.ximian.com
> >         > http://lists.ximian.com/mailman/listinfo/monodevelop-list
> >
> >
> > _______________________________________________
> > Monodevelop-list mailing list
> > Monodevelop-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/monodevelop-list
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20051215/7e12d53f/attachment.html


More information about the Monodevelop-list mailing list