[GNC] Possible to Set and Save an Individual Register's Default Style?
David H
hellvee at gmail.com
Tue Dec 16 16:09:28 EST 2025
What I haven't seen mentioned in all of this are the Accelerator shortcut
keys that for keyboard users can be set to easily change the View in the
current register and may alleviate the pain somewhat :-) Personally if I
customise a register I tend to just leave it open permanently anyway so
none of this is an issue for me.
i.e. Basic view = ctrl + alt + b on Windows or option / command b on macOS
AutoSplit ledger = ctrl + alt + s on Windows or option / command s
on macOS
Transaction Journal view = ctrl + alt + x on Windows or option /
command x on macOS
Double line view = ctrl + alt + l on Windows or option / command l
on macOS
If you go to Gnucash >> Help >> About on Windows (Gnucash >> About Gnucash
on macOS) you will be presented with an "About GnuCash" popup window.
Clicking on the GNC_USERCONFIG_DIR link will take you to the GnuCash user
config folder which contains an "accelerator-map" file.
While GnuCash is closed, edit this file using a text editor and remove the
semi-colon (;) from the beginning of these lines to UnComment them and
change them as follows. I suggest you copy this file before changing it so
you have a backup to go back to if the need arises.
change these lines from this
; (gtk_accel_path
"<Actions>/GncPluginPageRegisterActions/ViewStyleDoubleLineAction"
"<Primary><Alt>l")
; (gtk_accel_path
"<Actions>/GncPluginPageRegisterActions/ViewStyleRadioAction/0"
"<Primary><Alt>b")
; (gtk_accel_path
"<Actions>/GncPluginPageRegisterActions/ViewStyleRadioAction/1"
"<Primary><Alt>s")
; (gtk_accel_path
"<Actions>/GncPluginPageRegisterActions/ViewStyleRadioAction/2"
"<Primary><Alt>x")
to for example this :
(gtk_accel_path
"<Actions>/GncPluginPageRegisterActions/ViewStyleDoubleLineAction"
"<Primary><Alt>l")
(gtk_accel_path
"<Actions>/GncPluginPageRegisterActions/ViewStyleRadioAction/0"
"<Primary><Alt>b")
(gtk_accel_path
"<Actions>/GncPluginPageRegisterActions/ViewStyleRadioAction/1"
"<Primary><Alt>s")
(gtk_accel_path
"<Actions>/GncPluginPageRegisterActions/ViewStyleRadioAction/2"
"<Primary><Alt>x")
On Windows <Primary> is the ctrl key and <Alt> is self explanatory and on
macOS these are equivalent to option + cmd + l, b, s or x on my systems at
least :-)
Once you have these set and save the file and re-open GnuCash you should
see the Shortcut keys to the right of the view style radio buttons as per
the screenshot below.
Cheers David H.
[image: image.png]
On Wed, 17 Dec 2025 at 04:09, David Carlson <david.carlson.417 at gmail.com>
wrote:
> If you are going to propose a button to save account register display
> style, I would suggest also [optionally] saving the sort order and column
> settings.
>
> On Tue, Dec 16, 2025 at 10:34 AM R Losey <rlosey at gmail.com> wrote:
>
> > Absolutely; it's just a temporary work around until (hopefully), the
> > feature is implemented.
> >
> > I typically keep about 8 tabs open all the time (my most frequently used
> > accounts).
> >
> > On Tue, Dec 16, 2025 at 2:10 AM Adrien Monteleone <
> > adrien.monteleone at lusfiber.net> wrote:
> >
> > > I would see the problem is that if you *ever* close that register, the
> > > next time you open it, the default will take over.
> > >
> > > Regards,
> > > Adrien
> > >
> > > On 12/15/25 11:58 PM, R Losey wrote:
> > > > So... given that the Register Style persists if you have the register
> > > open,
> > > > is that something that you cannot do?
> > >
> > > _______________________________________________
> > > gnucash-user mailing list
> > > gnucash-user at gnucash.org
> > > To update your subscription preferences or to unsubscribe:
> > > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > > -----
> > > Please remember to CC this list on all your replies.
> > > You can do this by using Reply-To-List or Reply-All.
> > >
> >
> >
> > --
> > _________________________________
> > Richard Losey
> > rlosey at gmail.com
> > Micah 6:8
> > _______________________________________________
> > gnucash-user mailing list
> > gnucash-user at gnucash.org
> > To update your subscription preferences or to unsubscribe:
> > https://lists.gnucash.org/mailman/listinfo/gnucash-user
> > -----
> > Please remember to CC this list on all your replies.
> > You can do this by using Reply-To-List or Reply-All.
> >
>
>
> --
> David Carlson
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> To update your subscription preferences or to unsubscribe:
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 45925 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20251217/e1285dfb/attachment-0001.png>
More information about the gnucash-user
mailing list