transaction record; jump to blank

Dave Peticolas peticola@krondo.com
Mon, 17 Jul 2000 21:04:22 -0700


Jason Rennie writes:
> Hello,
> 
> I installed 1.4.2 not too long ago and one of the few things that has 
> annoyed me about GNUCash is that whenever I am in one of the multi-line 
> modes and I hit 'Enter', rather than going to a blank transaction, I go 
> to the next line in the current multi-line transaction.  I seem to have 
> found the code that handles this in gnome/window-register.c.  At the end 
> of the gnc_register_record_cb function is this small chunk of code:
> 
>   if (goto_blank)
>     gnc_register_jump_to_blank(regData);
>   else
>     gnucash_register_goto_next_virt_row(reg);
> 
> I tried changing this to :
> 
>   gnc_register_jump_to_blank(regData);
> 
> and I got exactly the behavior I wanted.  I guess goto_blank was always 
> ending up as GNC_F (false) for me.  The comment at the top of the 
> function reads:
> 
>   /* If we are in single or double line mode and we hit enter
>    * on the blank split, go to the blank split instead of the
>    * next row. This prevents the cursor from jumping around
>    * when you are entering transactions. */
> 
> but even when I hit 'Enter' in a blank line of a multi-line transaction, 
> I only go to the next line in the register (often an already filled in 
> line, rather than a blank line).  When I'm entering many transactions, I 
> don't like to have to move the mouse to add many entries, but I like to 
> do things in "auto single" mode so that after I've added a few entries, 
> I can add memos and do splits without having to change the register mode.
> 
> Anyway, I'd like to always be moved to the next blank after hitting
> 'Enter'.  Is there a reason as to why hitting 'Enter' doesn't do this?

There's no reason why we couldn't make that an option. I made it work
the way it does now to behave approximately the way the Enter key
works in text editing -- finish the current line and move to the next.

But first, I need to know whether you mean the next blank split line
in the transaction or the blank transaction at the bottom of the
register?

thanks,
dave