[haskeline] #90: vi mode printable char bindings should not be bound in input mode

haskeline haskeline at projects.haskell.org
Wed Jun 10 23:03:31 EDT 2009


#90: vi mode printable char bindings should not be bound in input mode
-------------------+--------------------------------------------------------
Reporter:  cjs     |       Owner:     
    Type:  defect  |      Status:  new
Priority:  major   |   Milestone:     
 Version:  0.6     |    Keywords:     
-------------------+--------------------------------------------------------
 This `~/.haskelline` file:

     editMode: Vi
     bind: k up
     bind: j down

 behaves in a rather unfortunate way for vi users. As well as binding `h`
 and `j` in command mode, it also binds them in input mode, meaning that
 one can no longer input a `k` or a `j`.

 Ideally one would specify, for vi bindings, whether they were for command
 mode or input mode. However, this requires changing the format of the
 configuration file, possibly making it rather more complex.

 My proposal is that, for the moment anyway, `bind` when used with
 printable characters should rebind keys for command mode only, not
 affecting their use in input mode.

-- 
Ticket URL: <http://trac.haskell.org/haskeline/ticket/90>
haskeline <http://example.org/>
My example project


More information about the Haskeline mailing list