Hello,
I'm a new user. I have a few questions about how Geany might be customized:
1) How do I change the list of templates? The ones you see under "File > New (with Template)".
2) Is it possible to remove the Build menu? I imagine that this would require a plugin.
3) Is it possible to make a plugin that runs a custom shell on a tab or a separate window or something like that?
Basically want I have in mind is customizing Geany for Perl, Python or Ruby. So I don't want the Build menu, and I want a separate window with a Python, Ruby or Perl shell where the user can try commands.
Is this feasible? Is it very difficult?
Thanks for the help. Daniel.
Am Sonntag, den 01.08.2010, 11:47 +0200 schrieb Daniel Carrera:
Hello,
I'm a new user. I have a few questions about how Geany might be customized:
Hi Daniel, welcome to Geany! :)
- How do I change the list of templates? The ones you see under
"File > New (with Template)".
Yes, you have a configuration directory ~/.config/geany/templates/files where you can, put, edit, move and remove files. Then Tools->Reload Configuration and the template listing should have changed (if not, restart Geany, but I really think it's not necessary)
- Is it possible to remove the Build menu? I imagine that this would
require a plugin.
It basically is possible, yes, but not that trivial job. It actually would require editing the sources of Geany itself and recompiling it or writing a plugin which does that.
- Is it possible to make a plugin that runs a custom shell on a tab
or a separate window or something like that?
If you have installed vte (package on your distro may also be called libvte), Geany has support for vte integration. Check to install vte and then go to the Terminal-Tab in Edit->Preferences.
Basically want I have in mind is customizing Geany for Perl, Python or Ruby. So I don't want the Build menu, and I want a separate window with a Python, Ruby or Perl shell where the user can try commands.
Is this feasible? Is it very difficult?
Well, I'm at least writing Perl and Python sometimes and I find the Build Menu useful, right because of the features to customize the commands and call perl with switches for linting or anything else. I actually don't see the necessity to remove the Build Menu for those languages. Geany is flexible enough for handling any language and it's Geanys intention to be that flexible. With removing the build menu you would steal a bit of the flexibility. :)
With the vte feature enabled, you're also able to start any shell if you want. :)
Regards, Dominic
Hi Dominic,
Thanks for the help...
On Sun, Aug 1, 2010 at 1:19 PM, Dominic Hopf wrote:
- How do I change the list of templates? The ones you see under
"File > New (with Template)".
Yes, you have a configuration directory ~/.config/geany/templates/files where you can, put, edit, move and remove files.
Thanks!
- Is it possible to remove the Build menu? I imagine that this would
require a plugin.
It basically is possible, yes, but not that trivial job. It actually would require editing the sources of Geany itself and recompiling it or writing a plugin which does that.
Ok. I know better than to start mucking about with the Geany source. You suggest that a plugin could do it, but I take it that it would be difficult, right?
- Is it possible to make a plugin that runs a custom shell on a tab
or a separate window or something like that?
If you have installed vte (package on your distro may also be called libvte), Geany has support for vte integration. Check to install vte and then go to the Terminal-Tab in Edit->Preferences.
Ok, I've done that. I have configured a custom shell (/usr/bin/python). How do I run it now? I can't find an option for that. Btw, is VTE a Linux-only feature? I'm on Linux, but I'd like to know which features are cross-platforms and which are not.
Well, I'm at least writing Perl and Python sometimes and I find the Build Menu useful, right because of the features to customize the commands and call perl with switches for linting or anything else.
How do you customize the Build menu to call Perl instead of a compiler? I can imagine changing the Build menu so that it can run the Perl debugger for example.
Thanks for the help.
On 1 August 2010 22:14, Daniel Carrera dcarrera@gmail.com wrote:
Hi Dominic,
Thanks for the help...
On Sun, Aug 1, 2010 at 1:19 PM, Dominic Hopf wrote:
- How do I change the list of templates? The ones you see under
"File > New (with Template)".
Yes, you have a configuration directory ~/.config/geany/templates/files where you can, put, edit, move and remove files.
Thanks!
- Is it possible to remove the Build menu? I imagine that this would
require a plugin.
It basically is possible, yes, but not that trivial job. It actually would require editing the sources of Geany itself and recompiling it or writing a plugin which does that.
Ok. I know better than to start mucking about with the Geany source. You suggest that a plugin could do it, but I take it that it would be difficult, right?
I actually don't think it is possible to remove a standard menu from a plugin at the moment.
- Is it possible to make a plugin that runs a custom shell on a tab
or a separate window or something like that?
If you have installed vte (package on your distro may also be called libvte), Geany has support for vte integration. Check to install vte and then go to the Terminal-Tab in Edit->Preferences.
Ok, I've done that. I have configured a custom shell (/usr/bin/python). How do I run it now?
It will run next time you start Geany, i've got the >>> prompt now.
I can't find an option for
that. Btw, is VTE a Linux-only feature? I'm on Linux, but I'd like to know which features are cross-platforms and which are not.
VTE is a GTK widget so theoretically it should be able to be usable on windows but you may have to compile it yourself.
Well, I'm at least writing Perl and Python sometimes and I find the Build Menu useful, right because of the features to customize the commands and call perl with switches for linting or anything else.
How do you customize the Build menu to call Perl instead of a compiler? I can imagine changing the Build menu so that it can run the Perl debugger for example.
Thanks for the help.
Depends on the version, 0.19 added a lot of functionality to the configurability of the build menu, last entry in the menu "set build commands"
Cheers Lex
-- Intolerant people should be shot. _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Hi Lex,
On Sun, Aug 1, 2010 at 2:37 PM, Lex Trotman wrote:
I actually don't think it is possible to remove a standard menu from a plugin at the moment.
Ok.
Ok, I've done that. I have configured a custom shell (/usr/bin/python). How do I run it now?
It will run next time you start Geany, i've got the >>> prompt now.
Are you sure I don't have to do anything else? Maybe something like View > Terminal or something? I don't see any terminal. I am sure that there is an option somewhere to hide or show the terminal.
Hmm... I just found View > Show Message Window and that has a tab for Terminal. Is this what you guys have been talking about? So it's not really a separate window but part of the current window. Is that right?
VTE is a GTK widget so theoretically it should be able to be usable on windows but you may have to compile it yourself.
Ok.
Depends on the version, 0.19 added a lot of functionality to the configurability of the build menu, last entry in the menu "set build commands"
I have 0.18. My version says "Set Includes and Arguments", but you can enter Perl-specific commands for "Compile" and "Execute". I prefer the "Set Build Commands" from 0.19.
Daniel.
On 1 August 2010 22:48, Daniel Carrera dcarrera@gmail.com wrote:
Hi Lex,
On Sun, Aug 1, 2010 at 2:37 PM, Lex Trotman wrote:
I actually don't think it is possible to remove a standard menu from a plugin at the moment.
Ok.
Ok, I've done that. I have configured a custom shell (/usr/bin/python). How do I run it now?
It will run next time you start Geany, i've got the >>> prompt now.
Are you sure I don't have to do anything else? Maybe something like View > Terminal or something? I don't see any terminal. I am sure that there is an option somewhere to hide or show the terminal.
Hmm... I just found View > Show Message Window and that has a tab for Terminal. Is this what you guys have been talking about? So it's not really a separate window but part of the current window. Is that right?
To be exact, the terminal tab of the messages window view->show message window, select terminal tab
VTE is a GTK widget so theoretically it should be able to be usable on windows but you may have to compile it yourself.
Ok.
Depends on the version, 0.19 added a lot of functionality to the configurability of the build menu, last entry in the menu "set build commands"
I have 0.18. My version says "Set Includes and Arguments", but you can enter Perl-specific commands for "Compile" and "Execute". I prefer the "Set Build Commands" from 0.19.
Some people find the UI for set build commands in 0.19 intimidating, but it is being looked at.
Cheers Lex
Daniel.
Intolerant people should be shot. _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Sun, 1 Aug 2010 14:14:53 +0200, Daniel wrote:
Hey,
Ok, I've done that. I have configured a custom shell (/usr/bin/python). How do I run it now? I can't find an option for that. Btw, is VTE a Linux-only feature? I'm on Linux, but I'd like to know which features are cross-platforms and which are not.
http://www.geany.org/Support/RunningOnWindows The page has a section "Windows build differences" which list the differences. The build system support should work in the meantime, probably better as "buggy" but still not as good as on non-Windows systems. And yes, VTE is pure non-Windows only. There were some attempts to port VTE to Windows but AFAIK it's not yet done.
Regards, Enrico
I have a new customization question.
Background: Here is a feature I really like about Geany: When you are in HTML or PHP mode, and you type "<table>", Geany not only closes the table tag, but it fills the table with a blank row and cell:
<table> <tr> <td> </td> </tr> </table>
Notice how it is already indented and everything.
Now, what I want is for Geany to do something similar with curly brackets. Suppose I type some if-statement:
if (2 > 1) {
The moment I type the open curly bracket, I would like Geany to put a closing bracket two lines down and add an indentation to the space between the brackets:
if (2 > 1) { <indented> }
Is something like this possible?
The way Geany behaves currently is slightly annoying. Yes, it closes the bracket, like this:
if (2 > 1) {}
And when I press "Enter" Geany just goes one line down and indents the bracket:
if (2 > 1) { }
This is never what I want. So I just end up de-activating the bracket completion for curly brackets because what Geany does is more annoying than useful. But it would be really great if it could do what I actually want:
if (2 > 1) { <indented> }
Any chance for this?
Daniel.
On 1 August 2010 22:35, Daniel Carrera dcarrera@gmail.com wrote:
I have a new customization question.
Background: Here is a feature I really like about Geany: When you are in HTML or PHP mode, and you type "<table>", Geany not only closes the table tag, but it fills the table with a blank row and cell:
<table> <tr> <td> </td> </tr> </table>
Notice how it is already indented and everything.
Now, what I want is for Geany to do something similar with curly brackets. Suppose I type some if-statement:
if (2 > 1) {
The moment I type the open curly bracket, I would like Geany to put a closing bracket two lines down and add an indentation to the space between the brackets:
if (2 > 1) { <indented> }
Is something like this possible?
The way Geany behaves currently is slightly annoying. Yes, it closes the bracket, like this:
if (2 > 1) {}
And when I press "Enter" Geany just goes one line down and indents the bracket:
if (2 > 1) { }
This is never what I want. So I just end up de-activating the bracket completion for curly brackets because what Geany does is more annoying than useful. But it would be really great if it could do what I actually want:
if (2 > 1) { <indented> }
Any chance for this?
There are problems with auto indentation if there is anything on the line after the { ie the }. It is waiting for someone to have time to fix it.
Cheers Lex
Daniel.
Intolerant people should be shot. _______________________________________________ Geany mailing list Geany@uvena.de http://lists.uvena.de/cgi-bin/mailman/listinfo/geany
On Sun, 1 Aug 2010 22:48:49 +1000, Lex wrote:
On 1 August 2010 22:35, Daniel Carrera dcarrera@gmail.com wrote:
I have a new customization question.
Background: Here is a feature I really like about Geany: When you are in HTML or PHP mode, and you type "<table>", Geany not only closes the table tag, but it fills the table with a blank row and cell:
<table> <tr> <td> </td> </tr> </table>
Notice how it is already indented and everything.
Now, what I want is for Geany to do something similar with curly brackets. Suppose I type some if-statement:
if (2 > 1) {
The moment I type the open curly bracket, I would like Geany to put a closing bracket two lines down and add an indentation to the space between the brackets:
if (2 > 1) { <indented> }
Is something like this possible?
The way Geany behaves currently is slightly annoying. Yes, it closes the bracket, like this:
if (2 > 1) {}
And when I press "Enter" Geany just goes one line down and indents the bracket:
if (2 > 1) { }
This is never what I want. So I just end up de-activating the bracket completion for curly brackets because what Geany does is more annoying than useful. But it would be really great if it could do what I actually want:
if (2 > 1) { <indented> }
Any chance for this?
There are problems with auto indentation if there is anything on the line after the { ie the }. It is waiting for someone to have time to fix it.
Alternatively, or for the time waiting for a fix, you can get what you want using snippets. There is a default snippet for if statements which does quite what you want, IIRC.
Regards, Enrico