#29 Ins key does not toggle overwrite mode

open
nobody
None
3
2013-11-06
2011-10-18
Achim Bursian
No

In cmd.exe you can toggle between insert and overwrite mode with the Ins key.
pyCmd always uses insert mode, there is no way to switch to overwrite. Would be good to have that ability.

Discussion

  • Horea Haitonic
    Horea Haitonic
    2011-10-20

    Agreed, this is a good point. With some care, we could make the Tab completions obey this "overwrite rather than insert" hint in a smart manner. Think of:

    cat c:\projects\ver_1.1\NEWS.txt
    ...
    restore the line from history with the Up arrow
    move the cursor after projects\

    cat c:\projects\<Cursor>ver_1.1\NEWS.txt
    press Insert
    press Tab
    list of completions displayed:
    ver_1.1
    ver_1.2
    cat c:\projects\ver_1.<Cursor>\NEWS.txt

    type Insert
    type 2

    cat c:\projects\ver_1.2<Cursor>\NEWS.txt

    This kind of "completion overwrites instead of inserting might be useful often; we might also want to bind it to a special key combination (Shift-Tab?)

    All in all, thanks for the suggestion. I'll get to it as soon as I can.

     
  • Achim Bursian
    Achim Bursian
    2011-10-20

    You are imagining the "gold version" :-)
    I would suggest taking a two step approach:
    1) Implement simple overwrite (typing regular characters), without any Tab completion changes
    2) Implementing your thoughts on completion in Overwrite mode

    Anyway, thanks for all your efforts. pyCmnd is a great tool for my everyday work.

     
  • Horea Haitonic
    Horea Haitonic
    2013-11-06

    The latest snapshot (20131104) handles the simple overwrite (point 1 above).