Re: [gedit-list] Auto-closing brackets in selected area



On Thu, 2008-09-04 at 22:41 -0300, Christiano Farina Haesbaert wrote:
> Hello there, this is my first post to the list, so take it easy :P
> 
> I don't know if there is a feature like this in gedit, I've tried to
> find it in some plugin but failed.
> 
> I'll try to explain, suppose I'm there doing some happy coding and I
> want to select some text, be it 
> using ctrl + shit + arrow right or even with the mouse, than I want
> all this selection to be enclosed
> be it in () or in {}, so I press ( and the selected text becomes
> enclosed, like this.
> 
> 1 - I have the text:
> This is a very dummy text.
> 
> 2 - I select all the text with the mouse
> 3 - I press (.
> 4 - The text becomes:
> (This is a very dummy text.)
> 
> Is it possible ? if not I think I will write a plugin to do that.
> 

The easiest solution would perhaps be to write an External Tool ( Tools
-> External Tools...) to do it? You would have to bind the function to
another hotkey than ( , though.

> Best Regards.
> 
> 
> _______________________________________________
> gedit-list mailing list
> gedit-list gnome org
> http://mail.gnome.org/mailman/listinfo/gedit-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]