[GNC] Line navigation via keyboard possible?

Don Patzone donpatzone at gmail.com
Tue Jun 2 04:36:03 EDT 2026


Hi,

I'm currently trying to get a shortcut working to have a sort of Emacs
style line navigation. What I want to achieve is to navigate up and
down in transactions as well as individual lines, if I make a split
transaction.

I have dug through the documentation and saw that this *should* be
possible by creating a binding-set in the gtk-3.css in my
GNC_CONFIG_HOME.

I created the following binding for testing
```
@binding-set navigation
{
  bind "<ctrl>k" { "move-cursor" (display-lines, -1, 0) };
  bind "<ctrl>j" { "move-cursor" (display-lines, 1, 0) };
}

entry {
     -gtk-key-bindings: navigation;
   }
```

There is even a template for Emacs style keybindings in the GNC
install dir, where it references this signal. This is where I took it
from.

It does not work.

However when I tried it temporarily with the signal
`logical-positions` to move along the line it works.

Is the `display-lines` signal even supported the way I want? Or am I
overlooking something?

I'm using Win11 with version 5.3 due to some specific compatibility
issues with GNUCash Mobile I ran into later versions. But I also tried
it with version 5.14. Same issue.

I have gone through the mailing-list archive, but couldn't find
anything that could help my solve my problem.

Could anyone chime in with more knowledge on the internals and
possibly provide more insight, if this is possible?

Many thanks in advance!

Regards,
Pat


More information about the gnucash-user mailing list