george it works for me exactly what you have requested. i used both <ctrl> <alt> s or <Primary> <alt> s
can you try savling and closing accelerato map after making the amendment Start Gnucash and see if it works accelerator map file is only written during install and not every start of Gnucash Saludos Cordiales Murugan ________________________________ From: gnucash-user <gnucash-user-bounces+m.muruganandam=hotmail....@gnucash.org> on behalf of George Riner <georgeri...@mycogeo.com> Sent: Tuesday, September 12, 2023 3:50 PM To: Gnucash Users <gnucash-user@gnucash.org> Subject: Re: [GNC] keyboard shortcut - how to implement for open/close splits? Stan, Thanks for your understanding. I edited the following line in accelerator-map ; (gtk_accel_path "<Actions>/GncPluginPageRegisterActions/SplitTransactionAction" "") to read (gtk_accel_path "<Actions>/GncPluginPageRegisterActions/SplitTransactionAction" "<ctrl><alt>s") and then restarted GnuCash. outcome: I go to a transaction in the register that has "-- Split Transaction --" showing, press <ctrl><alt>s and nothing happens. I also notice, as you report, that the accelerator-map file has been re-written with my edits removed. Odd, kinda, that a file that you'd think GnuCash would *read* to get configurations for things, is instead *written* to remove all accelerator-mapping. :George On 9/12/2023 11:32 AM, Stan Brown (using GC 4.14) wrote: > On 2023-09-12 10:42, Michael Hendry wrote: >> On 12 Sep 2023, at 18:17, George Riner <georgeri...@mycogeo.com> wrote: >>> I really wish there was a keyboard shortcut to open/close the Splits on the >>> transaction I'm in. >> https://wiki.gnucash.org/wiki/Keyboard_Shortcuts >> >> I use a Mac, so the file I’ve edited is >> ~/Library/Application Settings/Gnucash/acclerator-map; >> >> and the necessary lines are: >> >> (gtk_accel_path >> "<Actions>/GncPluginPageRegisterActions/ViewStyleRadioAction/0" "<Primary>1") >> (gtk_accel_path >> "<Actions>/GncPluginPageRegisterActions/ViewStyleRadioAction/1" "<Primary>2") >> (gtk_accel_path >> "<Actions>/GncPluginPageRegisterActions/ViewStyleRadioAction/2" "<Primary>3") >> >> which opens the Basic Ledger view with Cmd-1, AutoSplit Ledger with Cmd-2 >> and Transaction Journal with Cmd-3. > 1. I think those are to change the view of the entire register. If I > understood George's query correctly, the was asking for a key to > effectively press the Split button and show the splits for the current > transaction. In any case, I'd very much like to know how to do that. > > 2. Where do we find the list of items to go in the first set of double > quotes? Neither <https://wiki.gnucash.org/wiki/Keyboard_Shortcuts> nor > the two files it references have that information. > > 3. The lines you gave don't seem top do anything in my accelerator file > (which I've attached). Here are details. > > I'm in Windows 10, with GC 4.14. I found the accelerator-map file in > %APPDATA%\GnuCash, and, while GC was not running, added your three lines > at the bottom. However, they don't seem to have any effect. I know that > for Windows users <Primary> means the Ctrl key, because <Primary>o is > bound to File Open, and when I try Ctrl+o the File Open dialog does > indeed pop up. But Ctrl+0, Ctrl+1, and Ctrl+2 don't seem to do anything. > > Even worse, when GC closes it rewrites the accelerator-map file > _without_ those four lines I added. > > Do user-configured accelerator keys just not work in Windows, or am I > doing something wrong? > > > Stan Brown > Tehachapi, CA, USA > https://BrownMath.com/ > > _______________________________________________ > gnucash-user mailing list > gnucash-user@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. _______________________________________________ gnucash-user mailing list gnucash-user@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. _______________________________________________ gnucash-user mailing list gnucash-user@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.