marcmagus: Me playing cribbage in regency attire (Default)
Magus ([personal profile] marcmagus) wrote2009-03-05 12:48 am
Entry tags:

FrogPad

Well, after a day of playing around with it, I have a better sense of the FrogPad. I'm writing this with one hand, which is pretty comfortably at my side while I sit in bed. The arrangement can still use some tweaking, but shows promise.

I've done some reconfiguring of a number of tools to take advantage of the new layout...

For vim, \f will toggle between frogpad and normal keymaps thanks to:

" FrogPad keybindings {{{
function s:froggy()
    if !exists("s:frogpad") || s:frogpad == 0
        echo "FrogPad mode on"
        let s:frogpad = 1
        noremap o h
        noremap e j
        noremap E J
        noremap h k
        noremap t l
        noremap l o
        noremap L O
        noremap j t
        noremap J T
        noremap k e
    else
        echo "FrogPad mode off"
        let s:frogpad = 0
        unmap o
        unmap e
        unmap E
        unmap h
        unmap t
        unmap l
        unmap L
        unmap j
        unmap J
        unmap k
    endif
endfunction
nmap \f :call froggy()
"}}}

And for mutt; not as elegant with the toggle:

# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# muttrc extension with nice keybindings for a FrogPad
#
# source ~/.mutt/muttrc-frog
# (from muttrc or from mutt directly)
#
# Key bindings
#
#	maps:
#		alias		alias menu
#		attach		attachment menu
#		browser		directory browser
#		compose		compose menu
#		index		message index
#		pgp		pgp menu
#		postpone	postponed message recall menu
#		generic		generic keymap for all of the above
#		editor		line editor
#		pager		text viewer
#		
bind alias,attach,browser,compose,index,pgp,postpone,generic,pager  e   next-entry
bind alias,attach,browser,compose,index,pgp,postpone,generic,pager  h   previous-entry
bind index,pager            E       edit
bind compose                E       edit-message
bind compose                e  edit-headers
bind index,pager,compose    H       display-toggle-weed

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org