GNOME Bugzilla – Bug 743076
redundant code to indent/unindent selection?
Last modified: 2015-01-18 23:01:24 UTC
I was taking a peek at gb-source-view and I saw that you have code to indent/unindent a selection (gb_source_view_indent_selection etc). gtksourceview already does this on tab/shift+tab, but admittedly it does not have a public indent_selection method. Is the missing public method the reason to have this in gb-source-view or is there any other differences in behavior? I propose to add gtk_source_buffer_indent_text(buffer, start, end), would that work for you?
I think I needed it for the VIM module to call call on < or > when a selection is set. If you make that public ABI, I'd be happy to switch to that.
Created attachment 294736 [details] [review] patch I added the methods to gsv (turns out they need to be on the view since that's where we know the tab width etc)
Looks good, thanks!