Review `bind' tree resolving..
commit549445b14f6918fe9be0caed7bd038fd573bf472
authorSteffen Nurpmeso <steffen@sdaoden.eu>
Fri, 24 Jan 2020 23:43:31 +0000 (25 00:43 +0100)
committerSteffen Nurpmeso <steffen@sdaoden.eu>
Sat, 1 Feb 2020 22:41:15 +0000 (1 23:41 +0100)
tree88219a215fb86efb358873644076c7a09a16b812
parent48d26434944b066d147b8b2b92301df73e28247f
Review `bind' tree resolving..

So with this change, adding onto
  [b726bcaec04e062198cc4ffee03aa0039709bed5],
  [350e4be5b9fa4b4a0c100c10eb2e11166082ae13],
and especially
  [3c52d1697aa5365f4edb6febf90222fef97be839],
should our `bind' tree be capable to deal with inter-key-timeouts.
In fact the old code has never been reviewed as such, i stopped
once it seem to work enough to make me happy.  Never had a MLE
review, too, the necessary line-redraw optimization is still
missing.  Truth is, it was a piece of shit, when i looked at it.

  if 0
    set line-editor-no-defaults
    bind base $'\n' mle-commit
    bind base $'\c?' mle-del-bwd
    bind base $'\cE' mle-go-end
    bind base $'\c[' mle-cancel
  else
    \bind base $'\e',d mle-snarf-word-fwd
    \bind base $'\e',$'\c?' mle-snarf-word-bwd
    \bind base $'\e',f mle-go-word-fwd
    \bind base $'\e',b mle-go-word-bwd
    \bind base $'\cL' mle-clear-screen

    \bind default :kf1 Fi%
    \bind default :kf2 Fi'&'
    \bind default :kf3 Fi+download
    \bind default :kf4 Fi+gmane
    \bind default :kf5 Fi+sent
    \bind default :kf12 fi%
    \bind default :kf11 fi'&'
    \bind default :kf10 fi+download
    \bind default :kf9 fi+gmane
    #\bind default :kf8 fi+sent

    \bind compose :kf1 !v
    \bind compose :kf2 !p
  endif
  bind base $'\cT' echo one
  bind base $'\cT',$'\cT' echo two
  bind base abc echo 0
  bind base ab,c echo 1
  bind base abc,d echo 2
  bind base ac,d echo 3
  bind base a,b,c echo 4
  bind base a,b,c,d echo 5
  bind base a,b,cc,d echo 6
  bind base d,e,f echo made me not chef@
  bind base d,e,r echo made me chef
  set quiet noheader
  set bind-inter-key-timeout=3000
  set bind-inter-byte-timeout=250
src/mx/tty.c