Greetings!
I am wondering about tweaking a particular behaviour, and I am not even sure it's possible. Basically, when I am writing a function, and I add braces, I then place the cursor in between the braces and hit enter. The brace drops down to the next line as expected, but indented. I find this very annoying after a while, and I have to hit the backspace key and bring the brace back into line. I don't know if it's clear what I am asking, and I don't know if there is anything that can be done about it, but I do find it irritating, and I don't find this behaviour in similar editors (sublime text 2, komodo edit, etc)
any ideas?
On 7 February 2014 04:15, Ramsey Darling rdarling42@gmail.com wrote:
Greetings!
I am wondering about tweaking a particular behaviour, and I am not even sure it's possible. Basically, when I am writing a function, and I add braces, I then place the cursor in between the braces and hit enter. The brace drops down to the next line as expected, but indented. I find this very annoying after a while, and I have to hit the backspace key and bring the brace back into line. I don't know if it's clear what I am asking, and I don't know if there is anything that can be done about it, but I do find it irritating, and I don't find this behaviour in similar editors (sublime text 2, komodo edit, etc)
any ideas?
Unfortunately not, in "current chars" mode Geany supports the workflow of typing these in the correct order, ie {<return>} where the } will unindent itself.
Cheers Lex
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users
On Thu, 06 Feb 2014 12:15:05 Ramsey Darling rdarling42@gmail.com wrote:
Basically, when I am writing a function, and I add braces, I then place the cursor in between the braces and hit enter. The brace drops down to the next line as expected, but indented.
Which Geany version do you use? I use Geany 1.24 (git >= 79db59d) from git and it works pretty well (even with disabled plugins) if I write finc(...) {} and then finc(...) {<return>}, it will be finc(...) { <cursor> }
Do you use any "Completitions - Auto-close quotes..." in the Preferences?
Any way, try to check out Auto-close plugin[1]. (the last version is in author's git-repo; you should install it separately) Plugin implement better braces auto-closing, than Geany itself, and indent-control (author wrote it to get rid from the same issue as you)
[1]: https://github.com/scriptum/geany-plugins/tree/autoclose-v0.2/autoclose (branch autoclose-v0.2)
oh great! thank you, I will check that out!
On Fri, Feb 7, 2014 at 5:19 AM, Frodox Frodox@zoho.com wrote:
On Thu, 06 Feb 2014 12:15:05 Ramsey Darling rdarling42@gmail.com wrote:
Basically, when I am writing a function, and I add braces, I then place the cursor in between the braces and hit enter. The brace drops down to the next line as expected, but indented.
Which Geany version do you use? I use Geany 1.24 (git >= 79db59d) from git and it works pretty well (even with disabled plugins) if I write finc(...) {} and then finc(...) {<return>}, it will be finc(...) { <cursor> }
Do you use any "Completitions - Auto-close quotes..." in the Preferences?
Any way, try to check out Auto-close plugin[1]. (the last version is in author's git-repo; you should install it separately) Plugin implement better braces auto-closing, than Geany itself, and indent-control (author wrote it to get rid from the same issue as you)
[1]: https://github.com/scriptum/geany-plugins/tree/autoclose-v0.2/autoclose(bran... autoclose-v0.2)
Users mailing list Users@lists.geany.org https://lists.geany.org/cgi-bin/mailman/listinfo/users