home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 1 / ARM_CLUB_CD.iso / contents / apps / program / d / elvis / Docs / Mods < prev    next >
Encoding:
Text File  |  1989-12-31  |  1.9 KB  |  55 lines

  1. A few ideas for modifications...
  2.  
  3. MODE INDICATORS
  4.     Elvis always reads keystrokes via the getkey() function.  This function
  5.     is called with an argument which describes the context in which the
  6.     character will be processed:
  7.  
  8.         WHEN_EX        - called from the vgets() function to read
  9.                   a single line of text.  Either EX command
  10.                   mode, EX text entry mode, or VI while reading
  11.                   a search string.
  12.         WHEN_VICMD    - VI mode, getting a command character.
  13.         WHEN_VIINP    - VI's input mode.
  14.         WHEN_VIREP    - VI's replace mode (the R command).
  15.         0        - misc times, e.g. "HIT A KEY TO CONTINUE"
  16.  
  17.     So, the getkey() function would be a good place to add some kind of
  18.     mode indicator.  Like, you could change the shape of the cursor for
  19.     input mode vs. VI command mode.
  20.  
  21. ARROW KEYS IN INPUT MODE
  22.     The arrow keys are not normally mapped during input mode.  It might
  23.     be fun, though, to map them to ESC + [hjkl] + a.  This way, if you
  24.     hit an arrow key while in input mode, elvis would take you out of input
  25.     mode momentarily, move the cursor, and drop you back into input mode.
  26.  
  27.     Neat, huh?
  28.  
  29.     Something similar could be done with replace mode.
  30.  
  31. WRAP LONG LINES (INSTEAD OF SCROLLING SIDEWAYS)
  32.     This would mostly require changes to redraw(), mark2phys(), and
  33.     drawtext().  All of these are in the file "redraw.c".
  34.  
  35. THE SHIFT-U COMMAND
  36.     No clues, yet.
  37.  
  38. ADD MORE SUPPORT FOR NON-ASCII CHARACTER SETS
  39.     Elvis displays 8-bit character sets just fine, but is a bit weak in
  40.     the input and search departments.
  41.  
  42.     For input, something similar to :map would be nice.  Actually, :abbr
  43.     is a little closer.  How about ":digraph" to map a specified pair of
  44.     ASCII characters into a single non-ASCII character?
  45.  
  46. REWRITE THE REGULAR EXPRESSION PARSER AND THE SEARCHING CODE
  47.     The current doesn't allow you to search for non-ASCI characters.  It
  48.     also doesn't locate multiple occurrences on the same line.  It could
  49.     probably be made smaller & faster.
  50.  
  51. PORT ELVIS TO MS-DOS?
  52.     Yuck!
  53.  
  54. Suggestions are welcome.
  55.