On 12/14/2010 11:20 PM, Liviu Andronic wrote:
On Wed, Dec 15, 2010 at 12:45 AM, Matthew Brushmatthewbrush@gmail.com wrote:
Hi,
I wrote a simple little plugin which moves the VTE into the sidebar. The purpose/rational is described in the README at:
https://github.com/codebrainz/geany-sidebarterm
You can see a screenshot of the plugin in action here:
https://github.com/codebrainz/geany-sidebarterm/raw/master/sidebarterm_scree...
Nice, thanks for working on this. I think it will be useful in my working with Geany. The plug-in configures, builds and loads fine in Geany 0.20 (svn>= r5478), but I cannot find a way to actually move vte to sidebar.
It should move the VTE to the sidebar automatically when the plugin is activated in the Plugin Manager, you should see the Terminal tab disappear from the message window at the bottom and a Terminal tab should appear in the sidebar. It should switch back when the plugin is de-activated. Of course you need Geany to be supporting the VTE terminal, which can be enabled/disabled under the General->Startup tab in the Preferences dialog, the option that says "Load virtual terminal support" (it's default on here). If you don't have that option, or you don't see a Terminal tab in the Geany Preferences dialog, then your Geany is probably not built/running with VTE support (ex. on Windows I don't think the VTE is supported at all). If it still doesn't work, let me know because maybe I did something incorrectly in the code.
If you care to test it out, either get the source from the github repository linked above or from this tarball:
https://github.com/downloads/codebrainz/geany-sidebarterm/sidebarterm-0.0.1....
I'm not very good with Autotools yet, but it seems to configure/compile/install fine here.
I've also made an attempt to modify the Geany source itself in order to add an option to choose the terminal location from the preferences dialog,
I cannot find this pref (although it should probably be located in 'Edit> Plugins Prefs' dialogue). Any suggestions?
The preferences I was talking about there are only if you applied the "geany_vte.patch" to the Geany source and re-built it, however I don't necessarily recommend doing that as the patch is not tested, nor is it completely working.
There are no preferences for the plugin, it just works as described above (by activating/de-activating the plugin).
Regards Liviu
however I'm not very familiar with Geany's source so I couldn't figure out how to make the preferences stick after Geany is restarted. If anyone is interested, the patch can be found here:
https://github.com/codebrainz/geany-sidebarterm/blob/master/geany_vte.patch
Assuming the patch applies OK (I removed a bunch of noise by hand), you can see it's almost entirely working with the exception of the preference sticking around on restart of Geany. The preference does get applied when the Preferences dialog is opened.
Any comments, feedback and pointers would be very much appreciated.
Thank you for your time.
Matthew Brush (codebrainz)
Geany-devel mailing list Geany-devel@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel
Let me know if it works or not.
Matthew Brush (codebrainz)