Even if we don’t blog too much about gedit or gtksourceview, we indeed make some pretty cool things for it. This time I’m going to write about the latest things that we added.
- First of all I’d like to point out gtksourcecompletion, the framework that it was added to gtksourceview to provide some completion features. As you can see in the screenshot above, there we have a plugin using the devhelp api. We also have a plugin in gedit-plugins to provide words completion (completion from the words you already written in the opened files). And for that php lovers we have a completion plugin for it.
- Apart from completion features, jesse added a really cool plugin in gedit-plugins to provide multi editing features. Here you can see a screencast that he made. And a link to his blog post about this feature.
- In the win32 world I finally managed to make python work, the main problem is still pygtk, for some reason the pygtk in the gnome ftp is missing several symbols that I need to make work most plugins, so until we have a working pygtk I can’t really make anything about that. I’ve been investigating about this issue and it seems that right now pycairo is blocking people to be able to build it in visual studio. I hope this will be fixed soon.
- Apart from this, say that we are working in a bunch of things that makes and will make gedit and gtksourceview rock on!! like always.
Pingback: Ignacio Casal Quinteiro: News on gedit/gtksourceview
will new release be faster then previous.
Its impossible to scroll big highlited text file in gedit.
Window is flickering. Completly weird behavoir.
I eagrely anticipate the symbol completion via devhelp.
Now all that gedit needs is to be able to open multiple views of the same file, like emacs 😀
How about primitive simple features, for example ‘block selection’?
I use gedit a lot and really like it, but for block selection I must start gvim.
And ‘code folding’ would be useful too. But ok, this is nice to have like autocomplete and not a standard feature like block selection.
I wanted to do a dead simple thing with gedit:
replacing unix line endings (\n) with windows line endings(\r\n).
However I was *UNABLE* to determine from a file (in gedit) in which lineendings it has.
Such a big failure.
The other one, is a nonexistent encoding support…
When will Anjuta have support for all these new features? Any Anjuta guys around?
@anonymous: block selection is available in the new multi edit plugin
@khiraly: such negativity. Encoding support is by no means nonexistent (don’t know where you get that from). We are currently implementing line ending conversion support.
@pvanhoof: jhs just finished porting anjuta to gtksourcecompletion, so it should be available
@Richard: about multiviews we have something done for 3.0
These features sounds great! What about a fix for working on servers via CIFS: https://bugs.launchpad.net/gedit/+bug/34813/comments/61 ?
@Richard Multiview plugins are availble at the gEdit Plugins Page:
> @khiraly: such negativity.
> Encoding support is by no means
> nonexistent (don’t know where
> you get that from). We are
> currently implementing line
> ending conversion support.
Sorry for being rude. I just wrote the above comment after 1-2 hours of frustration (hunting for plugins, etc).
Would be nice for having in the statistics the number of ‘\r’ character and the number of ‘\n’ character.
Also on the statusbar there are space to write the lineendings:
You cant view a file which contains characters outside of the encoding range. You can get files like this nearly from anywhere: mysql dump, .csv file where the limiting char is a byte which is outside of encoding. Or you want only open a file to see what is inside (a .png file can be recognized by human easily from the first 4 char, the same is true for nearly every binary file)
Also the other big limitation if you get a file with mixed encodings. Like latin2 with utf8. So you have bytes which represent an accented letters (only one byte long, latin2) and also accented letters which are 2 bytes long(utf-8).
In that case, gedit should warn about mixed encodings, and represent all chars, and for example accented letters which are from other encodings should have a red background or something like this.
Currently it simply refuse to open it, and you cant fix the file by yourself. You need to open it in vim, or some usable editor.
Sorry for being harsh, but gedit is around 8 years already, and it lacks the most basic features.
And I didnt even talk about hey editor features.
Yes I know these examples are valid mostly for power users, but lineendings is such a basic feature, that if you have a film with a subtitle and you want to play in a divx player, you are likely to want fix the lineendings (to accept the standalone divx player).
Just my 2 cents.
@khiraly: about encoding, with the new gconverter thingie added to gio we are going to be able to manage this is a better way. About line endings, we already have the converter made for that, so we just need to create the interface to manage it, so probably for the next major release we are going to have it done.
A python (pydoc?) completion plugin perhaps? 😉
@Patryk: you could use the devhelp plugin for it, but it would be useful only for static functions, also anyway could make it.
It would also be possible to use a similar method to Netbean’s Python framework:
scan the source for any mention of methods executed on an object, and assume all similar derived objects have those same methods.
Also…I hate to ask the stupid questions, but what theme is that? It’s not Dust, and it’s not Shiki, and it’s not Humanity. It’s like some strange hybrid of all three.
@anonymous: sure it is possible the thing is get someone to make it. About the theme, I’m using “New Wave”, it comes with ubuntu.
I really like gedit, but I miss support for profiles.
What version of gtksourceview do I need to get the completion? The README file in the php plugin says I need >= 2.8, but it doesn’t work for me.
But it would be better to implement block selection at GtkTextView layer. Bug is http://bugs.gnome.org/96436
@Søren Hauberg: You need >= 2.9.1
@nacho: okay. Thanks.
Pingback: jessevdk » About snippets
Pingback: Jesse van den Kieboom: About snippets :Addz It Now
your work is highly appreciated, but what’s IMHO *really* missing in Gedit is *code folding*. That’s still the only reason I have to switch to geanny from time to time.
In the screenshot, how did you get the tabs and spaces displayed as arrows and dots? Is that a plugin?
Is a similar sort of thing possible for CSS? It’d help us web dev idiots.
@oliver: yes it is the drawspaces plugin in gedit-plugins
@devolute: not for now, maybe someone will make it.
@Fabian: code folding it is in the todo list, but it is something really tricky to make so we focus in things more important for now.
Does this mean that PHP code completion will be available in the next Gedit release?
@Dante: nop, it means that you can download the plugin and use it.
@nacho: is there an easy way to install this. I’ve been trying and I get the error: “AttributeError: ‘module’ object has no attribute ‘CompletionProposal'”
@Dante: the completion works against the last version of gtksourceview, so you would have to install gtksourceview and pygtksourceview >= 2.9.x
nacho, thanks for helping me out i’ve installed gtksourceview through https://launchpad.net/ubuntu/+source/gtksourceview2/2.9.3-0ubuntu1
But i can’t find python-gtksourceview in launchpad. am I looking at the wrong place?
@Dante: well not really sure but the package should be python-gtksourceview2
@nacho: hmm still 2.8.x in launchpad for lucid i suppose you guys do this otherwise
@nacho: can i find a package for compiling python-gtksourceview2 >= 2.9.x
@Dante: no idea really, I usually have built gedit and gtksourceview from sources.
@nacho: Ok i’ll give it a try one day. Anyway nice work! If I don’t get to test it soon I will later :).
@nacho: i’ve managed to get it working by upgrading to lucid. just to say very nice work!
where I download the plugin ????
I copy the plugin gedit-php-completion and I can’t use it from gedit because no appears in Edit / Preferences / Plugins,
If I could say why this happens?