Keyboard mapping --- ctrl-a/e

Just starting out? Need help? Post your questions and find answers here.
mark5009
User
User
Posts: 22
Joined: Sun Oct 19, 2014 10:47 pm

Keyboard mapping --- ctrl-a/e

Post by mark5009 »

Hi.

Anyone help me with this one? I do my stuff pretty much all on a Mac these days and I am an old emacs / command-line guy. I find I really really miss being able to type ctrl-a (beginning of line) and ctrl-e (end of line) in PB and have it work, just like it does in this web edit box.

Is there any way I can get the PB editor can map these keys?

Thanks .. mark.
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Keyboard mapping --- ctrl-a/e

Post by Dude »

mark5009 wrote:miss being able to type ctrl-a (beginning of line) and ctrl-e (end of line) in PB
Press the Home key to go to the beginning of a line, and End to go to the end.
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Keyboard mapping --- ctrl-a/e

Post by davido »

@Dude,
Thank you for pointing that out. :D
DE AA EB
mark5009
User
User
Posts: 22
Joined: Sun Oct 19, 2014 10:47 pm

Re: Keyboard mapping --- ctrl-a/e

Post by mark5009 »

Dude wrote: Press the Home key to go to the beginning of a line, and End to go to the end.
Nice try, dude, but (a) 2nd gen apple keyboards, like the one on my MacBookPro, don't have either Home or End, and (b) even if they did, it just isn't the same having to lift your fingers from the keyboard to do something that is normally just there.

Any other thoughts on how to do this mapping?

.. mark.
User avatar
TI-994A
Addict
Addict
Posts: 2789
Joined: Sat Feb 19, 2011 3:47 am
Location: Singapore
Contact:

Re: Keyboard mapping --- ctrl-a/e

Post by TI-994A »

mark5009 wrote:...I really really miss being able to type ctrl-a (beginning of line) and ctrl-e (end of line) in PB...
mark5009 wrote:...my MacBookPro, don't have either Home or End...
Command + Left-Arrow = beginning of line
Command + Right-Arrow = end of line

And the MacBook Pro keyboard isn't really that big; it's all just there. :wink:
Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too! Please visit my YouTube Channel :D
davido
Addict
Addict
Posts: 1890
Joined: Fri Nov 09, 2012 11:04 pm
Location: Uttoxeter, UK

Re: Keyboard mapping --- ctrl-a/e

Post by davido »

@TI-994A,

Nice one!
Thank you.
DE AA EB
Dude
Addict
Addict
Posts: 1907
Joined: Mon Feb 16, 2015 2:49 pm

Re: Keyboard mapping --- ctrl-a/e

Post by Dude »

mark5009 wrote:2nd gen apple keyboards, like the one on my MacBookPro, don't have either Home or End
Sorry mark, I wasn't aware of that. Wouldn't Macs have a way to remap the keyboard globally anyway? For example, this app looks like it might suit your needs:

http://www.cocoabits.com/KeyBindingsEdi ... index.html

It even says that it supports Emacs meta binding-style multi-keystroke bindings.
mark5009
User
User
Posts: 22
Joined: Sun Oct 19, 2014 10:47 pm

Re: Keyboard mapping --- ctrl-a/e

Post by mark5009 »

Dude wrote:Wouldn't Macs have a way to remap the keyboard globally anyway?
Doh! Many thanks, dude. I got stuck in the "it's the editor's responsibility" thought and you are exactly right. A quick search and I found

https://pqrs.org/osx/karabiner/index.html.en

It does the trick, is free, can pretty much map anything for everyone, and fixes the "problem" globally. Sweet!

Many thanks .. mark.
mark5009
User
User
Posts: 22
Joined: Sun Oct 19, 2014 10:47 pm

Re: Keyboard mapping --- ctrl-a/e

Post by mark5009 »

TI-994A wrote:And the MacBook Pro keyboard isn't really that big; it's all just there. :wink:
Thanks, TI-994A, though I did find a solution that will work for me with ctrl-a/e (see other post).

.. mark.
Post Reply