Hi, developers!
A quick thanks to whomever fixed Ctrl-J (paragraph auto-wrap) to properly recognize end-of-comment markers so that tapping Ctrl-J doesn't include the function following the docs in the wrapping process. This is a subtle but very notable improvement over the older behaviour (which required that i first manually insert a newline before the end-of-comment, tap Ctrl-J, then manually remove the newline)!
:)
On Wed, Jul 6, 2011 at 6:21 PM, Stephan Beal sgbeal@googlemail.com wrote:
A quick thanks to whomever fixed Ctrl-J (paragraph auto-wrap) to properly recognize end-of-comment markers so that
LOL! Right after making that post i found a corner case Ctrl-J doesn't handle properly:
Before Ctrl-J:
License: this code is released into the Public Domain by its author, Stephan Beal (http://wanderinghorse.net/home/stephan/). HOWEVER, if you enable the MySQL driver (by compiling with -DCPDO_ENABLE_MYSQL5=ATrueValue) then you must inherit the GPL license used by MySQL (if any). Linking against sqlite3 does not impose any specific licensing restrictions on the client (not even a "do no evil" clause). ************************************************************************/ #if defined(NDEBUG) # undef NDEBUG #endif
After Ctrl-J:
... impose any specific licensing restrictions on the client (not even a "do no evil" clause). ********************************************************************** **/ #if defined(NDEBUG) # undef NDEBUG #endif
Note the placement of the #if.
(No big deal, but the timing of this find was funny.)
On Wed, 6 Jul 2011 19:34:44 +0200 Stephan Beal sgbeal@googlemail.com wrote:
LOL! Right after making that post i found a corner case Ctrl-J doesn't handle properly:
Just try Ctrl-J with comments like this:
/* Bla bla * bla bla */
As Lex already mentioned, Geany (or Scintilla) sadly doesn't know comments etc. This is one of the things I'm really missing since I moved from Emacs to Geany.
On Thu, Jul 7, 2011 at 7:08 AM, Joerg Desch jd.vvd@web.de wrote:
Just try Ctrl-J with comments like this:
/* Bla bla
- bla bla
*/
*shiver* - i can't stand having extra stars at the start of each line (largely because no editor but emacs can properly re-wrap them).
As Lex already mentioned, Geany (or Scintilla) sadly doesn't know comments etc. This is one of the things I'm really missing since I moved from Emacs to Geany.
Yes, esc-q ranks up there in my all-time favourite features.
@Lex: thanks for the tip about the selection.
On Thu, 7 Jul 2011 08:05:45 +0200 Stephan Beal sgbeal@googlemail.com wrote:
Yes, esc-q ranks up there in my all-time favourite features.
I'm still missing features like auto-kill (delete all whitespaces with one keypress), linewrap in comments, add-comment (M-;) with opens a comment at the end of the line or jumps into an existing one. And adding timestamps. ;-)
But I have no spare time to add a plugin or write some LUA-scripts. :-(
On 7 July 2011 02:21, Stephan Beal sgbeal@googlemail.com wrote:
Hi, developers! A quick thanks to whomever fixed Ctrl-J (paragraph auto-wrap) to properly recognize end-of-comment markers so that tapping Ctrl-J doesn't include the function following the docs in the wrapping process. This is a subtle but very notable improvement over the older behaviour (which required that i first manually insert a newline before the end-of-comment, tap Ctrl-J, then manually remove the newline)! :)
Hi Stephan,
Just for the record, as you found out it doesn't find comment terminators.
IIUC reflow wasn't designed for use in code, more for marked up text with blank line separated paragraphs. Too many block comments are explicitly laid out (eg one parameter per line) for it to have much use in code.
The algorithm is:
current selection or all the non-blank lines before and after the cursor which have the same indentation.
So you can just select the range you want to re-flow, you don't have to add spurious newlines.
Cheers Lex
-- ----- stephan beal http://wanderinghorse.net/home/stephan/
Geany mailing list Geany@uvena.de https://lists.uvena.de/cgi-bin/mailman/listinfo/geany
Hello,
Symbol completions does not seem to be working inside quoted strings. Do I need to enable something hidden to get it working properly or is it just a bug?
Geany version: 0.20 on Fedora 14
Thanks in advance.
Steve
On 10 July 2011 04:50, Steve steve@trinidadgraphics.com wrote:
Hello,
Symbol completions does not seem to be working inside quoted strings. Do I need to enable something hidden to get it working properly or is it just a bug?
Documentation error (ie it is undocumented).
This is deliberate, no autocompletion is done in comments or strings.
Cheers Lex
On Sun, 10 Jul 2011 11:53:39 +1000 Lex Trotman elextr@gmail.com wrote:
This is deliberate, no autocompletion is done in comments or strings.
Why is that? In php, things like
$s = "$firstname $lastname works for $boss.";
abound. Any reason for not making such things easy?
Regards,
Steve
On 10 July 2011 11:58, Steve steve@trinidadgraphics.com wrote:
On Sun, 10 Jul 2011 11:53:39 +1000 Lex Trotman elextr@gmail.com wrote:
This is deliberate, no autocompletion is done in comments or strings.
Why is that? In php, things like
$s = "$firstname $lastname works for $boss.";
abound. Any reason for not making such things easy?
Dunno, its been that way for a long time. One of the original devs would have to answer that.
You can always force it with the complete word keybinding (Ctrl-space)
Cheers Lex
On Sun, 10 Jul 2011 12:46:16 +1000 Lex Trotman elextr@gmail.com wrote:
On 10 July 2011 11:58, Steve steve@trinidadgraphics.com wrote:
On Sun, 10 Jul 2011 11:53:39 +1000 Lex Trotman elextr@gmail.com wrote:
This is deliberate, no autocompletion is done in comments or strings.
Why is that? In php, things like
$s = "$firstname $lastname works for $boss.";
abound. Any reason for not making such things easy?
Dunno, its been that way for a long time. One of the original devs would have to answer that.
You can always force it with the complete word keybinding (Ctrl-space)
No, the keybinding is disabled in quoted strings too. Any chance this might get fixed at some point?
Thanks,
Steve
You can always force it with the complete word keybinding (Ctrl-space)
No, the keybinding is disabled in quoted strings too. Any chance this might get fixed at some point?
Works for me in C in both strings and comments, I don't have any PHP available, maybe someone else can check.
Cheers Lex
On Sun, 10 Jul 2011 15:06:26 +1000 Lex Trotman elextr@gmail.com wrote:
You can always force it with the complete word keybinding (Ctrl-space)
No, the keybinding is disabled in quoted strings too. Any chance this might get fixed at some point?
Works for me in C in both strings and comments, I don't have any PHP available, maybe someone else can check.
I stand corrected. The shortcut got deleted somehow. Works fine, sorry to trouble you.
Regards,
Steve