[GNC] Possible to Set and Save an Individual Register's Default Style?
Stan Brown (using GC 4.14)
stan+gc at fastmail.fm
Wed Dec 17 15:03:56 EST 2025
Surely this would be an excellent addition to the Wiki?
Stan Brown
Tehachapi, CA, USA
https://BrownMath.com
On 2025-12-17 11:39, Liz wrote:
> On Wed, 17 Dec 2025 07:17:20 +1000
> edit included
>>
>> On Wed, 17 Dec 2025 at 07:09, David H <hellvee at gmail.com> wrote:
>>
>>> 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.
>>>
>> ; (gtk_accel_path
>> "<Actions>/GncPluginPageRegisterActions/ViewStyleDoubleLineAction" "")
>> ; (gtk_accel_path
>> "<Actions>/GncPluginPageRegisterActions/ViewStyleRadioAction/0" "")
>> ; (gtk_accel_path
>> "<Actions>/GncPluginPageRegisterActions/ViewStyleRadioAction/1" "")
>> ; (gtk_accel_path
>> "<Actions>/GncPluginPageRegisterActions/ViewStyleRadioAction/2" "")
>>
>
>>>
>>> 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]
>>>
>
> Mine didn't take effect, so I headed to the wiki
> https://www.wiki.gnucash.org/wiki/Keyboard_Shortcuts
> ignored Firefox's complaints about the certificate being for
> code.gnucash.org and found this
>
> HAVE A CARE: some accelerator-map internal command names
> changed from V 4.9 to 5.1. If (some of) your accelerators fail
> rename the accelerator-map file (do NOT trash yet). GC will
> load a fresh default file on the next start. Copy the shortcuts
> from the old file to the corresponding actions in the new file.
>
> Once I did that my shortcuts appeared in the menu system.
> This is on Debian Linux.
>
> Liz
> _______________________________________________
> 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.
More information about the gnucash-user
mailing list