[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: putting it all together was scheme custom keymap

From: aaron mehl
Subject: Re: putting it all together was scheme custom keymap
Date: Fri, 18 Sep 2020 05:49:54 -0400

Hi Richard thanks for the heads up, you were right I needed to post the script in order to  get it working.
The conventions you mentioned of <> () ""  are they discussed in the docs since I am totally a newbie on this it would be nice to have had this written out.
Any ways I will make the changes and let you know how it works.
Thanks so much for your time.

Sent from">Mailspring, the best free email app for work
On Sep 18 2020, at 3:46 am, Richard Shann <> wrote:
On Thu, 2020-09-17 at 19:16 -0400, aaron mehl wrote:
> Help,
> could you look at this script and tell me what I did wrong, since
> only two shortcuts work for me.

Actually, none of those commands will do anything - the two shortcuts
that work were presumably already working before executing this script.
As in my last email I've done a global replace of < with " and > with "
to get:

(d-AddKeybinding "hardcodedA" "hft+a")
(d-AddKeybinding "hardcodedadown" "a")
(d-AddKeybinding "hardcodedA-mid" "ctrl+ a")
(d-AddKeybinding "hardcodedB" "Shft+s")
(d-AddKeybinding "hardcodedbdown" "s")
(d-AddKeybinding "hardcodedB-mid" "ctrl+s")
(d-AddKeybinding "hardcodedC" "Shft+c")
(d-AddKeybinding "hardcodedc-2" "c")
(d-AddKeybinding "hardcodedcdown" "ctrl+c")
(d-AddKeybinding "hardcodedD" "Shft+d")
(d-AddKeybinding "hardcodedddown" "ctrl+d")
(d-AddKeybinding "hardcodedE" "Shft+e")
(d-AddKeybinding "hardcodedEup" "e")
(d-AddKeybinding "hardcodededown" "Ctrl+e")
(d-AddKeybinding "hardcodedF" "Shft+f")
(d-AddKeybinding "hardcodedfdown" "f")
(d-AddKeybinding "hardcodedG" "g")
(d-AddKeybinding "hardcodedgdown" "Shft+g")

this has some errors still:

(d-AddKeybinding "hardcodedA" "hft+a") 
;;; presumably you meant Shft+a
but there is no such name for a key, if you hold down Shift and press
"a" you get the name "A" in the keypress dialog

(d-AddKeybinding "hardcodedadown" "a")

(d-AddKeybinding "hardcodedA-mid" "ctrl+ a") ;;;should be Ctrl+a that is C not c and no space
... others likewise.

These will work provided there exist commands with the names given - to check this try executing the commands, e.g. type


into the CLI box of the Scheme window and press Return - it should execute the command. And so on for the other names. (That is, prefix the command name with d- and wrap the whole thing in parens () and then execute it).



> thanks,
> Aaron
> Sent from Mailspring, the best free email app for work
> On Sep 17 2020, at 7:17 am, Richard Shann <>
> wrote:
> One thing - I just noticed in a file you sent:
> (d-AddKeybinding "hardcodedA" <shift,a>)
> I'm afraid I've mislead you here - putting < > round something is a
> common convention meaning "the thing of that name", in this case what
> you would want is
> (d-AddKeybinding "hardcodedA" "A")
> where "A" is the name of the keypress Shift-a enclosed in double
> quotes. That is, the first field is the name of the command, enclosed
> in double quotes and the second is the name of the short cut,
> enclosed
> in double quotes.
> Richard
> On Thu, 2020-09-17 at 06:16 -0400, aaron mehl wrote:
> >
> >
> > Sent from Mailspring, the best free email app for work
> > On Sep 17 2020, at 4:01 am, Richard Shann <>
> > wrote:
> > On Wed, 2020-09-16 at 20:47 -0400, aaron mehl wrote:
> > > Hi again I am posting the hard-code-mode, which isn't working
> > > correctly. I added a shortcut in command center rr and it got
> > > invoked.
> > > I think probably control should be cntrl?
> > > shift?
> >
> >
> >
> > what do you mean by "list" a command?
> > In the scheme script I have a list of commands one for each hard
> > coded note.
> > when I tested my script the short cut I gave for the letter 's'
> > didn't work so I was trying to debug it. When looking at the script
> I
> > forinstance used a comma for a two key shortcut and I see from your
> > response I should have used a '+ ' sign. Also I want to make sure
> > that my shortcuts replace the default ones. 
> > We also mentioned another script that leave the hard-code-mode
> which
> > will be next after I debug.
> > Aaron
> >
> > Richard
Sent from Mailspring
reply via email to

[Prev in Thread] Current Thread [Next in Thread]